ultracart_rest_api_v2_typescript 4.1.141 → 4.1.142
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/models/SfvbCompileRequest.d.ts +3 -3
- package/dist/models/SfvbCompileRequest.js +6 -6
- package/dist/models/SfvbCompileResponse.d.ts +2 -2
- package/dist/models/SfvbCompileResponse.js +4 -4
- package/dist/models/SfvbContainerResponse.d.ts +7 -7
- package/dist/models/SfvbContainerResponse.js +14 -14
- package/dist/models/SfvbContainerRevertRequest.d.ts +1 -1
- package/dist/models/SfvbContainerRevertRequest.js +2 -2
- package/dist/models/SfvbContainerVersion.d.ts +7 -7
- package/dist/models/SfvbContainerVersion.js +14 -14
- package/dist/models/SfvbContainerWriteRequest.d.ts +2 -2
- package/dist/models/SfvbContainerWriteRequest.js +4 -4
- package/dist/models/SfvbElement.d.ts +1 -1
- package/dist/models/SfvbElement.js +2 -2
- package/dist/models/SfvbElementsResponse.d.ts +1 -1
- package/dist/models/SfvbElementsResponse.js +2 -2
- package/dist/models/SfvbErrorDetail.d.ts +1 -1
- package/dist/models/SfvbErrorDetail.js +2 -2
- package/dist/models/SfvbFileContentResponse.d.ts +5 -5
- package/dist/models/SfvbFileContentResponse.js +10 -10
- package/dist/models/SfvbFileEntry.d.ts +9 -9
- package/dist/models/SfvbFileEntry.js +18 -18
- package/dist/models/SfvbFileSearchRequest.d.ts +12 -12
- package/dist/models/SfvbFileSearchRequest.js +24 -24
- package/dist/models/SfvbFileSearchResponse.d.ts +5 -5
- package/dist/models/SfvbFileSearchResponse.js +10 -10
- package/dist/models/SfvbFileVersion.d.ts +4 -4
- package/dist/models/SfvbFileVersion.js +8 -8
- package/dist/models/SfvbFileVersionsResponse.d.ts +1 -1
- package/dist/models/SfvbFileVersionsResponse.js +2 -2
- package/dist/models/SfvbFileWriteRequest.d.ts +1 -1
- package/dist/models/SfvbFileWriteRequest.js +2 -2
- package/dist/models/SfvbFileWriteResponse.d.ts +3 -3
- package/dist/models/SfvbFileWriteResponse.js +6 -6
- package/dist/models/SfvbFilesResponse.d.ts +3 -3
- package/dist/models/SfvbFilesResponse.js +6 -6
- package/dist/models/SfvbLibraryEntry.d.ts +6 -6
- package/dist/models/SfvbLibraryEntry.js +12 -12
- package/dist/models/SfvbLibraryFacet.d.ts +1 -1
- package/dist/models/SfvbLibraryFacet.js +2 -2
- package/dist/models/SfvbLibraryResponse.d.ts +4 -4
- package/dist/models/SfvbLibraryResponse.js +8 -8
- package/dist/models/SfvbPreviewSessionRequest.d.ts +1 -1
- package/dist/models/SfvbPreviewSessionRequest.js +2 -2
- package/dist/models/SfvbPreviewSessionResponse.d.ts +6 -6
- package/dist/models/SfvbPreviewSessionResponse.js +12 -12
- package/dist/models/SfvbPreviewUrlResponse.d.ts +5 -5
- package/dist/models/SfvbPreviewUrlResponse.js +10 -10
- package/dist/models/SfvbRenderRequest.d.ts +10 -10
- package/dist/models/SfvbRenderRequest.js +20 -20
- package/dist/models/SfvbRenderResponse.d.ts +1 -1
- package/dist/models/SfvbRenderResponse.js +2 -2
- package/dist/models/SfvbStorefront.d.ts +3 -3
- package/dist/models/SfvbStorefront.js +6 -6
- package/dist/models/SfvbTheme.d.ts +5 -5
- package/dist/models/SfvbTheme.js +10 -10
- package/dist/models/SfvbThemeDuplicateRequest.d.ts +2 -2
- package/dist/models/SfvbThemeDuplicateRequest.js +4 -4
- package/dist/models/SfvbThemeJobResponse.d.ts +7 -7
- package/dist/models/SfvbThemeJobResponse.js +14 -14
- package/dist/models/SfvbThemesResponse.d.ts +1 -1
- package/dist/models/SfvbThemesResponse.js +2 -2
- package/dist/models/SfvbUpsellOffer.d.ts +7 -7
- package/dist/models/SfvbUpsellOffer.js +14 -14
- package/dist/models/SfvbUpsellOffersResponse.d.ts +1 -1
- package/dist/models/SfvbUpsellOffersResponse.js +2 -2
- package/dist/models/SfvbValidateRequest.d.ts +4 -4
- package/dist/models/SfvbValidateRequest.js +8 -8
- package/dist/models/SfvbValidationResponse.d.ts +1 -1
- package/dist/models/SfvbValidationResponse.js +2 -2
- package/dist/models/SfvbVersionResponse.d.ts +9 -9
- package/dist/models/SfvbVersionResponse.js +18 -18
- package/dist/models/SfvbWhoamiResponse.d.ts +10 -10
- package/dist/models/SfvbWhoamiResponse.js +20 -20
- package/dist/models/SfvbWidgetIdsResponse.d.ts +1 -1
- package/dist/models/SfvbWidgetIdsResponse.js +2 -2
- package/package.json +1 -1
- package/src/models/SfvbCompileRequest.ts +9 -9
- package/src/models/SfvbCompileResponse.ts +6 -6
- package/src/models/SfvbContainerResponse.ts +21 -21
- package/src/models/SfvbContainerRevertRequest.ts +3 -3
- package/src/models/SfvbContainerVersion.ts +21 -21
- package/src/models/SfvbContainerWriteRequest.ts +6 -6
- package/src/models/SfvbElement.ts +3 -3
- package/src/models/SfvbElementsResponse.ts +3 -3
- package/src/models/SfvbErrorDetail.ts +3 -3
- package/src/models/SfvbFileContentResponse.ts +15 -15
- package/src/models/SfvbFileEntry.ts +27 -27
- package/src/models/SfvbFileSearchRequest.ts +36 -36
- package/src/models/SfvbFileSearchResponse.ts +15 -15
- package/src/models/SfvbFileVersion.ts +12 -12
- package/src/models/SfvbFileVersionsResponse.ts +3 -3
- package/src/models/SfvbFileWriteRequest.ts +3 -3
- package/src/models/SfvbFileWriteResponse.ts +9 -9
- package/src/models/SfvbFilesResponse.ts +9 -9
- package/src/models/SfvbLibraryEntry.ts +18 -18
- package/src/models/SfvbLibraryFacet.ts +3 -3
- package/src/models/SfvbLibraryResponse.ts +12 -12
- package/src/models/SfvbPreviewSessionRequest.ts +3 -3
- package/src/models/SfvbPreviewSessionResponse.ts +18 -18
- package/src/models/SfvbPreviewUrlResponse.ts +15 -15
- package/src/models/SfvbRenderRequest.ts +30 -30
- package/src/models/SfvbRenderResponse.ts +3 -3
- package/src/models/SfvbStorefront.ts +9 -9
- package/src/models/SfvbTheme.ts +15 -15
- package/src/models/SfvbThemeDuplicateRequest.ts +6 -6
- package/src/models/SfvbThemeJobResponse.ts +21 -21
- package/src/models/SfvbThemesResponse.ts +3 -3
- package/src/models/SfvbUpsellOffer.ts +21 -21
- package/src/models/SfvbUpsellOffersResponse.ts +3 -3
- package/src/models/SfvbValidateRequest.ts +12 -12
- package/src/models/SfvbValidationResponse.ts +3 -3
- package/src/models/SfvbVersionResponse.ts +27 -27
- package/src/models/SfvbWhoamiResponse.ts +30 -30
- package/src/models/SfvbWidgetIdsResponse.ts +3 -3
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# UltraCart Typescript SDK
|
|
2
|
-
## ultracart_rest_api_v2_typescript@4.1.
|
|
2
|
+
## ultracart_rest_api_v2_typescript@4.1.142
|
|
3
3
|
|
|
4
4
|
Every API method call has a sample for every language SDK. See https://github.com/UltraCart/sdk_samples
|
|
5
5
|
|
|
6
6
|
Installation
|
|
7
7
|
|
|
8
8
|
```
|
|
9
|
-
npm install ultracart_rest_api_v2_typescript@4.1.
|
|
9
|
+
npm install ultracart_rest_api_v2_typescript@4.1.142 --save
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
@@ -85,6 +85,7 @@ Not every change is committed to every SDK.
|
|
|
85
85
|
|
|
86
86
|
| Version | Date | Comments |
|
|
87
87
|
| --: | :-: | --- |
|
|
88
|
+
| 4.1.142 | 08/26/2026 | sfvb - internal test |
|
|
88
89
|
| 4.1.141 | 08/26/2026 | sfvb - internal testing |
|
|
89
90
|
| 4.1.140 | 08/26/2026 | sfvb - internal testing |
|
|
90
91
|
| 4.1.139 | 08/26/2026 | sfvb - internal testing |
|
|
@@ -26,19 +26,19 @@ export interface SfvbCompileRequest {
|
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof SfvbCompileRequest
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
container_name?: string;
|
|
30
30
|
/**
|
|
31
31
|
* Optional storefront oid. Required when theme_oid is supplied.
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof SfvbCompileRequest
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
storefront_oid?: number;
|
|
36
36
|
/**
|
|
37
37
|
* Optional theme oid. Supplies the theme's inherit groups configuration so compilation matches what the theme would produce. Omit to compile without inheritance.
|
|
38
38
|
* @type {number}
|
|
39
39
|
* @memberof SfvbCompileRequest
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
theme_oid?: number;
|
|
42
42
|
/**
|
|
43
43
|
* Run validation before compiling and fail on errors. Defaults to true.
|
|
44
44
|
* @type {boolean}
|
|
@@ -33,9 +33,9 @@ function SfvbCompileRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
35
|
'cjson': !(0, runtime_1.exists)(json, 'cjson') ? undefined : json['cjson'],
|
|
36
|
-
'
|
|
37
|
-
'
|
|
38
|
-
'
|
|
36
|
+
'container_name': !(0, runtime_1.exists)(json, 'container_name') ? undefined : json['container_name'],
|
|
37
|
+
'storefront_oid': !(0, runtime_1.exists)(json, 'storefront_oid') ? undefined : json['storefront_oid'],
|
|
38
|
+
'theme_oid': !(0, runtime_1.exists)(json, 'theme_oid') ? undefined : json['theme_oid'],
|
|
39
39
|
'validate': !(0, runtime_1.exists)(json, 'validate') ? undefined : json['validate'],
|
|
40
40
|
};
|
|
41
41
|
}
|
|
@@ -49,9 +49,9 @@ function SfvbCompileRequestToJSON(value) {
|
|
|
49
49
|
}
|
|
50
50
|
return {
|
|
51
51
|
'cjson': value.cjson,
|
|
52
|
-
'
|
|
53
|
-
'
|
|
54
|
-
'
|
|
52
|
+
'container_name': value.container_name,
|
|
53
|
+
'storefront_oid': value.storefront_oid,
|
|
54
|
+
'theme_oid': value.theme_oid,
|
|
55
55
|
'validate': value.validate,
|
|
56
56
|
};
|
|
57
57
|
}
|
|
@@ -21,7 +21,7 @@ export interface SfvbCompileResponse {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof SfvbCompileResponse
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
container_id?: string;
|
|
25
25
|
/**
|
|
26
26
|
* Velocity directives the compiled output declares.
|
|
27
27
|
* @type {Array<string>}
|
|
@@ -39,7 +39,7 @@ export interface SfvbCompileResponse {
|
|
|
39
39
|
* @type {Array<string>}
|
|
40
40
|
* @memberof SfvbCompileResponse
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
used_elements?: Array<string>;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {SfvbValidationResponse}
|
|
@@ -33,10 +33,10 @@ function SfvbCompileResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
36
|
-
'
|
|
36
|
+
'container_id': !(0, runtime_1.exists)(json, 'container_id') ? undefined : json['container_id'],
|
|
37
37
|
'directives': !(0, runtime_1.exists)(json, 'directives') ? undefined : json['directives'],
|
|
38
38
|
'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
|
|
39
|
-
'
|
|
39
|
+
'used_elements': !(0, runtime_1.exists)(json, 'used_elements') ? undefined : json['used_elements'],
|
|
40
40
|
'validation': !(0, runtime_1.exists)(json, 'validation') ? undefined : (0, SfvbValidationResponse_1.SfvbValidationResponseFromJSON)(json['validation']),
|
|
41
41
|
'velocity': !(0, runtime_1.exists)(json, 'velocity') ? undefined : json['velocity'],
|
|
42
42
|
};
|
|
@@ -50,10 +50,10 @@ function SfvbCompileResponseToJSON(value) {
|
|
|
50
50
|
return null;
|
|
51
51
|
}
|
|
52
52
|
return {
|
|
53
|
-
'
|
|
53
|
+
'container_id': value.container_id,
|
|
54
54
|
'directives': value.directives,
|
|
55
55
|
'success': value.success,
|
|
56
|
-
'
|
|
56
|
+
'used_elements': value.used_elements,
|
|
57
57
|
'validation': (0, SfvbValidationResponse_1.SfvbValidationResponseToJSON)(value.validation),
|
|
58
58
|
'velocity': value.velocity,
|
|
59
59
|
};
|
|
@@ -20,7 +20,7 @@ export interface SfvbContainerResponse {
|
|
|
20
20
|
* @type {boolean}
|
|
21
21
|
* @memberof SfvbContainerResponse
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
active_theme?: boolean;
|
|
24
24
|
/**
|
|
25
25
|
* The container JSON. Runtime state is stripped on the way out.
|
|
26
26
|
* @type {string}
|
|
@@ -32,37 +32,37 @@ export interface SfvbContainerResponse {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof SfvbContainerResponse
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
container_id?: string;
|
|
36
36
|
/**
|
|
37
37
|
* Container name.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof SfvbContainerResponse
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
container_name?: string;
|
|
42
42
|
/**
|
|
43
43
|
* SHA-256 of the cjson. Send back as If-Match when writing.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof SfvbContainerResponse
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
hash_sha256?: string;
|
|
48
48
|
/**
|
|
49
49
|
* When the container was last modified, where the store records it.
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof SfvbContainerResponse
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
last_modified?: string;
|
|
54
54
|
/**
|
|
55
55
|
* Identifier of the owning object within its store.
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof SfvbContainerResponse
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
owner_object_id?: string;
|
|
60
60
|
/**
|
|
61
61
|
* Where this container lives.
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof SfvbContainerResponse
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
owner_type?: SfvbContainerResponseOwnerTypeEnum;
|
|
66
66
|
/**
|
|
67
67
|
* File path, for theme and page containers only.
|
|
68
68
|
* @type {string}
|
|
@@ -43,14 +43,14 @@ function SfvbContainerResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
43
|
return json;
|
|
44
44
|
}
|
|
45
45
|
return {
|
|
46
|
-
'
|
|
46
|
+
'active_theme': !(0, runtime_1.exists)(json, 'active_theme') ? undefined : json['active_theme'],
|
|
47
47
|
'cjson': !(0, runtime_1.exists)(json, 'cjson') ? undefined : json['cjson'],
|
|
48
|
-
'
|
|
49
|
-
'
|
|
50
|
-
'
|
|
51
|
-
'
|
|
52
|
-
'
|
|
53
|
-
'
|
|
48
|
+
'container_id': !(0, runtime_1.exists)(json, 'container_id') ? undefined : json['container_id'],
|
|
49
|
+
'container_name': !(0, runtime_1.exists)(json, 'container_name') ? undefined : json['container_name'],
|
|
50
|
+
'hash_sha256': !(0, runtime_1.exists)(json, 'hash_sha256') ? undefined : json['hash_sha256'],
|
|
51
|
+
'last_modified': !(0, runtime_1.exists)(json, 'last_modified') ? undefined : json['last_modified'],
|
|
52
|
+
'owner_object_id': !(0, runtime_1.exists)(json, 'owner_object_id') ? undefined : json['owner_object_id'],
|
|
53
|
+
'owner_type': !(0, runtime_1.exists)(json, 'owner_type') ? undefined : json['owner_type'],
|
|
54
54
|
'path': !(0, runtime_1.exists)(json, 'path') ? undefined : json['path'],
|
|
55
55
|
'version': !(0, runtime_1.exists)(json, 'version') ? undefined : json['version'],
|
|
56
56
|
};
|
|
@@ -64,14 +64,14 @@ function SfvbContainerResponseToJSON(value) {
|
|
|
64
64
|
return null;
|
|
65
65
|
}
|
|
66
66
|
return {
|
|
67
|
-
'
|
|
67
|
+
'active_theme': value.active_theme,
|
|
68
68
|
'cjson': value.cjson,
|
|
69
|
-
'
|
|
70
|
-
'
|
|
71
|
-
'
|
|
72
|
-
'
|
|
73
|
-
'
|
|
74
|
-
'
|
|
69
|
+
'container_id': value.container_id,
|
|
70
|
+
'container_name': value.container_name,
|
|
71
|
+
'hash_sha256': value.hash_sha256,
|
|
72
|
+
'last_modified': value.last_modified,
|
|
73
|
+
'owner_object_id': value.owner_object_id,
|
|
74
|
+
'owner_type': value.owner_type,
|
|
75
75
|
'path': value.path,
|
|
76
76
|
'version': value.version,
|
|
77
77
|
};
|
|
@@ -26,7 +26,7 @@ export interface SfvbContainerRevertRequest {
|
|
|
26
26
|
* @type {number}
|
|
27
27
|
* @memberof SfvbContainerRevertRequest
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
container_history_oid?: number;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Check if a given object implements the SfvbContainerRevertRequest interface.
|
|
@@ -33,7 +33,7 @@ function SfvbContainerRevertRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
35
|
'comment': !(0, runtime_1.exists)(json, 'comment') ? undefined : json['comment'],
|
|
36
|
-
'
|
|
36
|
+
'container_history_oid': !(0, runtime_1.exists)(json, 'container_history_oid') ? undefined : json['container_history_oid'],
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
exports.SfvbContainerRevertRequestFromJSONTyped = SfvbContainerRevertRequestFromJSONTyped;
|
|
@@ -46,7 +46,7 @@ function SfvbContainerRevertRequestToJSON(value) {
|
|
|
46
46
|
}
|
|
47
47
|
return {
|
|
48
48
|
'comment': value.comment,
|
|
49
|
-
'
|
|
49
|
+
'container_history_oid': value.container_history_oid,
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
exports.SfvbContainerRevertRequestToJSON = SfvbContainerRevertRequestToJSON;
|
|
@@ -32,19 +32,19 @@ export interface SfvbContainerVersion {
|
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof SfvbContainerVersion
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
container_history_oid?: number;
|
|
36
36
|
/**
|
|
37
37
|
* Container name, where the owner has more than one container.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof SfvbContainerVersion
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
container_name?: string;
|
|
42
42
|
/**
|
|
43
43
|
* When this snapshot was taken.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof SfvbContainerVersion
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
created_dts?: string;
|
|
48
48
|
/**
|
|
49
49
|
* True for the value currently stored.
|
|
50
50
|
* @type {boolean}
|
|
@@ -56,13 +56,13 @@ export interface SfvbContainerVersion {
|
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof SfvbContainerVersion
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
edited_by?: string;
|
|
60
60
|
/**
|
|
61
61
|
* SHA-256 of this version's CJSON.
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof SfvbContainerVersion
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
hash_sha256?: string;
|
|
66
66
|
/**
|
|
67
67
|
* What the container was before the write this entry precedes. create means it did not exist, so reverting to this entry removes it again; update means it held the cjson recorded here.
|
|
68
68
|
* @type {string}
|
|
@@ -74,13 +74,13 @@ export interface SfvbContainerVersion {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof SfvbContainerVersion
|
|
76
76
|
*/
|
|
77
|
-
|
|
77
|
+
owner_object_id?: string;
|
|
78
78
|
/**
|
|
79
79
|
* Owner type.
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof SfvbContainerVersion
|
|
82
82
|
*/
|
|
83
|
-
|
|
83
|
+
owner_type?: SfvbContainerVersionOwnerTypeEnum;
|
|
84
84
|
/**
|
|
85
85
|
* Size of this version's CJSON in bytes.
|
|
86
86
|
* @type {number}
|
|
@@ -51,15 +51,15 @@ function SfvbContainerVersionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
51
|
return {
|
|
52
52
|
'cjson': !(0, runtime_1.exists)(json, 'cjson') ? undefined : json['cjson'],
|
|
53
53
|
'comment': !(0, runtime_1.exists)(json, 'comment') ? undefined : json['comment'],
|
|
54
|
-
'
|
|
55
|
-
'
|
|
56
|
-
'
|
|
54
|
+
'container_history_oid': !(0, runtime_1.exists)(json, 'container_history_oid') ? undefined : json['container_history_oid'],
|
|
55
|
+
'container_name': !(0, runtime_1.exists)(json, 'container_name') ? undefined : json['container_name'],
|
|
56
|
+
'created_dts': !(0, runtime_1.exists)(json, 'created_dts') ? undefined : json['created_dts'],
|
|
57
57
|
'current': !(0, runtime_1.exists)(json, 'current') ? undefined : json['current'],
|
|
58
|
-
'
|
|
59
|
-
'
|
|
58
|
+
'edited_by': !(0, runtime_1.exists)(json, 'edited_by') ? undefined : json['edited_by'],
|
|
59
|
+
'hash_sha256': !(0, runtime_1.exists)(json, 'hash_sha256') ? undefined : json['hash_sha256'],
|
|
60
60
|
'operation': !(0, runtime_1.exists)(json, 'operation') ? undefined : json['operation'],
|
|
61
|
-
'
|
|
62
|
-
'
|
|
61
|
+
'owner_object_id': !(0, runtime_1.exists)(json, 'owner_object_id') ? undefined : json['owner_object_id'],
|
|
62
|
+
'owner_type': !(0, runtime_1.exists)(json, 'owner_type') ? undefined : json['owner_type'],
|
|
63
63
|
'size': !(0, runtime_1.exists)(json, 'size') ? undefined : json['size'],
|
|
64
64
|
};
|
|
65
65
|
}
|
|
@@ -74,15 +74,15 @@ function SfvbContainerVersionToJSON(value) {
|
|
|
74
74
|
return {
|
|
75
75
|
'cjson': value.cjson,
|
|
76
76
|
'comment': value.comment,
|
|
77
|
-
'
|
|
78
|
-
'
|
|
79
|
-
'
|
|
77
|
+
'container_history_oid': value.container_history_oid,
|
|
78
|
+
'container_name': value.container_name,
|
|
79
|
+
'created_dts': value.created_dts,
|
|
80
80
|
'current': value.current,
|
|
81
|
-
'
|
|
82
|
-
'
|
|
81
|
+
'edited_by': value.edited_by,
|
|
82
|
+
'hash_sha256': value.hash_sha256,
|
|
83
83
|
'operation': value.operation,
|
|
84
|
-
'
|
|
85
|
-
'
|
|
84
|
+
'owner_object_id': value.owner_object_id,
|
|
85
|
+
'owner_type': value.owner_type,
|
|
86
86
|
'size': value.size,
|
|
87
87
|
};
|
|
88
88
|
}
|
|
@@ -20,7 +20,7 @@ export interface SfvbContainerWriteRequest {
|
|
|
20
20
|
* @type {boolean}
|
|
21
21
|
* @memberof SfvbContainerWriteRequest
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
allow_warnings?: boolean;
|
|
24
24
|
/**
|
|
25
25
|
* The container JSON to store.
|
|
26
26
|
* @type {string}
|
|
@@ -38,7 +38,7 @@ export interface SfvbContainerWriteRequest {
|
|
|
38
38
|
* @type {boolean}
|
|
39
39
|
* @memberof SfvbContainerWriteRequest
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
marketing_email?: boolean;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* Check if a given object implements the SfvbContainerWriteRequest interface.
|
|
@@ -32,10 +32,10 @@ function SfvbContainerWriteRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
|
-
'
|
|
35
|
+
'allow_warnings': !(0, runtime_1.exists)(json, 'allow_warnings') ? undefined : json['allow_warnings'],
|
|
36
36
|
'cjson': !(0, runtime_1.exists)(json, 'cjson') ? undefined : json['cjson'],
|
|
37
37
|
'comment': !(0, runtime_1.exists)(json, 'comment') ? undefined : json['comment'],
|
|
38
|
-
'
|
|
38
|
+
'marketing_email': !(0, runtime_1.exists)(json, 'marketing_email') ? undefined : json['marketing_email'],
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
exports.SfvbContainerWriteRequestFromJSONTyped = SfvbContainerWriteRequestFromJSONTyped;
|
|
@@ -47,10 +47,10 @@ function SfvbContainerWriteRequestToJSON(value) {
|
|
|
47
47
|
return null;
|
|
48
48
|
}
|
|
49
49
|
return {
|
|
50
|
-
'
|
|
50
|
+
'allow_warnings': value.allow_warnings,
|
|
51
51
|
'cjson': value.cjson,
|
|
52
52
|
'comment': value.comment,
|
|
53
|
-
'
|
|
53
|
+
'marketing_email': value.marketing_email,
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
exports.SfvbContainerWriteRequestToJSON = SfvbContainerWriteRequestToJSON;
|
|
@@ -32,7 +32,7 @@ function SfvbElementFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
|
-
'
|
|
35
|
+
'schema_available': !(0, runtime_1.exists)(json, 'schema_available') ? undefined : json['schema_available'],
|
|
36
36
|
'type': !(0, runtime_1.exists)(json, 'type') ? undefined : json['type'],
|
|
37
37
|
};
|
|
38
38
|
}
|
|
@@ -45,7 +45,7 @@ function SfvbElementToJSON(value) {
|
|
|
45
45
|
return null;
|
|
46
46
|
}
|
|
47
47
|
return {
|
|
48
|
-
'
|
|
48
|
+
'schema_available': value.schema_available,
|
|
49
49
|
'type': value.type,
|
|
50
50
|
};
|
|
51
51
|
}
|
|
@@ -33,7 +33,7 @@ function SfvbElementsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
36
|
-
'
|
|
36
|
+
'element_count': !(0, runtime_1.exists)(json, 'element_count') ? undefined : json['element_count'],
|
|
37
37
|
'elements': !(0, runtime_1.exists)(json, 'elements') ? undefined : (json['elements'].map(SfvbElement_1.SfvbElementFromJSON)),
|
|
38
38
|
'version': !(0, runtime_1.exists)(json, 'version') ? undefined : json['version'],
|
|
39
39
|
};
|
|
@@ -47,7 +47,7 @@ function SfvbElementsResponseToJSON(value) {
|
|
|
47
47
|
return null;
|
|
48
48
|
}
|
|
49
49
|
return {
|
|
50
|
-
'
|
|
50
|
+
'element_count': value.element_count,
|
|
51
51
|
'elements': value.elements === undefined ? undefined : (value.elements.map(SfvbElement_1.SfvbElementToJSON)),
|
|
52
52
|
'version': value.version,
|
|
53
53
|
};
|
|
@@ -41,7 +41,7 @@ function SfvbErrorDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
return {
|
|
42
42
|
'code': !(0, runtime_1.exists)(json, 'code') ? undefined : json['code'],
|
|
43
43
|
'column': !(0, runtime_1.exists)(json, 'column') ? undefined : json['column'],
|
|
44
|
-
'
|
|
44
|
+
'did_you_mean': !(0, runtime_1.exists)(json, 'did_you_mean') ? undefined : json['did_you_mean'],
|
|
45
45
|
'expected': !(0, runtime_1.exists)(json, 'expected') ? undefined : json['expected'],
|
|
46
46
|
'found': !(0, runtime_1.exists)(json, 'found') ? undefined : json['found'],
|
|
47
47
|
'line': !(0, runtime_1.exists)(json, 'line') ? undefined : json['line'],
|
|
@@ -62,7 +62,7 @@ function SfvbErrorDetailToJSON(value) {
|
|
|
62
62
|
return {
|
|
63
63
|
'code': value.code,
|
|
64
64
|
'column': value.column,
|
|
65
|
-
'
|
|
65
|
+
'did_you_mean': value.did_you_mean,
|
|
66
66
|
'expected': value.expected,
|
|
67
67
|
'found': value.found,
|
|
68
68
|
'line': value.line,
|
|
@@ -20,7 +20,7 @@ export interface SfvbFileContentResponse {
|
|
|
20
20
|
* @type {boolean}
|
|
21
21
|
* @memberof SfvbFileContentResponse
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
auto_compiled?: boolean;
|
|
24
24
|
/**
|
|
25
25
|
* UTF-8 content. Only text/* files can be read this way.
|
|
26
26
|
* @type {string}
|
|
@@ -32,19 +32,19 @@ export interface SfvbFileContentResponse {
|
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof SfvbFileContentResponse
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
fs_file_oid?: number;
|
|
36
36
|
/**
|
|
37
37
|
* SHA-256 of the content. Also returned as the ETag header; send it back as If-Match when writing.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof SfvbFileContentResponse
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
hash_sha256?: string;
|
|
42
42
|
/**
|
|
43
43
|
* Mime type.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof SfvbFileContentResponse
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
mime_type?: string;
|
|
48
48
|
/**
|
|
49
49
|
* Full path of the file.
|
|
50
50
|
* @type {string}
|
|
@@ -74,7 +74,7 @@ export interface SfvbFileContentResponse {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof SfvbFileContentResponse
|
|
76
76
|
*/
|
|
77
|
-
|
|
77
|
+
velocity_errors?: string;
|
|
78
78
|
/**
|
|
79
79
|
* Version number of the content returned.
|
|
80
80
|
* @type {number}
|
|
@@ -32,16 +32,16 @@ function SfvbFileContentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
|
-
'
|
|
35
|
+
'auto_compiled': !(0, runtime_1.exists)(json, 'auto_compiled') ? undefined : json['auto_compiled'],
|
|
36
36
|
'content': !(0, runtime_1.exists)(json, 'content') ? undefined : json['content'],
|
|
37
|
-
'
|
|
38
|
-
'
|
|
39
|
-
'
|
|
37
|
+
'fs_file_oid': !(0, runtime_1.exists)(json, 'fs_file_oid') ? undefined : json['fs_file_oid'],
|
|
38
|
+
'hash_sha256': !(0, runtime_1.exists)(json, 'hash_sha256') ? undefined : json['hash_sha256'],
|
|
39
|
+
'mime_type': !(0, runtime_1.exists)(json, 'mime_type') ? undefined : json['mime_type'],
|
|
40
40
|
'path': !(0, runtime_1.exists)(json, 'path') ? undefined : json['path'],
|
|
41
41
|
'size': !(0, runtime_1.exists)(json, 'size') ? undefined : json['size'],
|
|
42
42
|
'truncated': !(0, runtime_1.exists)(json, 'truncated') ? undefined : json['truncated'],
|
|
43
43
|
'valid': !(0, runtime_1.exists)(json, 'valid') ? undefined : json['valid'],
|
|
44
|
-
'
|
|
44
|
+
'velocity_errors': !(0, runtime_1.exists)(json, 'velocity_errors') ? undefined : json['velocity_errors'],
|
|
45
45
|
'version': !(0, runtime_1.exists)(json, 'version') ? undefined : json['version'],
|
|
46
46
|
};
|
|
47
47
|
}
|
|
@@ -54,16 +54,16 @@ function SfvbFileContentResponseToJSON(value) {
|
|
|
54
54
|
return null;
|
|
55
55
|
}
|
|
56
56
|
return {
|
|
57
|
-
'
|
|
57
|
+
'auto_compiled': value.auto_compiled,
|
|
58
58
|
'content': value.content,
|
|
59
|
-
'
|
|
60
|
-
'
|
|
61
|
-
'
|
|
59
|
+
'fs_file_oid': value.fs_file_oid,
|
|
60
|
+
'hash_sha256': value.hash_sha256,
|
|
61
|
+
'mime_type': value.mime_type,
|
|
62
62
|
'path': value.path,
|
|
63
63
|
'size': value.size,
|
|
64
64
|
'truncated': value.truncated,
|
|
65
65
|
'valid': value.valid,
|
|
66
|
-
'
|
|
66
|
+
'velocity_errors': value.velocity_errors,
|
|
67
67
|
'version': value.version,
|
|
68
68
|
};
|
|
69
69
|
}
|
|
@@ -20,7 +20,7 @@ export interface SfvbFileEntry {
|
|
|
20
20
|
* @type {boolean}
|
|
21
21
|
* @memberof SfvbFileEntry
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
auto_compiled?: boolean;
|
|
24
24
|
/**
|
|
25
25
|
* True when this entry is a directory.
|
|
26
26
|
* @type {boolean}
|
|
@@ -32,43 +32,43 @@ export interface SfvbFileEntry {
|
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof SfvbFileEntry
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
fs_directory_oid?: number;
|
|
36
36
|
/**
|
|
37
37
|
* StoreFront file system file oid.
|
|
38
38
|
* @type {number}
|
|
39
39
|
* @memberof SfvbFileEntry
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
fs_file_oid?: number;
|
|
42
42
|
/**
|
|
43
43
|
* SHA-256 of the content. Use as the If-Match value when writing.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof SfvbFileEntry
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
hash_sha256?: string;
|
|
48
48
|
/**
|
|
49
49
|
* True when the file has internationalization violations.
|
|
50
50
|
* @type {boolean}
|
|
51
51
|
* @memberof SfvbFileEntry
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
i18n_violation?: boolean;
|
|
54
54
|
/**
|
|
55
55
|
* Last modified timestamp.
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof SfvbFileEntry
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
last_modified?: string;
|
|
60
60
|
/**
|
|
61
61
|
* True when the file carries an unresolved theme merge conflict. Blocks theme activation.
|
|
62
62
|
* @type {boolean}
|
|
63
63
|
* @memberof SfvbFileEntry
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
merge_conflict?: boolean;
|
|
66
66
|
/**
|
|
67
67
|
* Mime type. Only text/* files can be read as content or searched by text.
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof SfvbFileEntry
|
|
70
70
|
*/
|
|
71
|
-
|
|
71
|
+
mime_type?: string;
|
|
72
72
|
/**
|
|
73
73
|
* File or directory name.
|
|
74
74
|
* @type {string}
|
|
@@ -86,7 +86,7 @@ export interface SfvbFileEntry {
|
|
|
86
86
|
* @type {boolean}
|
|
87
87
|
* @memberof SfvbFileEntry
|
|
88
88
|
*/
|
|
89
|
-
|
|
89
|
+
read_only?: boolean;
|
|
90
90
|
/**
|
|
91
91
|
* Size in bytes. Zero for directories.
|
|
92
92
|
* @type {number}
|