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

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 CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.482
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.484
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -357,7 +357,7 @@ and is automatically generated by the
357
357
  [OpenAPI Generator](https://openapi-generator.tech) project:
358
358
 
359
359
  - API version: `1.0.0`
360
- - Package version: `0.0.482`
360
+ - Package version: `0.0.484`
361
361
  - Generator version: `7.17.0`
362
362
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
363
363
 
@@ -63,7 +63,7 @@ export interface ExternalApiLogResource {
63
63
  * @type {string}
64
64
  * @memberof ExternalApiLogResource
65
65
  */
66
- requestPayload: string;
66
+ requestPayload?: string | null;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -37,8 +37,6 @@ 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;
42
40
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
43
41
  return false;
44
42
  if (!('site' in value) || value['site'] === undefined)
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
60
58
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
61
59
  'endpoint': json['endpoint'],
62
60
  'responseCode': json['responseCode'],
63
- 'requestPayload': json['requestPayload'],
61
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
64
62
  'responsePayload': json['responsePayload'],
65
63
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
66
64
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
@@ -128,6 +128,8 @@ export declare const IndexProductChildRequestRelatedTypeEnum: {
128
128
  readonly OverlayTemplate: "overlayTemplate";
129
129
  readonly Supplier: "supplier";
130
130
  readonly Tag: "tag";
131
+ readonly Attribute: "attribute";
132
+ readonly AttributeValue: "attributeValue";
131
133
  };
132
134
  export type IndexProductChildRequestRelatedTypeEnum = typeof IndexProductChildRequestRelatedTypeEnum[keyof typeof IndexProductChildRequestRelatedTypeEnum];
133
135
  /**
@@ -50,7 +50,9 @@ exports.IndexProductChildRequestSortDirectionEnum = {
50
50
  exports.IndexProductChildRequestRelatedTypeEnum = {
51
51
  OverlayTemplate: 'overlayTemplate',
52
52
  Supplier: 'supplier',
53
- Tag: 'tag'
53
+ Tag: 'tag',
54
+ Attribute: 'attribute',
55
+ AttributeValue: 'attributeValue'
54
56
  };
55
57
  /**
56
58
  * Check if a given object implements the IndexProductChildRequest interface.
@@ -55,10 +55,10 @@ export interface ProductChildListResource {
55
55
  thumbnail: AssetLiteResource | null;
56
56
  /**
57
57
  *
58
- * @type {ProductChildSiteDetailLiteResource}
58
+ * @type {Array<ProductChildSiteDetailLiteResource>}
59
59
  * @memberof ProductChildListResource
60
60
  */
61
- siteDetails: ProductChildSiteDetailLiteResource | null;
61
+ siteDetails: Array<ProductChildSiteDetailLiteResource> | null;
62
62
  }
63
63
  /**
64
64
  * Check if a given object implements the ProductChildListResource interface.
@@ -54,7 +54,7 @@ function ProductChildListResourceFromJSONTyped(json, ignoreDiscriminator) {
54
54
  'model': json['model'],
55
55
  'stock': json['stock'],
56
56
  'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
57
- 'siteDetails': (0, ProductChildSiteDetailLiteResource_1.ProductChildSiteDetailLiteResourceFromJSON)(json['siteDetails']),
57
+ 'siteDetails': (json['siteDetails'] == null ? null : json['siteDetails'].map(ProductChildSiteDetailLiteResource_1.ProductChildSiteDetailLiteResourceFromJSON)),
58
58
  };
59
59
  }
60
60
  function ProductChildListResourceToJSON(json) {
@@ -72,6 +72,6 @@ function ProductChildListResourceToJSONTyped(value, ignoreDiscriminator) {
72
72
  'model': value['model'],
73
73
  'stock': value['stock'],
74
74
  'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
75
- 'siteDetails': (0, ProductChildSiteDetailLiteResource_1.ProductChildSiteDetailLiteResourceToJSON)(value['siteDetails']),
75
+ 'siteDetails': (value['siteDetails'] == null ? null : value['siteDetails'].map(ProductChildSiteDetailLiteResource_1.ProductChildSiteDetailLiteResourceToJSON)),
76
76
  };
77
77
  }
@@ -12,7 +12,7 @@ Name | Type
12
12
  `model` | string
13
13
  `stock` | number
14
14
  `thumbnail` | [AssetLiteResource](AssetLiteResource.md)
15
- `siteDetails` | [ProductChildSiteDetailLiteResource](ProductChildSiteDetailLiteResource.md)
15
+ `siteDetails` | [Array&lt;ProductChildSiteDetailLiteResource&gt;](ProductChildSiteDetailLiteResource.md)
16
16
 
17
17
  ## Example
18
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.482",
3
+ "version": "0.0.484",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
74
74
  * @type {string}
75
75
  * @memberof ExternalApiLogResource
76
76
  */
77
- requestPayload: string;
77
+ requestPayload?: string | null;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -106,7 +106,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
106
106
  if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
107
107
  if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
108
108
  if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
109
- if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
110
109
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
111
110
  if (!('site' in value) || value['site'] === undefined) return false;
112
111
  return true;
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
129
128
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
130
129
  'endpoint': json['endpoint'],
131
130
  'responseCode': json['responseCode'],
132
- 'requestPayload': json['requestPayload'],
131
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
133
132
  'responsePayload': json['responsePayload'],
134
133
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
135
134
  'site': SiteLiteResourceFromJSON(json['site']),
@@ -135,7 +135,9 @@ export type IndexProductChildRequestSortDirectionEnum = typeof IndexProductChild
135
135
  export const IndexProductChildRequestRelatedTypeEnum = {
136
136
  OverlayTemplate: 'overlayTemplate',
137
137
  Supplier: 'supplier',
138
- Tag: 'tag'
138
+ Tag: 'tag',
139
+ Attribute: 'attribute',
140
+ AttributeValue: 'attributeValue'
139
141
  } as const;
140
142
  export type IndexProductChildRequestRelatedTypeEnum = typeof IndexProductChildRequestRelatedTypeEnum[keyof typeof IndexProductChildRequestRelatedTypeEnum];
141
143
 
@@ -72,10 +72,10 @@ export interface ProductChildListResource {
72
72
  thumbnail: AssetLiteResource | null;
73
73
  /**
74
74
  *
75
- * @type {ProductChildSiteDetailLiteResource}
75
+ * @type {Array<ProductChildSiteDetailLiteResource>}
76
76
  * @memberof ProductChildListResource
77
77
  */
78
- siteDetails: ProductChildSiteDetailLiteResource | null;
78
+ siteDetails: Array<ProductChildSiteDetailLiteResource> | null;
79
79
  }
80
80
 
81
81
  /**
@@ -108,7 +108,7 @@ export function ProductChildListResourceFromJSONTyped(json: any, ignoreDiscrimin
108
108
  'model': json['model'],
109
109
  'stock': json['stock'],
110
110
  'thumbnail': AssetLiteResourceFromJSON(json['thumbnail']),
111
- 'siteDetails': ProductChildSiteDetailLiteResourceFromJSON(json['siteDetails']),
111
+ 'siteDetails': (json['siteDetails'] == null ? null : (json['siteDetails'] as Array<any>).map(ProductChildSiteDetailLiteResourceFromJSON)),
112
112
  };
113
113
  }
114
114
 
@@ -129,7 +129,7 @@ export function ProductChildListResourceToJSONTyped(value?: ProductChildListReso
129
129
  'model': value['model'],
130
130
  'stock': value['stock'],
131
131
  'thumbnail': AssetLiteResourceToJSON(value['thumbnail']),
132
- 'siteDetails': ProductChildSiteDetailLiteResourceToJSON(value['siteDetails']),
132
+ 'siteDetails': (value['siteDetails'] == null ? null : (value['siteDetails'] as Array<any>).map(ProductChildSiteDetailLiteResourceToJSON)),
133
133
  };
134
134
  }
135
135