@digital8/lighting-illusions-ts-sdk 0.0.2609 → 0.0.2611

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.2609
1
+ ## @digital8/lighting-illusions-ts-sdk@0.0.2611
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @digital8/lighting-illusions-ts-sdk@0.0.2609 --save
39
+ npm install @digital8/lighting-illusions-ts-sdk@0.0.2611 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -32,7 +32,7 @@ export interface AddressFrontendResource {
32
32
  * @type {string}
33
33
  * @memberof AddressFrontendResource
34
34
  */
35
- addresseeName?: string | null;
35
+ addresseeName: string;
36
36
  /**
37
37
  *
38
38
  * @type {string}
@@ -22,6 +22,8 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
22
22
  * Check if a given object implements the AddressFrontendResource interface.
23
23
  */
24
24
  function instanceOfAddressFrontendResource(value) {
25
+ if (!('addresseeName' in value) || value['addresseeName'] === undefined)
26
+ return false;
25
27
  if (!('line1' in value) || value['line1'] === undefined)
26
28
  return false;
27
29
  if (!('postcode' in value) || value['postcode'] === undefined)
@@ -46,7 +48,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
46
48
  return {
47
49
  'id': json['id'] == null ? undefined : json['id'],
48
50
  'type': json['type'] == null ? undefined : json['type'],
49
- 'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
51
+ 'addresseeName': json['addresseeName'],
50
52
  'company': json['company'] == null ? undefined : json['company'],
51
53
  'line1': json['line1'],
52
54
  'line2': json['line2'] == null ? undefined : json['line2'],
@@ -38,7 +38,7 @@ export interface AddressResource {
38
38
  * @type {string}
39
39
  * @memberof AddressResource
40
40
  */
41
- addresseeName?: string | null;
41
+ addresseeName: string;
42
42
  /**
43
43
  *
44
44
  * @type {string}
@@ -22,6 +22,8 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
22
22
  * Check if a given object implements the AddressResource interface.
23
23
  */
24
24
  function instanceOfAddressResource(value) {
25
+ if (!('addresseeName' in value) || value['addresseeName'] === undefined)
26
+ return false;
25
27
  if (!('line1' in value) || value['line1'] === undefined)
26
28
  return false;
27
29
  if (!('line2' in value) || value['line2'] === undefined)
@@ -49,7 +51,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
49
51
  'id': json['id'] == null ? undefined : json['id'],
50
52
  'type': json['type'] == null ? undefined : json['type'],
51
53
  'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
52
- 'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
54
+ 'addresseeName': json['addresseeName'],
53
55
  'company': json['company'] == null ? undefined : json['company'],
54
56
  'line1': json['line1'],
55
57
  'line2': json['line2'],
@@ -41,10 +41,10 @@ export interface ExternalApiLogListResource {
41
41
  statusCode?: string | null;
42
42
  /**
43
43
  *
44
- * @type {Date}
44
+ * @type {string}
45
45
  * @memberof ExternalApiLogListResource
46
46
  */
47
- createdAt?: Date | null;
47
+ createdAt?: string | null;
48
48
  }
49
49
  /**
50
50
  * Check if a given object implements the ExternalApiLogListResource interface.
@@ -42,14 +42,13 @@ function ExternalApiLogListResourceFromJSONTyped(json, ignoreDiscriminator) {
42
42
  'provider': json['provider'],
43
43
  'endpoint': json['endpoint'],
44
44
  'statusCode': json['statusCode'] == null ? undefined : json['statusCode'],
45
- 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
45
+ 'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
46
46
  };
47
47
  }
48
48
  function ExternalApiLogListResourceToJSON(json) {
49
49
  return ExternalApiLogListResourceToJSONTyped(json, false);
50
50
  }
51
51
  function ExternalApiLogListResourceToJSONTyped(value, ignoreDiscriminator) {
52
- var _a;
53
52
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
53
  if (value == null) {
55
54
  return value;
@@ -59,6 +58,6 @@ function ExternalApiLogListResourceToJSONTyped(value, ignoreDiscriminator) {
59
58
  'provider': value['provider'],
60
59
  'endpoint': value['endpoint'],
61
60
  'statusCode': value['statusCode'],
62
- 'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
61
+ 'createdAt': value['createdAt'],
63
62
  };
64
63
  }
@@ -58,12 +58,6 @@ export interface ExternalApiLogResource {
58
58
  * @memberof ExternalApiLogResource
59
59
  */
60
60
  responseCode: number;
61
- /**
62
- *
63
- * @type {boolean}
64
- * @memberof ExternalApiLogResource
65
- */
66
- isSuccess: boolean;
67
61
  /**
68
62
  *
69
63
  * @type {string}
@@ -78,10 +72,10 @@ export interface ExternalApiLogResource {
78
72
  responsePayload: string;
79
73
  /**
80
74
  *
81
- * @type {Date}
75
+ * @type {string}
82
76
  * @memberof ExternalApiLogResource
83
77
  */
84
- createdAt?: Date | null;
78
+ createdAt?: string | null;
85
79
  /**
86
80
  *
87
81
  * @type {SiteLiteResource}
@@ -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 (!('isSuccess' in value) || value['isSuccess'] === undefined)
41
- return false;
42
40
  if (!('requestPayload' in value) || value['requestPayload'] === undefined)
43
41
  return false;
44
42
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
@@ -62,10 +60,9 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
62
60
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
63
61
  'endpoint': json['endpoint'],
64
62
  'responseCode': json['responseCode'],
65
- 'isSuccess': json['isSuccess'],
66
63
  'requestPayload': json['requestPayload'],
67
64
  'responsePayload': json['responsePayload'],
68
- 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
65
+ 'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
69
66
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
70
67
  };
71
68
  }
@@ -73,7 +70,6 @@ function ExternalApiLogResourceToJSON(json) {
73
70
  return ExternalApiLogResourceToJSONTyped(json, false);
74
71
  }
75
72
  function ExternalApiLogResourceToJSONTyped(value, ignoreDiscriminator) {
76
- var _a;
77
73
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
78
74
  if (value == null) {
79
75
  return value;
@@ -86,10 +82,9 @@ function ExternalApiLogResourceToJSONTyped(value, ignoreDiscriminator) {
86
82
  'exteranlApiLoggableId': value['exteranlApiLoggableId'],
87
83
  'endpoint': value['endpoint'],
88
84
  'responseCode': value['responseCode'],
89
- 'isSuccess': value['isSuccess'],
90
85
  'requestPayload': value['requestPayload'],
91
86
  'responsePayload': value['responsePayload'],
92
- 'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
87
+ 'createdAt': value['createdAt'],
93
88
  'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
94
89
  };
95
90
  }
@@ -139,7 +139,6 @@ export declare const SearchExternalApiLogsRequestSortByEnum: {
139
139
  readonly HttpMethod: "http_method";
140
140
  readonly Endpoint: "endpoint";
141
141
  readonly ResponseCode: "response_code";
142
- readonly IsSuccess: "is_success";
143
142
  readonly CreatedAt: "created_at";
144
143
  readonly UpdatedAt: "updated_at";
145
144
  };
@@ -28,7 +28,6 @@ exports.SearchExternalApiLogsRequestSortByEnum = {
28
28
  HttpMethod: 'http_method',
29
29
  Endpoint: 'endpoint',
30
30
  ResponseCode: 'response_code',
31
- IsSuccess: 'is_success',
32
31
  CreatedAt: 'created_at',
33
32
  UpdatedAt: 'updated_at'
34
33
  };
@@ -74,7 +74,7 @@ export interface StoreFrontendResource {
74
74
  * @type {string}
75
75
  * @memberof StoreFrontendResource
76
76
  */
77
- tagLine: string;
77
+ tagLine?: string | null;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -34,8 +34,6 @@ function instanceOfStoreFrontendResource(value) {
34
34
  return false;
35
35
  if (!('longitude' in value) || value['longitude'] === undefined)
36
36
  return false;
37
- if (!('tagLine' in value) || value['tagLine'] === undefined)
38
- return false;
39
37
  if (!('specialDates' in value) || value['specialDates'] === undefined)
40
38
  return false;
41
39
  if (!('suppliers' in value) || value['suppliers'] === undefined)
@@ -59,7 +57,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
59
57
  'address': json['address'] == null ? undefined : json['address'],
60
58
  'latitude': json['latitude'],
61
59
  'longitude': json['longitude'],
62
- 'tagLine': json['tagLine'],
60
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
63
61
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
64
62
  'specialDates': json['specialDates'],
65
63
  'suppliers': json['suppliers'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.2609",
3
+ "version": "0.0.2611",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -36,7 +36,7 @@ export interface AddressFrontendResource {
36
36
  * @type {string}
37
37
  * @memberof AddressFrontendResource
38
38
  */
39
- addresseeName?: string | null;
39
+ addresseeName: string;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -91,6 +91,7 @@ export interface AddressFrontendResource {
91
91
  * Check if a given object implements the AddressFrontendResource interface.
92
92
  */
93
93
  export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
94
+ if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
94
95
  if (!('line1' in value) || value['line1'] === undefined) return false;
95
96
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
96
97
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
@@ -112,7 +113,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
112
113
 
113
114
  'id': json['id'] == null ? undefined : json['id'],
114
115
  'type': json['type'] == null ? undefined : json['type'],
115
- 'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
116
+ 'addresseeName': json['addresseeName'],
116
117
  'company': json['company'] == null ? undefined : json['company'],
117
118
  'line1': json['line1'],
118
119
  'line2': json['line2'] == null ? undefined : json['line2'],
@@ -42,7 +42,7 @@ export interface AddressResource {
42
42
  * @type {string}
43
43
  * @memberof AddressResource
44
44
  */
45
- addresseeName?: string | null;
45
+ addresseeName: string;
46
46
  /**
47
47
  *
48
48
  * @type {string}
@@ -97,6 +97,7 @@ export interface AddressResource {
97
97
  * Check if a given object implements the AddressResource interface.
98
98
  */
99
99
  export function instanceOfAddressResource(value: object): value is AddressResource {
100
+ if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
100
101
  if (!('line1' in value) || value['line1'] === undefined) return false;
101
102
  if (!('line2' in value) || value['line2'] === undefined) return false;
102
103
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
@@ -120,7 +121,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
120
121
  'id': json['id'] == null ? undefined : json['id'],
121
122
  'type': json['type'] == null ? undefined : json['type'],
122
123
  'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
123
- 'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
124
+ 'addresseeName': json['addresseeName'],
124
125
  'company': json['company'] == null ? undefined : json['company'],
125
126
  'line1': json['line1'],
126
127
  'line2': json['line2'],
@@ -45,10 +45,10 @@ export interface ExternalApiLogListResource {
45
45
  statusCode?: string | null;
46
46
  /**
47
47
  *
48
- * @type {Date}
48
+ * @type {string}
49
49
  * @memberof ExternalApiLogListResource
50
50
  */
51
- createdAt?: Date | null;
51
+ createdAt?: string | null;
52
52
  }
53
53
 
54
54
  /**
@@ -75,7 +75,7 @@ export function ExternalApiLogListResourceFromJSONTyped(json: any, ignoreDiscrim
75
75
  'provider': json['provider'],
76
76
  'endpoint': json['endpoint'],
77
77
  'statusCode': json['statusCode'] == null ? undefined : json['statusCode'],
78
- 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
78
+ 'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
79
79
  };
80
80
  }
81
81
 
@@ -94,7 +94,7 @@ export function ExternalApiLogListResourceToJSONTyped(value?: ExternalApiLogList
94
94
  'provider': value['provider'],
95
95
  'endpoint': value['endpoint'],
96
96
  'statusCode': value['statusCode'],
97
- 'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
97
+ 'createdAt': value['createdAt'],
98
98
  };
99
99
  }
100
100
 
@@ -69,12 +69,6 @@ export interface ExternalApiLogResource {
69
69
  * @memberof ExternalApiLogResource
70
70
  */
71
71
  responseCode: number;
72
- /**
73
- *
74
- * @type {boolean}
75
- * @memberof ExternalApiLogResource
76
- */
77
- isSuccess: boolean;
78
72
  /**
79
73
  *
80
74
  * @type {string}
@@ -89,10 +83,10 @@ export interface ExternalApiLogResource {
89
83
  responsePayload: string;
90
84
  /**
91
85
  *
92
- * @type {Date}
86
+ * @type {string}
93
87
  * @memberof ExternalApiLogResource
94
88
  */
95
- createdAt?: Date | null;
89
+ createdAt?: string | null;
96
90
  /**
97
91
  *
98
92
  * @type {SiteLiteResource}
@@ -112,7 +106,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
112
106
  if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
113
107
  if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
114
108
  if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
115
- if (!('isSuccess' in value) || value['isSuccess'] === undefined) return false;
116
109
  if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
117
110
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
118
111
  if (!('site' in value) || value['site'] === undefined) return false;
@@ -136,10 +129,9 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
136
129
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
137
130
  'endpoint': json['endpoint'],
138
131
  'responseCode': json['responseCode'],
139
- 'isSuccess': json['isSuccess'],
140
132
  'requestPayload': json['requestPayload'],
141
133
  'responsePayload': json['responsePayload'],
142
- 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
134
+ 'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
143
135
  'site': SiteLiteResourceFromJSON(json['site']),
144
136
  };
145
137
  }
@@ -162,10 +154,9 @@ export function ExternalApiLogResourceToJSONTyped(value?: ExternalApiLogResource
162
154
  'exteranlApiLoggableId': value['exteranlApiLoggableId'],
163
155
  'endpoint': value['endpoint'],
164
156
  'responseCode': value['responseCode'],
165
- 'isSuccess': value['isSuccess'],
166
157
  'requestPayload': value['requestPayload'],
167
158
  'responsePayload': value['responsePayload'],
168
- 'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
159
+ 'createdAt': value['createdAt'],
169
160
  'site': SiteLiteResourceToJSON(value['site']),
170
161
  };
171
162
  }
@@ -145,7 +145,6 @@ export const SearchExternalApiLogsRequestSortByEnum = {
145
145
  HttpMethod: 'http_method',
146
146
  Endpoint: 'endpoint',
147
147
  ResponseCode: 'response_code',
148
- IsSuccess: 'is_success',
149
148
  CreatedAt: 'created_at',
150
149
  UpdatedAt: 'updated_at'
151
150
  } as const;
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
78
78
  * @type {string}
79
79
  * @memberof StoreFrontendResource
80
80
  */
81
- tagLine: string;
81
+ tagLine?: string | null;
82
82
  /**
83
83
  *
84
84
  * @type {string}
@@ -109,7 +109,6 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
109
109
  if (!('phone' in value) || value['phone'] === undefined) return false;
110
110
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
111
111
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
112
- if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
113
112
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
114
113
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
115
114
  return true;
@@ -134,7 +133,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
134
133
  'address': json['address'] == null ? undefined : json['address'],
135
134
  'latitude': json['latitude'],
136
135
  'longitude': json['longitude'],
137
- 'tagLine': json['tagLine'],
136
+ 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
138
137
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
139
138
  'specialDates': json['specialDates'],
140
139
  'suppliers': json['suppliers'],