@digital8/lighting-illusions-ts-sdk 0.0.484 → 0.0.486

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.
Files changed (43) hide show
  1. package/.openapi-generator/FILES +2 -4
  2. package/README.md +7 -6
  3. package/dist/apis/DocumentApi.d.ts +24 -1
  4. package/dist/apis/DocumentApi.js +96 -2
  5. package/dist/models/GetAllDocumentRequest.d.ts +26 -0
  6. package/dist/models/GetAllDocumentRequest.js +14 -1
  7. package/dist/models/GetAllProductChildRequest.d.ts +1 -0
  8. package/dist/models/GetAllProductChildRequest.js +2 -1
  9. package/dist/models/IndexDocumentRequest.d.ts +26 -0
  10. package/dist/models/IndexDocumentRequest.js +14 -1
  11. package/dist/models/IndexExternalApiLogRequest.d.ts +0 -6
  12. package/dist/models/IndexExternalApiLogRequest.js +0 -2
  13. package/dist/models/IndexProductChildRequest.d.ts +1 -0
  14. package/dist/models/IndexProductChildRequest.js +1 -0
  15. package/dist/models/ProductChildSiteDetailResource.d.ts +2 -8
  16. package/dist/models/ProductChildSiteDetailResource.js +4 -4
  17. package/dist/models/UpdateDocumentRequest.d.ts +44 -0
  18. package/dist/models/UpdateDocumentRequest.js +57 -0
  19. package/dist/models/index.d.ts +1 -2
  20. package/dist/models/index.js +1 -2
  21. package/docs/DocumentApi.md +137 -2
  22. package/docs/GetAllDocumentRequest.md +6 -0
  23. package/docs/IndexDocumentRequest.md +6 -0
  24. package/docs/IndexExternalApiLogRequest.md +0 -2
  25. package/docs/ProductChildSiteDetailResource.md +2 -4
  26. package/docs/{ProductRating.md → UpdateDocumentRequest.md} +10 -4
  27. package/package.json +1 -1
  28. package/src/apis/DocumentApi.ts +91 -2
  29. package/src/models/GetAllDocumentRequest.ts +33 -0
  30. package/src/models/GetAllProductChildRequest.ts +2 -1
  31. package/src/models/IndexDocumentRequest.ts +33 -0
  32. package/src/models/IndexExternalApiLogRequest.ts +0 -8
  33. package/src/models/IndexProductChildRequest.ts +1 -0
  34. package/src/models/ProductChildSiteDetailResource.ts +5 -12
  35. package/src/models/UpdateDocumentRequest.ts +83 -0
  36. package/src/models/index.ts +1 -2
  37. package/dist/models/ProductRating.d.ts +0 -26
  38. package/dist/models/ProductRating.js +0 -52
  39. package/dist/models/ProductSortBy.d.ts +0 -32
  40. package/dist/models/ProductSortBy.js +0 -58
  41. package/docs/ProductSortBy.md +0 -32
  42. package/src/models/ProductRating.ts +0 -54
  43. package/src/models/ProductSortBy.ts +0 -60
@@ -96,16 +96,10 @@ export interface ProductChildSiteDetailResource {
96
96
  seo: SEOResource | null;
97
97
  /**
98
98
  *
99
- * @type {string}
100
- * @memberof ProductChildSiteDetailResource
101
- */
102
- omnisendId?: string | null;
103
- /**
104
- *
105
- * @type {string}
99
+ * @type {object}
106
100
  * @memberof ProductChildSiteDetailResource
107
101
  */
108
- omnisendSyncStatus?: string | null;
102
+ documents: object;
109
103
  }
110
104
 
111
105
  /**
@@ -122,6 +116,7 @@ export function instanceOfProductChildSiteDetailResource(value: object): value i
122
116
  if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
123
117
  if (!('isDisabled' in value) || value['isDisabled'] === undefined) return false;
124
118
  if (!('seo' in value) || value['seo'] === undefined) return false;
119
+ if (!('documents' in value) || value['documents'] === undefined) return false;
125
120
  return true;
126
121
  }
127
122
 
@@ -145,8 +140,7 @@ export function ProductChildSiteDetailResourceFromJSONTyped(json: any, ignoreDis
145
140
  'salePrice': json['salePrice'],
146
141
  'isDisabled': json['isDisabled'],
147
142
  'seo': SEOResourceFromJSON(json['seo']),
148
- 'omnisendId': json['omnisendId'] == null ? undefined : json['omnisendId'],
149
- 'omnisendSyncStatus': json['omnisendSyncStatus'] == null ? undefined : json['omnisendSyncStatus'],
143
+ 'documents': json['documents'],
150
144
  };
151
145
  }
152
146
 
@@ -171,8 +165,7 @@ export function ProductChildSiteDetailResourceToJSONTyped(value?: ProductChildSi
171
165
  'salePrice': value['salePrice'],
172
166
  'isDisabled': value['isDisabled'],
173
167
  'seo': SEOResourceToJSON(value['seo']),
174
- 'omnisendId': value['omnisendId'],
175
- 'omnisendSyncStatus': value['omnisendSyncStatus'],
168
+ 'documents': value['documents'],
176
169
  };
177
170
  }
178
171
 
@@ -0,0 +1,83 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface UpdateDocumentRequest
20
+ */
21
+ export interface UpdateDocumentRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof UpdateDocumentRequest
26
+ */
27
+ name: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof UpdateDocumentRequest
32
+ */
33
+ documentFileId: string;
34
+ /**
35
+ *
36
+ * @type {Array<string>}
37
+ * @memberof UpdateDocumentRequest
38
+ */
39
+ siteIds?: Array<string>;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the UpdateDocumentRequest interface.
44
+ */
45
+ export function instanceOfUpdateDocumentRequest(value: object): value is UpdateDocumentRequest {
46
+ if (!('name' in value) || value['name'] === undefined) return false;
47
+ if (!('documentFileId' in value) || value['documentFileId'] === undefined) return false;
48
+ return true;
49
+ }
50
+
51
+ export function UpdateDocumentRequestFromJSON(json: any): UpdateDocumentRequest {
52
+ return UpdateDocumentRequestFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function UpdateDocumentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDocumentRequest {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'name': json['name'],
62
+ 'documentFileId': json['document_file_id'],
63
+ 'siteIds': json['site_ids'] == null ? undefined : json['site_ids'],
64
+ };
65
+ }
66
+
67
+ export function UpdateDocumentRequestToJSON(json: any): UpdateDocumentRequest {
68
+ return UpdateDocumentRequestToJSONTyped(json, false);
69
+ }
70
+
71
+ export function UpdateDocumentRequestToJSONTyped(value?: UpdateDocumentRequest | null, ignoreDiscriminator: boolean = false): any {
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+
76
+ return {
77
+
78
+ 'name': value['name'],
79
+ 'document_file_id': value['documentFileId'],
80
+ 'site_ids': value['siteIds'],
81
+ };
82
+ }
83
+
@@ -126,10 +126,8 @@ export * from './ProductListResource';
126
126
  export * from './ProductListResourceArrayResponse';
127
127
  export * from './ProductLiteResource';
128
128
  export * from './ProductLiteResourceArrayResponse';
129
- export * from './ProductRating';
130
129
  export * from './ProductResource';
131
130
  export * from './ProductResourceArrayResponse';
132
- export * from './ProductSortBy';
133
131
  export * from './ProductTypeListResource';
134
132
  export * from './ProductTypeListResourceArrayResponse';
135
133
  export * from './ProductTypeLiteResource';
@@ -187,6 +185,7 @@ export * from './TagResourceArrayResponse';
187
185
  export * from './TagType';
188
186
  export * from './UpdateAttributeRequest';
189
187
  export * from './UpdateAttributeValueRequest';
188
+ export * from './UpdateDocumentRequest';
190
189
  export * from './UpdateFilterOrderAttributeRequest';
191
190
  export * from './UpdateFilterOrderAttributeRequestValuesInner';
192
191
  export * from './UpdateModelAttributeRequest';
@@ -1,26 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- */
16
- export declare const ProductRating: {
17
- readonly _5: "5";
18
- readonly _4: "4";
19
- readonly _3: "3";
20
- };
21
- export type ProductRating = typeof ProductRating[keyof typeof ProductRating];
22
- export declare function instanceOfProductRating(value: any): boolean;
23
- export declare function ProductRatingFromJSON(json: any): ProductRating;
24
- export declare function ProductRatingFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRating;
25
- export declare function ProductRatingToJSON(value?: ProductRating | null): any;
26
- export declare function ProductRatingToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductRating;
@@ -1,52 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ProductRating = void 0;
17
- exports.instanceOfProductRating = instanceOfProductRating;
18
- exports.ProductRatingFromJSON = ProductRatingFromJSON;
19
- exports.ProductRatingFromJSONTyped = ProductRatingFromJSONTyped;
20
- exports.ProductRatingToJSON = ProductRatingToJSON;
21
- exports.ProductRatingToJSONTyped = ProductRatingToJSONTyped;
22
- /**
23
- *
24
- * @export
25
- */
26
- exports.ProductRating = {
27
- _5: '5',
28
- _4: '4',
29
- _3: '3'
30
- };
31
- function instanceOfProductRating(value) {
32
- for (var key in exports.ProductRating) {
33
- if (Object.prototype.hasOwnProperty.call(exports.ProductRating, key)) {
34
- if (exports.ProductRating[key] === value) {
35
- return true;
36
- }
37
- }
38
- }
39
- return false;
40
- }
41
- function ProductRatingFromJSON(json) {
42
- return ProductRatingFromJSONTyped(json, false);
43
- }
44
- function ProductRatingFromJSONTyped(json, ignoreDiscriminator) {
45
- return json;
46
- }
47
- function ProductRatingToJSON(value) {
48
- return value;
49
- }
50
- function ProductRatingToJSONTyped(value, ignoreDiscriminator) {
51
- return value;
52
- }
@@ -1,32 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- */
16
- export declare const ProductSortBy: {
17
- readonly Relevance: "relevance";
18
- readonly MostPopular: "mostPopular";
19
- readonly HighestRating: "highestRating";
20
- readonly LowestRating: "lowestRating";
21
- readonly DescendingPrice: "descendingPrice";
22
- readonly AscendingPrice: "ascendingPrice";
23
- readonly DescendingName: "descendingName";
24
- readonly AscendingName: "ascendingName";
25
- readonly RecentlyAdded: "recentlyAdded";
26
- };
27
- export type ProductSortBy = typeof ProductSortBy[keyof typeof ProductSortBy];
28
- export declare function instanceOfProductSortBy(value: any): boolean;
29
- export declare function ProductSortByFromJSON(json: any): ProductSortBy;
30
- export declare function ProductSortByFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSortBy;
31
- export declare function ProductSortByToJSON(value?: ProductSortBy | null): any;
32
- export declare function ProductSortByToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductSortBy;
@@ -1,58 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ProductSortBy = void 0;
17
- exports.instanceOfProductSortBy = instanceOfProductSortBy;
18
- exports.ProductSortByFromJSON = ProductSortByFromJSON;
19
- exports.ProductSortByFromJSONTyped = ProductSortByFromJSONTyped;
20
- exports.ProductSortByToJSON = ProductSortByToJSON;
21
- exports.ProductSortByToJSONTyped = ProductSortByToJSONTyped;
22
- /**
23
- *
24
- * @export
25
- */
26
- exports.ProductSortBy = {
27
- Relevance: 'relevance',
28
- MostPopular: 'mostPopular',
29
- HighestRating: 'highestRating',
30
- LowestRating: 'lowestRating',
31
- DescendingPrice: 'descendingPrice',
32
- AscendingPrice: 'ascendingPrice',
33
- DescendingName: 'descendingName',
34
- AscendingName: 'ascendingName',
35
- RecentlyAdded: 'recentlyAdded'
36
- };
37
- function instanceOfProductSortBy(value) {
38
- for (var key in exports.ProductSortBy) {
39
- if (Object.prototype.hasOwnProperty.call(exports.ProductSortBy, key)) {
40
- if (exports.ProductSortBy[key] === value) {
41
- return true;
42
- }
43
- }
44
- }
45
- return false;
46
- }
47
- function ProductSortByFromJSON(json) {
48
- return ProductSortByFromJSONTyped(json, false);
49
- }
50
- function ProductSortByFromJSONTyped(json, ignoreDiscriminator) {
51
- return json;
52
- }
53
- function ProductSortByToJSON(value) {
54
- return value;
55
- }
56
- function ProductSortByToJSONTyped(value, ignoreDiscriminator) {
57
- return value;
58
- }
@@ -1,32 +0,0 @@
1
-
2
- # ProductSortBy
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
-
10
- ## Example
11
-
12
- ```typescript
13
- import type { ProductSortBy } from '@digital8/lighting-illusions-ts-sdk'
14
-
15
- // TODO: Update the object below with actual values
16
- const example = {
17
- } satisfies ProductSortBy
18
-
19
- console.log(example)
20
-
21
- // Convert the instance to a JSON string
22
- const exampleJSON: string = JSON.stringify(example)
23
- console.log(exampleJSON)
24
-
25
- // Parse the JSON string back to an object
26
- const exampleParsed = JSON.parse(exampleJSON) as ProductSortBy
27
- console.log(exampleParsed)
28
- ```
29
-
30
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
31
-
32
-
@@ -1,54 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- /**
17
- *
18
- * @export
19
- */
20
- export const ProductRating = {
21
- _5: '5',
22
- _4: '4',
23
- _3: '3'
24
- } as const;
25
- export type ProductRating = typeof ProductRating[keyof typeof ProductRating];
26
-
27
-
28
- export function instanceOfProductRating(value: any): boolean {
29
- for (const key in ProductRating) {
30
- if (Object.prototype.hasOwnProperty.call(ProductRating, key)) {
31
- if (ProductRating[key as keyof typeof ProductRating] === value) {
32
- return true;
33
- }
34
- }
35
- }
36
- return false;
37
- }
38
-
39
- export function ProductRatingFromJSON(json: any): ProductRating {
40
- return ProductRatingFromJSONTyped(json, false);
41
- }
42
-
43
- export function ProductRatingFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRating {
44
- return json as ProductRating;
45
- }
46
-
47
- export function ProductRatingToJSON(value?: ProductRating | null): any {
48
- return value as any;
49
- }
50
-
51
- export function ProductRatingToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductRating {
52
- return value as ProductRating;
53
- }
54
-
@@ -1,60 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- /**
17
- *
18
- * @export
19
- */
20
- export const ProductSortBy = {
21
- Relevance: 'relevance',
22
- MostPopular: 'mostPopular',
23
- HighestRating: 'highestRating',
24
- LowestRating: 'lowestRating',
25
- DescendingPrice: 'descendingPrice',
26
- AscendingPrice: 'ascendingPrice',
27
- DescendingName: 'descendingName',
28
- AscendingName: 'ascendingName',
29
- RecentlyAdded: 'recentlyAdded'
30
- } as const;
31
- export type ProductSortBy = typeof ProductSortBy[keyof typeof ProductSortBy];
32
-
33
-
34
- export function instanceOfProductSortBy(value: any): boolean {
35
- for (const key in ProductSortBy) {
36
- if (Object.prototype.hasOwnProperty.call(ProductSortBy, key)) {
37
- if (ProductSortBy[key as keyof typeof ProductSortBy] === value) {
38
- return true;
39
- }
40
- }
41
- }
42
- return false;
43
- }
44
-
45
- export function ProductSortByFromJSON(json: any): ProductSortBy {
46
- return ProductSortByFromJSONTyped(json, false);
47
- }
48
-
49
- export function ProductSortByFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSortBy {
50
- return json as ProductSortBy;
51
- }
52
-
53
- export function ProductSortByToJSON(value?: ProductSortBy | null): any {
54
- return value as any;
55
- }
56
-
57
- export function ProductSortByToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductSortBy {
58
- return value as ProductSortBy;
59
- }
60
-