@rlvt/contents-openapi-client
Advanced tools
Comparing version 0.0.0-548e775 to 0.0.0-55240b1
import { AxiosInstance, AxiosRequestConfig } from "axios"; | ||
import type { Pick__LeanDocument_this__Exclude_keyofthis_24getAllSubdocs_or_24ignore_or_24isDefault_or_24isDeleted_or_24getPopulatedDocs_or_24isEmpty_or_24isValid_or_24locals_or_24markValid_or_24op_or_24session_or_24set_or_24where_or_baseModelName_or_collection_or_db_or_delete_or_deleteOne_or_depopulate_or_directModifiedPaths_or_equals_or_errors_or_execPopulate_or_get_or_getChanges_or_increment_or_init_or_invalidate_or_isDirectModified_or_isDirectSelected_or_isInit_or_isModified_or_isNew_or_isSelected_or_markModified_or_modifiedPaths_or_model_or_modelName_or_overwrite_or_24parent_or_populate_or_populated_or_remove_or_replaceOne_or_save_or_schema_or_set_or_toJSON_or_toObject_or_unmarkModified_or_update_or_updateOne_or_validate_or_validateSync_or_24isSingleNested__, Contents, IObjectWithTypegooseFunction, ContentStatus, Pick_SerializedContent_resourceGroupIds_or_name_or_description_, Partial_SerializedContent_, Partial_SerializedContentVersions_, WithoutReadonly, WithoutWriteonly } from "./definitions"; | ||
export type { Pick__LeanDocument_this__Exclude_keyofthis_24getAllSubdocs_or_24ignore_or_24isDefault_or_24isDeleted_or_24getPopulatedDocs_or_24isEmpty_or_24isValid_or_24locals_or_24markValid_or_24op_or_24session_or_24set_or_24where_or_baseModelName_or_collection_or_db_or_delete_or_deleteOne_or_depopulate_or_directModifiedPaths_or_equals_or_errors_or_execPopulate_or_get_or_getChanges_or_increment_or_init_or_invalidate_or_isDirectModified_or_isDirectSelected_or_isInit_or_isModified_or_isNew_or_isSelected_or_markModified_or_modifiedPaths_or_model_or_modelName_or_overwrite_or_24parent_or_populate_or_populated_or_remove_or_replaceOne_or_save_or_schema_or_set_or_toJSON_or_toObject_or_unmarkModified_or_update_or_updateOne_or_validate_or_validateSync_or_24isSingleNested__, Contents, IObjectWithTypegooseFunction, ContentStatus, Pick_SerializedContent_resourceGroupIds_or_name_or_description_, Partial_SerializedContent_, Partial_SerializedContentVersions_, WithoutReadonly, WithoutWriteonly }; | ||
import type { ContentStatus } from "./definitions"; | ||
export { ContentFontResources, Pick_SerializedContentFontResource_resourceGroupIds_or_family_or_files_, Partial_SerializedContentFontResource_, Contents, ContentStatus, Pick_SerializedContent_resourceGroupIds_or_name_or_description_, Partial_SerializedContent_, Partial_SerializedContentVersions_, AnyValue, Readable, WithoutReadonly, WithoutWriteonly } from "./definitions"; | ||
export default class { | ||
axios: AxiosInstance; | ||
constructor(configOrInstance: AxiosRequestConfig | AxiosInstance); | ||
private listContentFontResource; | ||
private createContentFontResource; | ||
private getContentFontResource; | ||
private updateContentFontResource; | ||
private listContent; | ||
@@ -13,8 +17,144 @@ private createContent; | ||
private publishContent; | ||
private renderContent; | ||
get ContentResource(): { | ||
listContentFontResource: (params: { | ||
ids?: string[]; | ||
resourceGroupIds?: string[]; | ||
}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{ | ||
status: "success"; | ||
program: string; | ||
version: string; | ||
datetime: string; | ||
code?: number; | ||
message: string; | ||
data: { | ||
resourceGroupIds: string[]; | ||
readonly id: string & { | ||
readonly?: "__readonly"; | ||
}; | ||
readonly createdAt: Date & { | ||
readonly?: "__readonly"; | ||
}; | ||
readonly updatedAt: Date & { | ||
readonly?: "__readonly"; | ||
}; | ||
family: string; | ||
files: { | ||
[x: string]: string; | ||
}; | ||
readonly companyId: string & { | ||
readonly?: "__readonly"; | ||
}; | ||
type: "font"; | ||
}[]; | ||
}>>; | ||
createContentFontResource: (data: { | ||
resourceGroupIds: string[]; | ||
family: string; | ||
files: { | ||
[x: string]: string; | ||
}; | ||
}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{ | ||
status: "success"; | ||
program: string; | ||
version: string; | ||
datetime: string; | ||
code?: number; | ||
message: string; | ||
data: { | ||
resourceGroupIds: string[]; | ||
readonly id: string & { | ||
readonly?: "__readonly"; | ||
}; | ||
readonly createdAt: Date & { | ||
readonly?: "__readonly"; | ||
}; | ||
readonly updatedAt: Date & { | ||
readonly?: "__readonly"; | ||
}; | ||
family: string; | ||
files: { | ||
[x: string]: string; | ||
}; | ||
readonly companyId: string & { | ||
readonly?: "__readonly"; | ||
}; | ||
type: "font"; | ||
}; | ||
}>>; | ||
getContentFontResource: (params: { | ||
id: string; | ||
}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{ | ||
status: "success"; | ||
program: string; | ||
version: string; | ||
datetime: string; | ||
code?: number; | ||
message: string; | ||
data: { | ||
resourceGroupIds: string[]; | ||
readonly id: string & { | ||
readonly?: "__readonly"; | ||
}; | ||
readonly createdAt: Date & { | ||
readonly?: "__readonly"; | ||
}; | ||
readonly updatedAt: Date & { | ||
readonly?: "__readonly"; | ||
}; | ||
family: string; | ||
files: { | ||
[x: string]: string; | ||
}; | ||
readonly companyId: string & { | ||
readonly?: "__readonly"; | ||
}; | ||
type: "font"; | ||
}; | ||
}>>; | ||
updateContentFontResource: (params: { | ||
id: string; | ||
}, data: { | ||
resourceGroupIds?: string[]; | ||
family?: string; | ||
files?: { | ||
[x: string]: string; | ||
}; | ||
type?: "font"; | ||
}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{ | ||
status: "success"; | ||
program: string; | ||
version: string; | ||
datetime: string; | ||
code?: number; | ||
message: string; | ||
data: { | ||
resourceGroupIds: string[]; | ||
readonly id: string & { | ||
readonly?: "__readonly"; | ||
}; | ||
readonly createdAt: Date & { | ||
readonly?: "__readonly"; | ||
}; | ||
readonly updatedAt: Date & { | ||
readonly?: "__readonly"; | ||
}; | ||
family: string; | ||
files: { | ||
[x: string]: string; | ||
}; | ||
readonly companyId: string & { | ||
readonly?: "__readonly"; | ||
}; | ||
type: "font"; | ||
}; | ||
}>>; | ||
}; | ||
get Content(): { | ||
list: (params: { | ||
ids?: string[]; | ||
name?: string; | ||
resourceGroupIds?: string[]; | ||
status?: ContentStatus[]; | ||
sortBy?: "updatedAt" | "createdAt"; | ||
sortBy?: "createdAt" | "updatedAt"; | ||
sortOrder?: "desc" | "asc"; | ||
@@ -33,9 +173,6 @@ page?: number; | ||
message: string; | ||
data: ({ | ||
id?: any; | ||
_id?: any; | ||
__v?: any; | ||
} & { | ||
data: { | ||
description?: string; | ||
readonly updatedAt: Date & { | ||
resourceGroupIds: string[]; | ||
readonly id: string & { | ||
readonly?: "__readonly"; | ||
@@ -46,4 +183,6 @@ }; | ||
}; | ||
readonly updatedAt: Date & { | ||
readonly?: "__readonly"; | ||
}; | ||
name: string; | ||
resourceGroupIds: string[]; | ||
readonly status: (ContentStatus.DRAFT & { | ||
@@ -58,5 +197,2 @@ readonly?: "__readonly"; | ||
}); | ||
readonly id: string & { | ||
readonly?: "__readonly"; | ||
}; | ||
readonly companyId: string & { | ||
@@ -73,16 +209,105 @@ readonly?: "__readonly"; | ||
}); | ||
metadata?: {}; | ||
previewUrl?: string; | ||
metadata?: { | ||
[x: string]: any; | ||
}; | ||
template: { | ||
components: {}; | ||
dependencies: {}; | ||
pages: {}; | ||
conditionGroups: {}; | ||
components: { | ||
[x: string]: { | ||
name?: string; | ||
type: string; | ||
rendered: boolean; | ||
options: { | ||
[x: string]: any; | ||
}; | ||
}; | ||
}; | ||
dependencies: { | ||
[x: string]: { | ||
type: string; | ||
options: { | ||
[x: string]: any; | ||
}; | ||
}; | ||
}; | ||
pages: { | ||
[x: string]: { | ||
components: { | ||
id: string; | ||
width: number; | ||
height: number; | ||
x: number; | ||
y: number; | ||
rotation: number; | ||
}[]; | ||
width: number; | ||
height: number; | ||
orderTree: { | ||
root: string[]; | ||
elements: { | ||
[x: string]: { | ||
type: "conditionGroup"; | ||
} | { | ||
type: "condition"; | ||
children: string[]; | ||
} | { | ||
type: "component"; | ||
} | { | ||
type: "componentGroup"; | ||
children: string[]; | ||
}; | ||
}; | ||
}; | ||
url?: ({ | ||
type: "static"; | ||
value: string; | ||
} | { | ||
type: "dependency"; | ||
value: string; | ||
})[]; | ||
}; | ||
}; | ||
conditionGroups: { | ||
[x: string]: { | ||
name?: string; | ||
conditions: ({ | ||
id: string; | ||
type: "and" | "or"; | ||
rules: { | ||
value: { | ||
type: "static"; | ||
value: string | number; | ||
} | { | ||
type: "dependency"; | ||
value: string; | ||
}; | ||
field: { | ||
type: "static"; | ||
value: string | number; | ||
} | { | ||
type: "dependency"; | ||
value: string; | ||
}; | ||
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne"; | ||
}[]; | ||
} | { | ||
id: string; | ||
isElse: true; | ||
})[]; | ||
}; | ||
}; | ||
componentGroups: { | ||
[x: string]: { | ||
name?: string; | ||
rendered: boolean; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
} & {})[]; | ||
}[]; | ||
}>>; | ||
create: (data: { | ||
description?: string; | ||
resourceGroupIds: string[]; | ||
name: string; | ||
resourceGroupIds: string[]; | ||
}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{ | ||
@@ -97,3 +322,4 @@ status: "success"; | ||
description?: string; | ||
readonly updatedAt: Date & { | ||
resourceGroupIds: string[]; | ||
readonly id: string & { | ||
readonly?: "__readonly"; | ||
@@ -104,4 +330,6 @@ }; | ||
}; | ||
readonly updatedAt: Date & { | ||
readonly?: "__readonly"; | ||
}; | ||
name: string; | ||
resourceGroupIds: string[]; | ||
readonly status: (ContentStatus.DRAFT & { | ||
@@ -116,5 +344,2 @@ readonly?: "__readonly"; | ||
}); | ||
readonly id: string & { | ||
readonly?: "__readonly"; | ||
}; | ||
readonly companyId: string & { | ||
@@ -131,8 +356,97 @@ readonly?: "__readonly"; | ||
}); | ||
metadata?: {}; | ||
previewUrl?: string; | ||
metadata?: { | ||
[x: string]: any; | ||
}; | ||
template: { | ||
components: {}; | ||
dependencies: {}; | ||
pages: {}; | ||
conditionGroups: {}; | ||
components: { | ||
[x: string]: { | ||
name?: string; | ||
type: string; | ||
rendered: boolean; | ||
options: { | ||
[x: string]: any; | ||
}; | ||
}; | ||
}; | ||
dependencies: { | ||
[x: string]: { | ||
type: string; | ||
options: { | ||
[x: string]: any; | ||
}; | ||
}; | ||
}; | ||
pages: { | ||
[x: string]: { | ||
components: { | ||
id: string; | ||
width: number; | ||
height: number; | ||
x: number; | ||
y: number; | ||
rotation: number; | ||
}[]; | ||
width: number; | ||
height: number; | ||
orderTree: { | ||
root: string[]; | ||
elements: { | ||
[x: string]: { | ||
type: "conditionGroup"; | ||
} | { | ||
type: "condition"; | ||
children: string[]; | ||
} | { | ||
type: "component"; | ||
} | { | ||
type: "componentGroup"; | ||
children: string[]; | ||
}; | ||
}; | ||
}; | ||
url?: ({ | ||
type: "static"; | ||
value: string; | ||
} | { | ||
type: "dependency"; | ||
value: string; | ||
})[]; | ||
}; | ||
}; | ||
conditionGroups: { | ||
[x: string]: { | ||
name?: string; | ||
conditions: ({ | ||
id: string; | ||
type: "and" | "or"; | ||
rules: { | ||
value: { | ||
type: "static"; | ||
value: string | number; | ||
} | { | ||
type: "dependency"; | ||
value: string; | ||
}; | ||
field: { | ||
type: "static"; | ||
value: string | number; | ||
} | { | ||
type: "dependency"; | ||
value: string; | ||
}; | ||
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne"; | ||
}[]; | ||
} | { | ||
id: string; | ||
isElse: true; | ||
})[]; | ||
}; | ||
}; | ||
componentGroups: { | ||
[x: string]: { | ||
name?: string; | ||
rendered: boolean; | ||
}; | ||
}; | ||
}; | ||
@@ -153,3 +467,4 @@ }[]; | ||
description?: string; | ||
readonly updatedAt: Date & { | ||
resourceGroupIds: string[]; | ||
readonly id: string & { | ||
readonly?: "__readonly"; | ||
@@ -160,4 +475,6 @@ }; | ||
}; | ||
readonly updatedAt: Date & { | ||
readonly?: "__readonly"; | ||
}; | ||
name: string; | ||
resourceGroupIds: string[]; | ||
readonly status: (ContentStatus.DRAFT & { | ||
@@ -172,5 +489,2 @@ readonly?: "__readonly"; | ||
}); | ||
readonly id: string & { | ||
readonly?: "__readonly"; | ||
}; | ||
readonly companyId: string & { | ||
@@ -187,8 +501,97 @@ readonly?: "__readonly"; | ||
}); | ||
metadata?: {}; | ||
previewUrl?: string; | ||
metadata?: { | ||
[x: string]: any; | ||
}; | ||
template: { | ||
components: {}; | ||
dependencies: {}; | ||
pages: {}; | ||
conditionGroups: {}; | ||
components: { | ||
[x: string]: { | ||
name?: string; | ||
type: string; | ||
rendered: boolean; | ||
options: { | ||
[x: string]: any; | ||
}; | ||
}; | ||
}; | ||
dependencies: { | ||
[x: string]: { | ||
type: string; | ||
options: { | ||
[x: string]: any; | ||
}; | ||
}; | ||
}; | ||
pages: { | ||
[x: string]: { | ||
components: { | ||
id: string; | ||
width: number; | ||
height: number; | ||
x: number; | ||
y: number; | ||
rotation: number; | ||
}[]; | ||
width: number; | ||
height: number; | ||
orderTree: { | ||
root: string[]; | ||
elements: { | ||
[x: string]: { | ||
type: "conditionGroup"; | ||
} | { | ||
type: "condition"; | ||
children: string[]; | ||
} | { | ||
type: "component"; | ||
} | { | ||
type: "componentGroup"; | ||
children: string[]; | ||
}; | ||
}; | ||
}; | ||
url?: ({ | ||
type: "static"; | ||
value: string; | ||
} | { | ||
type: "dependency"; | ||
value: string; | ||
})[]; | ||
}; | ||
}; | ||
conditionGroups: { | ||
[x: string]: { | ||
name?: string; | ||
conditions: ({ | ||
id: string; | ||
type: "and" | "or"; | ||
rules: { | ||
value: { | ||
type: "static"; | ||
value: string | number; | ||
} | { | ||
type: "dependency"; | ||
value: string; | ||
}; | ||
field: { | ||
type: "static"; | ||
value: string | number; | ||
} | { | ||
type: "dependency"; | ||
value: string; | ||
}; | ||
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne"; | ||
}[]; | ||
} | { | ||
id: string; | ||
isElse: true; | ||
})[]; | ||
}; | ||
}; | ||
componentGroups: { | ||
[x: string]: { | ||
name?: string; | ||
rendered: boolean; | ||
}; | ||
}; | ||
}; | ||
@@ -202,11 +605,100 @@ }[]; | ||
description?: string; | ||
resourceGroupIds?: string[]; | ||
name?: string; | ||
resourceGroupIds?: string[]; | ||
} & { | ||
metadata?: {}; | ||
previewUrl?: string; | ||
metadata?: { | ||
[x: string]: any; | ||
}; | ||
template?: { | ||
components: {}; | ||
dependencies: {}; | ||
pages: {}; | ||
conditionGroups: {}; | ||
components: { | ||
[x: string]: { | ||
name?: string; | ||
type: string; | ||
rendered: boolean; | ||
options: { | ||
[x: string]: any; | ||
}; | ||
}; | ||
}; | ||
dependencies: { | ||
[x: string]: { | ||
type: string; | ||
options: { | ||
[x: string]: any; | ||
}; | ||
}; | ||
}; | ||
pages: { | ||
[x: string]: { | ||
components: { | ||
id: string; | ||
width: number; | ||
height: number; | ||
x: number; | ||
y: number; | ||
rotation: number; | ||
}[]; | ||
width: number; | ||
height: number; | ||
orderTree: { | ||
root: string[]; | ||
elements: { | ||
[x: string]: { | ||
type: "conditionGroup"; | ||
} | { | ||
type: "condition"; | ||
children: string[]; | ||
} | { | ||
type: "component"; | ||
} | { | ||
type: "componentGroup"; | ||
children: string[]; | ||
}; | ||
}; | ||
}; | ||
url?: ({ | ||
type: "static"; | ||
value: string; | ||
} | { | ||
type: "dependency"; | ||
value: string; | ||
})[]; | ||
}; | ||
}; | ||
conditionGroups: { | ||
[x: string]: { | ||
name?: string; | ||
conditions: ({ | ||
id: string; | ||
type: "and" | "or"; | ||
rules: { | ||
value: { | ||
type: "static"; | ||
value: string | number; | ||
} | { | ||
type: "dependency"; | ||
value: string; | ||
}; | ||
field: { | ||
type: "static"; | ||
value: string | number; | ||
} | { | ||
type: "dependency"; | ||
value: string; | ||
}; | ||
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne"; | ||
}[]; | ||
} | { | ||
id: string; | ||
isElse: true; | ||
})[]; | ||
}; | ||
}; | ||
componentGroups: { | ||
[x: string]: { | ||
name?: string; | ||
rendered: boolean; | ||
}; | ||
}; | ||
}; | ||
@@ -222,3 +714,4 @@ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{ | ||
description?: string; | ||
readonly updatedAt: Date & { | ||
resourceGroupIds: string[]; | ||
readonly id: string & { | ||
readonly?: "__readonly"; | ||
@@ -229,4 +722,6 @@ }; | ||
}; | ||
readonly updatedAt: Date & { | ||
readonly?: "__readonly"; | ||
}; | ||
name: string; | ||
resourceGroupIds: string[]; | ||
readonly status: (ContentStatus.DRAFT & { | ||
@@ -241,5 +736,2 @@ readonly?: "__readonly"; | ||
}); | ||
readonly id: string & { | ||
readonly?: "__readonly"; | ||
}; | ||
readonly companyId: string & { | ||
@@ -256,8 +748,97 @@ readonly?: "__readonly"; | ||
}); | ||
metadata?: {}; | ||
previewUrl?: string; | ||
metadata?: { | ||
[x: string]: any; | ||
}; | ||
template: { | ||
components: {}; | ||
dependencies: {}; | ||
pages: {}; | ||
conditionGroups: {}; | ||
components: { | ||
[x: string]: { | ||
name?: string; | ||
type: string; | ||
rendered: boolean; | ||
options: { | ||
[x: string]: any; | ||
}; | ||
}; | ||
}; | ||
dependencies: { | ||
[x: string]: { | ||
type: string; | ||
options: { | ||
[x: string]: any; | ||
}; | ||
}; | ||
}; | ||
pages: { | ||
[x: string]: { | ||
components: { | ||
id: string; | ||
width: number; | ||
height: number; | ||
x: number; | ||
y: number; | ||
rotation: number; | ||
}[]; | ||
width: number; | ||
height: number; | ||
orderTree: { | ||
root: string[]; | ||
elements: { | ||
[x: string]: { | ||
type: "conditionGroup"; | ||
} | { | ||
type: "condition"; | ||
children: string[]; | ||
} | { | ||
type: "component"; | ||
} | { | ||
type: "componentGroup"; | ||
children: string[]; | ||
}; | ||
}; | ||
}; | ||
url?: ({ | ||
type: "static"; | ||
value: string; | ||
} | { | ||
type: "dependency"; | ||
value: string; | ||
})[]; | ||
}; | ||
}; | ||
conditionGroups: { | ||
[x: string]: { | ||
name?: string; | ||
conditions: ({ | ||
id: string; | ||
type: "and" | "or"; | ||
rules: { | ||
value: { | ||
type: "static"; | ||
value: string | number; | ||
} | { | ||
type: "dependency"; | ||
value: string; | ||
}; | ||
field: { | ||
type: "static"; | ||
value: string | number; | ||
} | { | ||
type: "dependency"; | ||
value: string; | ||
}; | ||
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne"; | ||
}[]; | ||
} | { | ||
id: string; | ||
isElse: true; | ||
})[]; | ||
}; | ||
}; | ||
componentGroups: { | ||
[x: string]: { | ||
name?: string; | ||
rendered: boolean; | ||
}; | ||
}; | ||
}; | ||
@@ -269,2 +850,3 @@ }[]; | ||
id: string; | ||
'dry-run'?: boolean; | ||
}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{ | ||
@@ -290,3 +872,4 @@ status: "success"; | ||
description?: string; | ||
readonly updatedAt: Date & { | ||
resourceGroupIds: string[]; | ||
readonly id: string & { | ||
readonly?: "__readonly"; | ||
@@ -297,4 +880,6 @@ }; | ||
}; | ||
readonly updatedAt: Date & { | ||
readonly?: "__readonly"; | ||
}; | ||
name: string; | ||
resourceGroupIds: string[]; | ||
readonly status: (ContentStatus.DRAFT & { | ||
@@ -309,5 +894,2 @@ readonly?: "__readonly"; | ||
}); | ||
readonly id: string & { | ||
readonly?: "__readonly"; | ||
}; | ||
readonly companyId: string & { | ||
@@ -324,8 +906,97 @@ readonly?: "__readonly"; | ||
}); | ||
metadata?: {}; | ||
previewUrl?: string; | ||
metadata?: { | ||
[x: string]: any; | ||
}; | ||
template: { | ||
components: {}; | ||
dependencies: {}; | ||
pages: {}; | ||
conditionGroups: {}; | ||
components: { | ||
[x: string]: { | ||
name?: string; | ||
type: string; | ||
rendered: boolean; | ||
options: { | ||
[x: string]: any; | ||
}; | ||
}; | ||
}; | ||
dependencies: { | ||
[x: string]: { | ||
type: string; | ||
options: { | ||
[x: string]: any; | ||
}; | ||
}; | ||
}; | ||
pages: { | ||
[x: string]: { | ||
components: { | ||
id: string; | ||
width: number; | ||
height: number; | ||
x: number; | ||
y: number; | ||
rotation: number; | ||
}[]; | ||
width: number; | ||
height: number; | ||
orderTree: { | ||
root: string[]; | ||
elements: { | ||
[x: string]: { | ||
type: "conditionGroup"; | ||
} | { | ||
type: "condition"; | ||
children: string[]; | ||
} | { | ||
type: "component"; | ||
} | { | ||
type: "componentGroup"; | ||
children: string[]; | ||
}; | ||
}; | ||
}; | ||
url?: ({ | ||
type: "static"; | ||
value: string; | ||
} | { | ||
type: "dependency"; | ||
value: string; | ||
})[]; | ||
}; | ||
}; | ||
conditionGroups: { | ||
[x: string]: { | ||
name?: string; | ||
conditions: ({ | ||
id: string; | ||
type: "and" | "or"; | ||
rules: { | ||
value: { | ||
type: "static"; | ||
value: string | number; | ||
} | { | ||
type: "dependency"; | ||
value: string; | ||
}; | ||
field: { | ||
type: "static"; | ||
value: string | number; | ||
} | { | ||
type: "dependency"; | ||
value: string; | ||
}; | ||
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne"; | ||
}[]; | ||
} | { | ||
id: string; | ||
isElse: true; | ||
})[]; | ||
}; | ||
}; | ||
componentGroups: { | ||
[x: string]: { | ||
name?: string; | ||
rendered: boolean; | ||
}; | ||
}; | ||
}; | ||
@@ -335,3 +1006,58 @@ }[]; | ||
}>>; | ||
render: (params: { | ||
id: string; | ||
'x-rlvt-no-cache'?: boolean; | ||
}, data: { | ||
dependenciesData: { | ||
[key: string]: any; | ||
}; | ||
}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{ | ||
readable: boolean; | ||
readonly readableEncoding: ("ascii" & { | ||
readonly?: "__readonly"; | ||
}) | ("utf8" & { | ||
readonly?: "__readonly"; | ||
}) | ("utf-8" & { | ||
readonly?: "__readonly"; | ||
}) | ("utf16le" & { | ||
readonly?: "__readonly"; | ||
}) | ("ucs2" & { | ||
readonly?: "__readonly"; | ||
}) | ("ucs-2" & { | ||
readonly?: "__readonly"; | ||
}) | ("base64" & { | ||
readonly?: "__readonly"; | ||
}) | ("base64url" & { | ||
readonly?: "__readonly"; | ||
}) | ("latin1" & { | ||
readonly?: "__readonly"; | ||
}) | ("binary" & { | ||
readonly?: "__readonly"; | ||
}) | ("hex" & { | ||
readonly?: "__readonly"; | ||
}); | ||
readonly readableEnded: (false & { | ||
readonly?: "__readonly"; | ||
}) | (true & { | ||
readonly?: "__readonly"; | ||
}); | ||
readonly readableFlowing: (false & { | ||
readonly?: "__readonly"; | ||
}) | (true & { | ||
readonly?: "__readonly"; | ||
}); | ||
readonly readableHighWaterMark: number & { | ||
readonly?: "__readonly"; | ||
}; | ||
readonly readableLength: number & { | ||
readonly?: "__readonly"; | ||
}; | ||
readonly readableObjectMode: (false & { | ||
readonly?: "__readonly"; | ||
}) | (true & { | ||
readonly?: "__readonly"; | ||
}); | ||
destroyed: boolean; | ||
}>>; | ||
}; | ||
} |
@@ -8,3 +8,6 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ContentStatus = void 0; | ||
const axios_1 = __importDefault(require("axios")); | ||
var definitions_1 = require("./definitions"); | ||
Object.defineProperty(exports, "ContentStatus", { enumerable: true, get: function () { return definitions_1.ContentStatus; } }); | ||
class default_1 { | ||
@@ -16,5 +19,19 @@ constructor(configOrInstance) { | ||
} | ||
listContentFontResource(params, options) { | ||
return this.axios.get("/contents/fonts", Object.assign({}, { | ||
params: pick(params, "ids", "resourceGroupIds"), | ||
}, options)); | ||
} | ||
createContentFontResource(data, options) { | ||
return this.axios.post("/contents/fonts", data, options); | ||
} | ||
getContentFontResource(params, options) { | ||
return this.axios.get("/contents/fonts/{id}".replace(/{id}/, String(params["id"])), options); | ||
} | ||
updateContentFontResource(params, data, options) { | ||
return this.axios.patch("/contents/fonts/{id}".replace(/{id}/, String(params["id"])), data, options); | ||
} | ||
listContent(params, options) { | ||
return this.axios.get("/contents", Object.assign({}, { | ||
params: pick(params, "name", "resourceGroupIds", "status", "sortBy", "sortOrder", "page", "perPage"), | ||
params: pick(params, "ids", "name", "resourceGroupIds", "status", "sortBy", "sortOrder", "page", "perPage"), | ||
}, options)); | ||
@@ -32,3 +49,5 @@ } | ||
deleteContent(params, options) { | ||
return this.axios.delete("/contents/{id}".replace(/{id}/, String(params["id"])), options); | ||
return this.axios.delete("/contents/{id}".replace(/{id}/, String(params["id"])), Object.assign({}, { | ||
params: pick(params, "dry-run"), | ||
}, options)); | ||
} | ||
@@ -38,2 +57,15 @@ publishContent(params, options) { | ||
} | ||
renderContent(params, data, options) { | ||
return this.axios.post("/contents/render/{id}".replace(/{id}/, String(params["id"])), data, Object.assign({}, { | ||
headers: pick(params, "x-rlvt-no-cache"), | ||
}, options)); | ||
} | ||
get ContentResource() { | ||
return { | ||
listContentFontResource: this.listContentFontResource.bind(this), | ||
createContentFontResource: this.createContentFontResource.bind(this), | ||
getContentFontResource: this.getContentFontResource.bind(this), | ||
updateContentFontResource: this.updateContentFontResource.bind(this) | ||
}; | ||
} | ||
get Content() { | ||
@@ -46,3 +78,4 @@ return { | ||
delete: this.deleteContent.bind(this), | ||
publish: this.publishContent.bind(this) | ||
publish: this.publishContent.bind(this), | ||
render: this.renderContent.bind(this) | ||
}; | ||
@@ -60,2 +93,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvQkFBb0I7QUFDcEIsb0JBQW9COzs7OztBQUVwQixrREFBaUU7QUFlakU7SUFHSSxZQUFZLGdCQUFvRDtRQUM1RCxJQUFJLENBQUMsS0FBSyxHQUFHLGNBQWMsSUFBSSxnQkFBZ0I7WUFDM0MsQ0FBQyxDQUFDLGdCQUFnQjtZQUNsQixDQUFDLENBQUMsZUFBSyxDQUFDLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFBO0lBQ3hDLENBQUM7SUFFTyxXQUFXLENBQUMsTUFRbkIsRUFBRSxPQUE0QjtRQUMzQixPQUFPLElBQUksQ0FBQyxLQUFLLENBQUMsR0FBRyxDQVlqQixXQUFXLEVBQ1g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QyxJQUFJLENBQUMsSUFBSSxDQUFDO1lBQ3JDLEdBQUcsRUFBRSxJQUFJLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUM7WUFDL0IsTUFBTSxFQUFFLElBQUksQ0FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQztZQUNyQyxNQUFNLEVBQUUsSUFBSSxDQUFDLGFBQWEsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDO1lBQ3JDLE9BQU8sRUFBRSxJQUFJLENBQUMsY0FBYyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUM7WUFDdkMsTUFBTSxFQUFFLElBQUksQ0FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQztTQUN4QyxDQUFDO0lBQ04sQ0FBQztDQUNKO0FBOU9ELDRCQThPQztBQUVELFNBQVMsSUFBSSxDQUF1QixHQUFNLEVBQUUsR0FBRyxJQUFTO0lBQ3BELE1BQU0sR0FBRyxHQUFlLEVBQWdCLENBQUM7SUFDekMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsRUFBRTtRQUNmLElBQUksR0FBRyxJQUFJLE1BQU0sQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLENBQUMsUUFBUSxDQUFDLEdBQWEsQ0FBQztZQUMvQyxHQUFHLENBQUMsR0FBRyxDQUFDLEdBQUcsR0FBRyxDQUFDLEdBQUcsQ0FBQyxDQUFDO0lBQzVCLENBQUMsQ0FBQyxDQUFDO0lBQ0gsT0FBTyxHQUFHLENBQUM7QUFDZixDQUFDIn0= |
@@ -20,7 +20,36 @@ declare type readonlyP = { | ||
} : never; | ||
export declare type Pick__LeanDocument_this__Exclude_keyofthis_24getAllSubdocs_or_24ignore_or_24isDefault_or_24isDeleted_or_24getPopulatedDocs_or_24isEmpty_or_24isValid_or_24locals_or_24markValid_or_24op_or_24session_or_24set_or_24where_or_baseModelName_or_collection_or_db_or_delete_or_deleteOne_or_depopulate_or_directModifiedPaths_or_equals_or_errors_or_execPopulate_or_get_or_getChanges_or_increment_or_init_or_invalidate_or_isDirectModified_or_isDirectSelected_or_isInit_or_isModified_or_isNew_or_isSelected_or_markModified_or_modifiedPaths_or_model_or_modelName_or_overwrite_or_24parent_or_populate_or_populated_or_remove_or_replaceOne_or_save_or_schema_or_set_or_toJSON_or_toObject_or_unmarkModified_or_update_or_updateOne_or_validate_or_validateSync_or_24isSingleNested__ = { | ||
_id?: any; | ||
__v?: any; | ||
id?: any; | ||
export declare type SerializedContentResource = { | ||
readonly id: (string) & readonlyP; | ||
readonly companyId: (string) & readonlyP; | ||
resourceGroupIds: string[]; | ||
readonly createdAt: (Date) & readonlyP; | ||
readonly updatedAt: (Date) & readonlyP; | ||
}; | ||
export declare type Pick_ContentFontResources_type_or_family_or_files_ = { | ||
type: "font"; | ||
family: string; | ||
files: { | ||
[key: string]: string; | ||
}; | ||
}; | ||
export declare type ContentFontResources = SerializedContentResource & Pick_ContentFontResources_type_or_family_or_files_; | ||
export declare type Pick_SerializedContentFontResource_resourceGroupIds_or_family_or_files_ = { | ||
resourceGroupIds: string[]; | ||
family: string; | ||
files: { | ||
[key: string]: string; | ||
}; | ||
}; | ||
export declare type Partial_SerializedContentFontResource_ = { | ||
readonly id?: (string) & readonlyP; | ||
readonly companyId?: (string) & readonlyP; | ||
resourceGroupIds?: string[]; | ||
readonly createdAt?: (Date) & readonlyP; | ||
readonly updatedAt?: (Date) & readonlyP; | ||
type?: "font"; | ||
family?: string; | ||
files?: { | ||
[key: string]: string; | ||
}; | ||
}; | ||
export declare enum ContentVersionState { | ||
@@ -32,7 +61,6 @@ DRAFT = "draft", | ||
export declare type AnyValue = any | null; | ||
export declare type PageComponent = { | ||
export declare type _id_string_x_number_y_number_width_number_height_number_rotation_number__ = { | ||
id: string; | ||
x: number; | ||
y: number; | ||
z: number; | ||
width: number; | ||
@@ -42,6 +70,37 @@ height: number; | ||
}; | ||
export declare type Page = { | ||
export declare type _type_conditionGroup__ = { | ||
type: "conditionGroup"; | ||
}; | ||
export declare type _type_condition_children_string_Array__ = { | ||
type: "condition"; | ||
children: string[]; | ||
}; | ||
export declare type _type_component__ = { | ||
type: "component"; | ||
}; | ||
export declare type _type_componentGroup_children_string_Array__ = { | ||
type: "componentGroup"; | ||
children: string[]; | ||
}; | ||
export declare type __x_string___type_conditionGroup___or__type_condition_children_string_Array___or__type_component___or__type_componentGroup_children_string_Array____ = { | ||
[key: string]: _type_conditionGroup__ | _type_condition_children_string_Array__ | _type_component__ | _type_componentGroup_children_string_Array__; | ||
}; | ||
export declare type _root_string_Array_elements___x_string___type_conditionGroup___or__type_condition_children_string_Array___or__type_component___or__type_componentGroup_children_string_Array______ = { | ||
root: string[]; | ||
elements: __x_string___type_conditionGroup___or__type_condition_children_string_Array___or__type_component___or__type_componentGroup_children_string_Array____; | ||
}; | ||
export declare type _type_static_value_string__ = { | ||
type: "static"; | ||
value: string; | ||
}; | ||
export declare type _type_dependency_value_string__ = { | ||
type: "dependency"; | ||
value: string; | ||
}; | ||
export declare type _width_number_height_number_components__id_string_x_number_y_number_width_number_height_number_rotation_number___Array_orderTree__root_string_Array_elements___x_string___type_conditionGroup___or__type_condition_children_string_Array___or__type_component___or__type_componentGroup_children_string_Array_______url___type_static_value_string___or__type_dependency_value_string____Array_or_undefined__ = { | ||
width: number; | ||
height: number; | ||
components: PageComponent[]; | ||
components: _id_string_x_number_y_number_width_number_height_number_rotation_number__[]; | ||
orderTree: _root_string_Array_elements___x_string___type_conditionGroup___or__type_condition_children_string_Array___or__type_component___or__type_componentGroup_children_string_Array______; | ||
url?: (_type_static_value_string__ | _type_dependency_value_string__)[]; | ||
}; | ||
@@ -59,3 +118,3 @@ export declare type Condition = { | ||
}; | ||
operator: ">=" | ">" | "<" | "<=" | "==" | "=" | "!=" | "!=="; | ||
operator: "$gte" | "$gt" | "$lt" | "$lte" | "$eq" | "$ne"; | ||
value: { | ||
@@ -69,25 +128,50 @@ type: "static"; | ||
}[]; | ||
components: string[]; | ||
}; | ||
export declare type ElseCondition = { | ||
id: "else"; | ||
components: string[]; | ||
id: string; | ||
isElse: true; | ||
}; | ||
export declare type ConditionGroup = { | ||
parent?: { | ||
id: string; | ||
conditionId: string; | ||
}; | ||
name: string; | ||
conditions: (Condition | ElseCondition)[]; | ||
name?: string; | ||
conditions: (Condition | Condition | ElseCondition)[]; | ||
}; | ||
export declare type ComponentGroup = { | ||
name?: string; | ||
rendered: boolean; | ||
}; | ||
export declare type BaseTemplate = { | ||
components: {}; | ||
dependencies: {}; | ||
pages: {}; | ||
conditionGroups: {}; | ||
components: { | ||
[key: string]: { | ||
name?: string; | ||
type: string; | ||
rendered: boolean; | ||
options: { | ||
[key: string]: AnyValue; | ||
}; | ||
}; | ||
}; | ||
dependencies: { | ||
[key: string]: { | ||
type: string; | ||
options: { | ||
[key: string]: AnyValue; | ||
}; | ||
}; | ||
}; | ||
pages: { | ||
[key: string]: _width_number_height_number_components__id_string_x_number_y_number_width_number_height_number_rotation_number___Array_orderTree__root_string_Array_elements___x_string___type_conditionGroup___or__type_condition_children_string_Array___or__type_component___or__type_componentGroup_children_string_Array_______url___type_static_value_string___or__type_dependency_value_string____Array_or_undefined__; | ||
}; | ||
conditionGroups: { | ||
[key: string]: ConditionGroup; | ||
}; | ||
componentGroups: { | ||
[key: string]: ComponentGroup; | ||
}; | ||
}; | ||
export declare type SerializedContentVersions = { | ||
readonly state: (ContentVersionState) & readonlyP; | ||
metadata?: {}; | ||
previewUrl?: string; | ||
metadata?: { | ||
[key: string]: AnyValue; | ||
}; | ||
template: BaseTemplate; | ||
@@ -114,3 +198,2 @@ }; | ||
export declare type Contents = SerializedContent; | ||
export declare type IObjectWithTypegooseFunction = {}; | ||
export declare type Pick_SerializedContent_resourceGroupIds_or_name_or_description_ = { | ||
@@ -134,5 +217,18 @@ resourceGroupIds: string[]; | ||
readonly state?: (ContentVersionState) & readonlyP; | ||
metadata?: {}; | ||
previewUrl?: string; | ||
metadata?: { | ||
[key: string]: AnyValue; | ||
}; | ||
template?: BaseTemplate; | ||
}; | ||
export declare type Readable = { | ||
readable: boolean; | ||
readonly readableEncoding: ("ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex") & readonlyP; | ||
readonly readableEnded: (boolean) & readonlyP; | ||
readonly readableFlowing: (boolean | null) & readonlyP; | ||
readonly readableHighWaterMark: (number) & readonlyP; | ||
readonly readableLength: (number) & readonlyP; | ||
readonly readableObjectMode: (boolean) & readonlyP; | ||
destroyed: boolean; | ||
}; | ||
export {}; |
@@ -19,2 +19,2 @@ "use strict"; | ||
})(ContentStatus = exports.ContentStatus || (exports.ContentStatus = {})); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmaW5pdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9kZWZpbml0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0JBQW9CO0FBQ3BCLG9CQUFvQjs7O0FBcUNwQixJQUFZLG1CQUlYO0FBSkQsV0FBWSxtQkFBbUI7SUFDM0Isc0NBQWUsQ0FBQTtJQUNmLG9DQUFhLENBQUE7SUFDYiw0Q0FBcUIsQ0FBQTtBQUN6QixDQUFDLEVBSlcsbUJBQW1CLEdBQW5CLDJCQUFtQixLQUFuQiwyQkFBbUIsUUFJOUI7QUFnRUQsSUFBWSxhQUtYO0FBTEQsV0FBWSxhQUFhO0lBQ3JCLGdDQUFlLENBQUE7SUFDZiwwQ0FBeUIsQ0FBQTtJQUN6Qix3Q0FBdUIsQ0FBQTtJQUN2QixnQ0FBZSxDQUFBO0FBQ25CLENBQUMsRUFMVyxhQUFhLEdBQWIscUJBQWEsS0FBYixxQkFBYSxRQUt4QiJ9 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmaW5pdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9kZWZpbml0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0JBQW9CO0FBQ3BCLG9CQUFvQjs7O0FBa0VwQixJQUFZLG1CQUlYO0FBSkQsV0FBWSxtQkFBbUI7SUFDM0Isc0NBQWUsQ0FBQTtJQUNmLG9DQUFhLENBQUE7SUFDYiw0Q0FBcUIsQ0FBQTtBQUN6QixDQUFDLEVBSlcsbUJBQW1CLEdBQW5CLDJCQUFtQixLQUFuQiwyQkFBbUIsUUFJOUI7QUF1SEQsSUFBWSxhQUtYO0FBTEQsV0FBWSxhQUFhO0lBQ3JCLGdDQUFlLENBQUE7SUFDZiwwQ0FBeUIsQ0FBQTtJQUN6Qix3Q0FBdUIsQ0FBQTtJQUN2QixnQ0FBZSxDQUFBO0FBQ25CLENBQUMsRUFMVyxhQUFhLEdBQWIscUJBQWEsS0FBYixxQkFBYSxRQUt4QiJ9 |
{ | ||
"name": "@rlvt/contents-openapi-client", | ||
"version": "0.0.0-548e775", | ||
"version": "0.0.0-55240b1", | ||
"description": "Openapi client for reelevant service", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
64242
1400
1