@digital8/lighting-illusions-ts-sdk 0.0.464 → 0.0.465

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 (40) hide show
  1. package/.openapi-generator/FILES +2 -2
  2. package/README.md +10 -4
  3. package/dist/apis/ProductApi.d.ts +73 -1
  4. package/dist/apis/ProductApi.js +292 -0
  5. package/dist/apis/TagApi.d.ts +5 -5
  6. package/dist/apis/TagApi.js +1 -1
  7. package/dist/models/AssetLiteResource.d.ts +6 -0
  8. package/dist/models/AssetLiteResource.js +4 -0
  9. package/dist/models/AttachAccessoriesProductChildRequest.d.ts +32 -0
  10. package/dist/models/AttachAccessoriesProductChildRequest.js +51 -0
  11. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  12. package/dist/models/ExternalApiLogResource.js +3 -1
  13. package/dist/models/OverlayTemplateListResource.d.ts +7 -0
  14. package/dist/models/OverlayTemplateListResource.js +5 -0
  15. package/dist/models/ProductChildListResource.d.ts +12 -0
  16. package/dist/models/ProductChildListResource.js +8 -0
  17. package/dist/models/SiteNotificationListResource.d.ts +7 -0
  18. package/dist/models/SiteNotificationListResource.js +5 -0
  19. package/dist/models/index.d.ts +1 -1
  20. package/dist/models/index.js +1 -1
  21. package/docs/AssetLiteResource.md +2 -0
  22. package/docs/{LinkProductChildrenTagRequest.md → AttachAccessoriesProductChildRequest.md} +4 -4
  23. package/docs/OverlayTemplateListResource.md +2 -0
  24. package/docs/ProductApi.md +414 -0
  25. package/docs/ProductChildListResource.md +4 -0
  26. package/docs/SiteNotificationListResource.md +2 -0
  27. package/docs/TagApi.md +7 -7
  28. package/package.json +1 -1
  29. package/src/apis/ProductApi.ts +283 -0
  30. package/src/apis/TagApi.ts +8 -8
  31. package/src/models/AssetLiteResource.ts +9 -0
  32. package/src/models/AttachAccessoriesProductChildRequest.ts +66 -0
  33. package/src/models/ExternalApiLogResource.ts +3 -2
  34. package/src/models/OverlayTemplateListResource.ts +17 -0
  35. package/src/models/ProductChildListResource.ts +18 -0
  36. package/src/models/SiteNotificationListResource.ts +17 -0
  37. package/src/models/index.ts +1 -1
  38. package/dist/models/LinkProductChildrenTagRequest.d.ts +0 -32
  39. package/dist/models/LinkProductChildrenTagRequest.js +0 -51
  40. package/src/models/LinkProductChildrenTagRequest.ts +0 -66
@@ -0,0 +1,51 @@
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.instanceOfAttachAccessoriesProductChildRequest = instanceOfAttachAccessoriesProductChildRequest;
17
+ exports.AttachAccessoriesProductChildRequestFromJSON = AttachAccessoriesProductChildRequestFromJSON;
18
+ exports.AttachAccessoriesProductChildRequestFromJSONTyped = AttachAccessoriesProductChildRequestFromJSONTyped;
19
+ exports.AttachAccessoriesProductChildRequestToJSON = AttachAccessoriesProductChildRequestToJSON;
20
+ exports.AttachAccessoriesProductChildRequestToJSONTyped = AttachAccessoriesProductChildRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AttachAccessoriesProductChildRequest interface.
23
+ */
24
+ function instanceOfAttachAccessoriesProductChildRequest(value) {
25
+ if (!('productChildIds' in value) || value['productChildIds'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function AttachAccessoriesProductChildRequestFromJSON(json) {
30
+ return AttachAccessoriesProductChildRequestFromJSONTyped(json, false);
31
+ }
32
+ function AttachAccessoriesProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'productChildIds': json['product_child_ids'],
38
+ };
39
+ }
40
+ function AttachAccessoriesProductChildRequestToJSON(json) {
41
+ return AttachAccessoriesProductChildRequestToJSONTyped(json, false);
42
+ }
43
+ function AttachAccessoriesProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'product_child_ids': value['productChildIds'],
50
+ };
51
+ }
@@ -63,7 +63,7 @@ export interface ExternalApiLogResource {
63
63
  * @type {string}
64
64
  * @memberof ExternalApiLogResource
65
65
  */
66
- requestPayload?: string | null;
66
+ requestPayload: string;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -37,6 +37,8 @@ function instanceOfExternalApiLogResource(value) {
37
37
  return false;
38
38
  if (!('responseCode' in value) || value['responseCode'] === undefined)
39
39
  return false;
40
+ if (!('requestPayload' in value) || value['requestPayload'] === undefined)
41
+ return false;
40
42
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
41
43
  return false;
42
44
  if (!('site' in value) || value['site'] === undefined)
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
58
60
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
59
61
  'endpoint': json['endpoint'],
60
62
  'responseCode': json['responseCode'],
61
- 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
63
+ 'requestPayload': json['requestPayload'],
62
64
  'responsePayload': json['responsePayload'],
63
65
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
64
66
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { SiteLiteResource } from './SiteLiteResource';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -27,6 +28,12 @@ export interface OverlayTemplateListResource {
27
28
  * @memberof OverlayTemplateListResource
28
29
  */
29
30
  name: string;
31
+ /**
32
+ *
33
+ * @type {Array<SiteLiteResource>}
34
+ * @memberof OverlayTemplateListResource
35
+ */
36
+ sites: Array<SiteLiteResource> | null;
30
37
  }
31
38
  /**
32
39
  * Check if a given object implements the OverlayTemplateListResource interface.
@@ -18,6 +18,7 @@ exports.OverlayTemplateListResourceFromJSON = OverlayTemplateListResourceFromJSO
18
18
  exports.OverlayTemplateListResourceFromJSONTyped = OverlayTemplateListResourceFromJSONTyped;
19
19
  exports.OverlayTemplateListResourceToJSON = OverlayTemplateListResourceToJSON;
20
20
  exports.OverlayTemplateListResourceToJSONTyped = OverlayTemplateListResourceToJSONTyped;
21
+ var SiteLiteResource_1 = require("./SiteLiteResource");
21
22
  /**
22
23
  * Check if a given object implements the OverlayTemplateListResource interface.
23
24
  */
@@ -26,6 +27,8 @@ function instanceOfOverlayTemplateListResource(value) {
26
27
  return false;
27
28
  if (!('name' in value) || value['name'] === undefined)
28
29
  return false;
30
+ if (!('sites' in value) || value['sites'] === undefined)
31
+ return false;
29
32
  return true;
30
33
  }
31
34
  function OverlayTemplateListResourceFromJSON(json) {
@@ -38,6 +41,7 @@ function OverlayTemplateListResourceFromJSONTyped(json, ignoreDiscriminator) {
38
41
  return {
39
42
  'id': json['id'],
40
43
  'name': json['name'],
44
+ 'sites': (json['sites'] == null ? null : json['sites'].map(SiteLiteResource_1.SiteLiteResourceFromJSON)),
41
45
  };
42
46
  }
43
47
  function OverlayTemplateListResourceToJSON(json) {
@@ -51,5 +55,6 @@ function OverlayTemplateListResourceToJSONTyped(value, ignoreDiscriminator) {
51
55
  return {
52
56
  'id': value['id'],
53
57
  'name': value['name'],
58
+ 'sites': (value['sites'] == null ? null : value['sites'].map(SiteLiteResource_1.SiteLiteResourceToJSON)),
54
59
  };
55
60
  }
@@ -34,6 +34,18 @@ export interface ProductChildListResource {
34
34
  * @memberof ProductChildListResource
35
35
  */
36
36
  name: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof ProductChildListResource
41
+ */
42
+ model: string;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof ProductChildListResource
47
+ */
48
+ stock: number;
37
49
  /**
38
50
  *
39
51
  * @type {AssetLiteResource}
@@ -29,6 +29,10 @@ function instanceOfProductChildListResource(value) {
29
29
  return false;
30
30
  if (!('name' in value) || value['name'] === undefined)
31
31
  return false;
32
+ if (!('model' in value) || value['model'] === undefined)
33
+ return false;
34
+ if (!('stock' in value) || value['stock'] === undefined)
35
+ return false;
32
36
  if (!('thumbnail' in value) || value['thumbnail'] === undefined)
33
37
  return false;
34
38
  return true;
@@ -44,6 +48,8 @@ function ProductChildListResourceFromJSONTyped(json, ignoreDiscriminator) {
44
48
  'id': json['id'],
45
49
  'sku': json['sku'],
46
50
  'name': json['name'],
51
+ 'model': json['model'],
52
+ 'stock': json['stock'],
47
53
  'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
48
54
  };
49
55
  }
@@ -59,6 +65,8 @@ function ProductChildListResourceToJSONTyped(value, ignoreDiscriminator) {
59
65
  'id': value['id'],
60
66
  'sku': value['sku'],
61
67
  'name': value['name'],
68
+ 'model': value['model'],
69
+ 'stock': value['stock'],
62
70
  'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
63
71
  };
64
72
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { SiteLiteResource } from './SiteLiteResource';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -39,6 +40,12 @@ export interface SiteNotificationListResource {
39
40
  * @memberof SiteNotificationListResource
40
41
  */
41
42
  isActive: boolean;
43
+ /**
44
+ *
45
+ * @type {SiteLiteResource}
46
+ * @memberof SiteNotificationListResource
47
+ */
48
+ sites: SiteLiteResource | null;
42
49
  }
43
50
  /**
44
51
  * Check if a given object implements the SiteNotificationListResource interface.
@@ -18,6 +18,7 @@ exports.SiteNotificationListResourceFromJSON = SiteNotificationListResourceFromJ
18
18
  exports.SiteNotificationListResourceFromJSONTyped = SiteNotificationListResourceFromJSONTyped;
19
19
  exports.SiteNotificationListResourceToJSON = SiteNotificationListResourceToJSON;
20
20
  exports.SiteNotificationListResourceToJSONTyped = SiteNotificationListResourceToJSONTyped;
21
+ var SiteLiteResource_1 = require("./SiteLiteResource");
21
22
  /**
22
23
  * Check if a given object implements the SiteNotificationListResource interface.
23
24
  */
@@ -26,6 +27,8 @@ function instanceOfSiteNotificationListResource(value) {
26
27
  return false;
27
28
  if (!('isActive' in value) || value['isActive'] === undefined)
28
29
  return false;
30
+ if (!('sites' in value) || value['sites'] === undefined)
31
+ return false;
29
32
  return true;
30
33
  }
31
34
  function SiteNotificationListResourceFromJSON(json) {
@@ -40,6 +43,7 @@ function SiteNotificationListResourceFromJSONTyped(json, ignoreDiscriminator) {
40
43
  'heading': json['heading'] == null ? undefined : json['heading'],
41
44
  'type': json['type'] == null ? undefined : json['type'],
42
45
  'isActive': json['isActive'],
46
+ 'sites': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['sites']),
43
47
  };
44
48
  }
45
49
  function SiteNotificationListResourceToJSON(json) {
@@ -55,5 +59,6 @@ function SiteNotificationListResourceToJSONTyped(value, ignoreDiscriminator) {
55
59
  'heading': value['heading'],
56
60
  'type': value['type'],
57
61
  'isActive': value['isActive'],
62
+ 'sites': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['sites']),
58
63
  };
59
64
  }
@@ -4,6 +4,7 @@ export * from './AssetLiteResource';
4
4
  export * from './AssetLiteResourceArrayResponse';
5
5
  export * from './AssetResource';
6
6
  export * from './AssetResourceArrayResponse';
7
+ export * from './AttachAccessoriesProductChildRequest';
7
8
  export * from './AttributeFieldType';
8
9
  export * from './AttributeListResource';
9
10
  export * from './AttributeListResourceArrayResponse';
@@ -43,7 +44,6 @@ export * from './IndexSupplierRequest';
43
44
  export * from './IndexTagRequest';
44
45
  export * from './LinkAssetsOverlayTemplateRequest';
45
46
  export * from './LinkAttributeProductTypeRequest';
46
- export * from './LinkProductChildrenTagRequest';
47
47
  export * from './LinkProductTypeAttributeRequest';
48
48
  export * from './ModelAttributeResource';
49
49
  export * from './ModelAttributeResourceArrayResponse';
@@ -22,6 +22,7 @@ __exportStar(require("./AssetLiteResource"), exports);
22
22
  __exportStar(require("./AssetLiteResourceArrayResponse"), exports);
23
23
  __exportStar(require("./AssetResource"), exports);
24
24
  __exportStar(require("./AssetResourceArrayResponse"), exports);
25
+ __exportStar(require("./AttachAccessoriesProductChildRequest"), exports);
25
26
  __exportStar(require("./AttributeFieldType"), exports);
26
27
  __exportStar(require("./AttributeListResource"), exports);
27
28
  __exportStar(require("./AttributeListResourceArrayResponse"), exports);
@@ -61,7 +62,6 @@ __exportStar(require("./IndexSupplierRequest"), exports);
61
62
  __exportStar(require("./IndexTagRequest"), exports);
62
63
  __exportStar(require("./LinkAssetsOverlayTemplateRequest"), exports);
63
64
  __exportStar(require("./LinkAttributeProductTypeRequest"), exports);
64
- __exportStar(require("./LinkProductChildrenTagRequest"), exports);
65
65
  __exportStar(require("./LinkProductTypeAttributeRequest"), exports);
66
66
  __exportStar(require("./ModelAttributeResource"), exports);
67
67
  __exportStar(require("./ModelAttributeResourceArrayResponse"), exports);
@@ -9,6 +9,7 @@ Name | Type
9
9
  `id` | number
10
10
  `filePath` | string
11
11
  `fileName` | string
12
+ `altText` | string
12
13
 
13
14
  ## Example
14
15
 
@@ -20,6 +21,7 @@ const example = {
20
21
  "id": null,
21
22
  "filePath": null,
22
23
  "fileName": null,
24
+ "altText": null,
23
25
  } satisfies AssetLiteResource
24
26
 
25
27
  console.log(example)
@@ -1,5 +1,5 @@
1
1
 
2
- # LinkProductChildrenTagRequest
2
+ # AttachAccessoriesProductChildRequest
3
3
 
4
4
 
5
5
  ## Properties
@@ -11,12 +11,12 @@ Name | Type
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import type { LinkProductChildrenTagRequest } from '@digital8/lighting-illusions-ts-sdk'
14
+ import type { AttachAccessoriesProductChildRequest } from '@digital8/lighting-illusions-ts-sdk'
15
15
 
16
16
  // TODO: Update the object below with actual values
17
17
  const example = {
18
18
  "productChildIds": null,
19
- } satisfies LinkProductChildrenTagRequest
19
+ } satisfies AttachAccessoriesProductChildRequest
20
20
 
21
21
  console.log(example)
22
22
 
@@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
25
25
  console.log(exampleJSON)
26
26
 
27
27
  // Parse the JSON string back to an object
28
- const exampleParsed = JSON.parse(exampleJSON) as LinkProductChildrenTagRequest
28
+ const exampleParsed = JSON.parse(exampleJSON) as AttachAccessoriesProductChildRequest
29
29
  console.log(exampleParsed)
30
30
  ```
31
31
 
@@ -8,6 +8,7 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `id` | number
10
10
  `name` | string
11
+ `sites` | [Array&lt;SiteLiteResource&gt;](SiteLiteResource.md)
11
12
 
12
13
  ## Example
13
14
 
@@ -18,6 +19,7 @@ import type { OverlayTemplateListResource } from '@digital8/lighting-illusions-t
18
19
  const example = {
19
20
  "id": null,
20
21
  "name": null,
22
+ "sites": null,
21
23
  } satisfies OverlayTemplateListResource
22
24
 
23
25
  console.log(example)