@digital8/lighting-illusions-ts-sdk 0.0.1363 → 0.0.1364
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/.openapi-generator/FILES +4 -0
- package/README.md +5 -2
- package/dist/apis/StoreApi.d.ts +17 -0
- package/dist/apis/StoreApi.js +65 -0
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +4 -4
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/StoreResource.d.ts +6 -4
- package/dist/models/StoreResource.js +6 -4
- package/dist/models/StoreStoreRequest.d.ts +3 -86
- package/dist/models/StoreStoreRequest.js +3 -42
- package/dist/models/StoreStoreRequestAddress.d.ts +68 -0
- package/dist/models/StoreStoreRequestAddress.js +73 -0
- package/dist/models/UpdateStoreRequest.d.ts +8 -78
- package/dist/models/UpdateStoreRequest.js +8 -42
- package/dist/models/UpdateStoreRequestSpecialDatesInner.d.ts +56 -0
- package/dist/models/UpdateStoreRequestSpecialDatesInner.js +57 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/docs/StoreApi.md +72 -0
- package/docs/StoreResource.md +2 -2
- package/docs/StoreStoreRequest.md +1 -29
- package/docs/StoreStoreRequestAddress.md +46 -0
- package/docs/UpdateStoreRequest.md +5 -29
- package/docs/UpdateStoreRequestSpecialDatesInner.md +42 -0
- package/package.json +1 -1
- package/src/apis/StoreApi.ts +62 -0
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +5 -5
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/StoreResource.ts +22 -8
- package/src/models/StoreStoreRequest.ts +11 -122
- package/src/models/StoreStoreRequestAddress.ts +119 -0
- package/src/models/UpdateStoreRequest.ts +27 -114
- package/src/models/UpdateStoreRequestSpecialDatesInner.ts +97 -0
- package/src/models/index.ts +2 -0
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { UpdateStoreRequestSpecialDatesInner } from './UpdateStoreRequestSpecialDatesInner';
|
|
13
|
+
import type { StoreStoreRequestAddress } from './StoreStoreRequestAddress';
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
@@ -65,94 +67,22 @@ export interface UpdateStoreRequest {
|
|
|
65
67
|
openingHours?: Array<string>;
|
|
66
68
|
/**
|
|
67
69
|
*
|
|
68
|
-
* @type {
|
|
69
|
-
* @memberof UpdateStoreRequest
|
|
70
|
-
*/
|
|
71
|
-
openingHours0?: string;
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {string}
|
|
75
|
-
* @memberof UpdateStoreRequest
|
|
76
|
-
*/
|
|
77
|
-
openingHours1?: string;
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @type {string}
|
|
81
|
-
* @memberof UpdateStoreRequest
|
|
82
|
-
*/
|
|
83
|
-
openingHours2?: string;
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @type {string}
|
|
70
|
+
* @type {Array<number>}
|
|
87
71
|
* @memberof UpdateStoreRequest
|
|
88
72
|
*/
|
|
89
|
-
|
|
73
|
+
supplierIds?: Array<number>;
|
|
90
74
|
/**
|
|
91
75
|
*
|
|
92
|
-
* @type {
|
|
93
|
-
* @memberof UpdateStoreRequest
|
|
94
|
-
*/
|
|
95
|
-
openingHours4?: string;
|
|
96
|
-
/**
|
|
97
|
-
*
|
|
98
|
-
* @type {string}
|
|
99
|
-
* @memberof UpdateStoreRequest
|
|
100
|
-
*/
|
|
101
|
-
openingHours5?: string;
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
* @type {string}
|
|
105
|
-
* @memberof UpdateStoreRequest
|
|
106
|
-
*/
|
|
107
|
-
openingHours6?: string;
|
|
108
|
-
/**
|
|
109
|
-
*
|
|
110
|
-
* @type {Array<string>}
|
|
76
|
+
* @type {Array<UpdateStoreRequestSpecialDatesInner>}
|
|
111
77
|
* @memberof UpdateStoreRequest
|
|
112
78
|
*/
|
|
113
|
-
|
|
79
|
+
specialDates?: Array<UpdateStoreRequestSpecialDatesInner>;
|
|
114
80
|
/**
|
|
115
81
|
*
|
|
116
|
-
* @type {
|
|
117
|
-
* @memberof UpdateStoreRequest
|
|
118
|
-
*/
|
|
119
|
-
addressCompany: string;
|
|
120
|
-
/**
|
|
121
|
-
*
|
|
122
|
-
* @type {string}
|
|
123
|
-
* @memberof UpdateStoreRequest
|
|
124
|
-
*/
|
|
125
|
-
addressLine1: string;
|
|
126
|
-
/**
|
|
127
|
-
*
|
|
128
|
-
* @type {string}
|
|
129
|
-
* @memberof UpdateStoreRequest
|
|
130
|
-
*/
|
|
131
|
-
addressLine2?: string;
|
|
132
|
-
/**
|
|
133
|
-
*
|
|
134
|
-
* @type {string}
|
|
135
|
-
* @memberof UpdateStoreRequest
|
|
136
|
-
*/
|
|
137
|
-
addressPostcode: string;
|
|
138
|
-
/**
|
|
139
|
-
*
|
|
140
|
-
* @type {string}
|
|
141
|
-
* @memberof UpdateStoreRequest
|
|
142
|
-
*/
|
|
143
|
-
addressSuburb: string;
|
|
144
|
-
/**
|
|
145
|
-
*
|
|
146
|
-
* @type {string}
|
|
147
|
-
* @memberof UpdateStoreRequest
|
|
148
|
-
*/
|
|
149
|
-
addressCountry: string;
|
|
150
|
-
/**
|
|
151
|
-
*
|
|
152
|
-
* @type {string}
|
|
82
|
+
* @type {StoreStoreRequestAddress}
|
|
153
83
|
* @memberof UpdateStoreRequest
|
|
154
84
|
*/
|
|
155
|
-
|
|
85
|
+
address: StoreStoreRequestAddress;
|
|
156
86
|
}
|
|
157
87
|
/**
|
|
158
88
|
* Check if a given object implements the UpdateStoreRequest interface.
|
|
@@ -18,6 +18,8 @@ exports.UpdateStoreRequestFromJSON = UpdateStoreRequestFromJSON;
|
|
|
18
18
|
exports.UpdateStoreRequestFromJSONTyped = UpdateStoreRequestFromJSONTyped;
|
|
19
19
|
exports.UpdateStoreRequestToJSON = UpdateStoreRequestToJSON;
|
|
20
20
|
exports.UpdateStoreRequestToJSONTyped = UpdateStoreRequestToJSONTyped;
|
|
21
|
+
var UpdateStoreRequestSpecialDatesInner_1 = require("./UpdateStoreRequestSpecialDatesInner");
|
|
22
|
+
var StoreStoreRequestAddress_1 = require("./StoreStoreRequestAddress");
|
|
21
23
|
/**
|
|
22
24
|
* Check if a given object implements the UpdateStoreRequest interface.
|
|
23
25
|
*/
|
|
@@ -36,18 +38,6 @@ function instanceOfUpdateStoreRequest(value) {
|
|
|
36
38
|
return false;
|
|
37
39
|
if (!('address' in value) || value['address'] === undefined)
|
|
38
40
|
return false;
|
|
39
|
-
if (!('addressCompany' in value) || value['addressCompany'] === undefined)
|
|
40
|
-
return false;
|
|
41
|
-
if (!('addressLine1' in value) || value['addressLine1'] === undefined)
|
|
42
|
-
return false;
|
|
43
|
-
if (!('addressPostcode' in value) || value['addressPostcode'] === undefined)
|
|
44
|
-
return false;
|
|
45
|
-
if (!('addressSuburb' in value) || value['addressSuburb'] === undefined)
|
|
46
|
-
return false;
|
|
47
|
-
if (!('addressCountry' in value) || value['addressCountry'] === undefined)
|
|
48
|
-
return false;
|
|
49
|
-
if (!('addressState' in value) || value['addressState'] === undefined)
|
|
50
|
-
return false;
|
|
51
41
|
return true;
|
|
52
42
|
}
|
|
53
43
|
function UpdateStoreRequestFromJSON(json) {
|
|
@@ -66,21 +56,9 @@ function UpdateStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
56
|
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
67
57
|
'email': json['email'],
|
|
68
58
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
69
|
-
'
|
|
70
|
-
'
|
|
71
|
-
'
|
|
72
|
-
'openingHours3': json['opening_hours.3'] == null ? undefined : json['opening_hours.3'],
|
|
73
|
-
'openingHours4': json['opening_hours.4'] == null ? undefined : json['opening_hours.4'],
|
|
74
|
-
'openingHours5': json['opening_hours.5'] == null ? undefined : json['opening_hours.5'],
|
|
75
|
-
'openingHours6': json['opening_hours.6'] == null ? undefined : json['opening_hours.6'],
|
|
76
|
-
'address': json['address'],
|
|
77
|
-
'addressCompany': json['address.company'],
|
|
78
|
-
'addressLine1': json['address.line_1'],
|
|
79
|
-
'addressLine2': json['address.line_2'] == null ? undefined : json['address.line_2'],
|
|
80
|
-
'addressPostcode': json['address.postcode'],
|
|
81
|
-
'addressSuburb': json['address.suburb'],
|
|
82
|
-
'addressCountry': json['address.country'],
|
|
83
|
-
'addressState': json['address.state'],
|
|
59
|
+
'supplierIds': json['supplier_ids'] == null ? undefined : json['supplier_ids'],
|
|
60
|
+
'specialDates': json['special_dates'] == null ? undefined : (json['special_dates'].map(UpdateStoreRequestSpecialDatesInner_1.UpdateStoreRequestSpecialDatesInnerFromJSON)),
|
|
61
|
+
'address': (0, StoreStoreRequestAddress_1.StoreStoreRequestAddressFromJSON)(json['address']),
|
|
84
62
|
};
|
|
85
63
|
}
|
|
86
64
|
function UpdateStoreRequestToJSON(json) {
|
|
@@ -100,20 +78,8 @@ function UpdateStoreRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
100
78
|
'tag_line': value['tagLine'],
|
|
101
79
|
'email': value['email'],
|
|
102
80
|
'opening_hours': value['openingHours'],
|
|
103
|
-
'
|
|
104
|
-
'
|
|
105
|
-
'
|
|
106
|
-
'opening_hours.3': value['openingHours3'],
|
|
107
|
-
'opening_hours.4': value['openingHours4'],
|
|
108
|
-
'opening_hours.5': value['openingHours5'],
|
|
109
|
-
'opening_hours.6': value['openingHours6'],
|
|
110
|
-
'address': value['address'],
|
|
111
|
-
'address.company': value['addressCompany'],
|
|
112
|
-
'address.line_1': value['addressLine1'],
|
|
113
|
-
'address.line_2': value['addressLine2'],
|
|
114
|
-
'address.postcode': value['addressPostcode'],
|
|
115
|
-
'address.suburb': value['addressSuburb'],
|
|
116
|
-
'address.country': value['addressCountry'],
|
|
117
|
-
'address.state': value['addressState'],
|
|
81
|
+
'supplier_ids': value['supplierIds'],
|
|
82
|
+
'special_dates': value['specialDates'] == null ? undefined : (value['specialDates'].map(UpdateStoreRequestSpecialDatesInner_1.UpdateStoreRequestSpecialDatesInnerToJSON)),
|
|
83
|
+
'address': (0, StoreStoreRequestAddress_1.StoreStoreRequestAddressToJSON)(value['address']),
|
|
118
84
|
};
|
|
119
85
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
* @interface UpdateStoreRequestSpecialDatesInner
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateStoreRequestSpecialDatesInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof UpdateStoreRequestSpecialDatesInner
|
|
22
|
+
*/
|
|
23
|
+
id?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdateStoreRequestSpecialDatesInner
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateStoreRequestSpecialDatesInner
|
|
34
|
+
*/
|
|
35
|
+
hours?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof UpdateStoreRequestSpecialDatesInner
|
|
40
|
+
*/
|
|
41
|
+
displayStart?: Date;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof UpdateStoreRequestSpecialDatesInner
|
|
46
|
+
*/
|
|
47
|
+
displayEnd?: Date;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the UpdateStoreRequestSpecialDatesInner interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfUpdateStoreRequestSpecialDatesInner(value: object): value is UpdateStoreRequestSpecialDatesInner;
|
|
53
|
+
export declare function UpdateStoreRequestSpecialDatesInnerFromJSON(json: any): UpdateStoreRequestSpecialDatesInner;
|
|
54
|
+
export declare function UpdateStoreRequestSpecialDatesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateStoreRequestSpecialDatesInner;
|
|
55
|
+
export declare function UpdateStoreRequestSpecialDatesInnerToJSON(json: any): UpdateStoreRequestSpecialDatesInner;
|
|
56
|
+
export declare function UpdateStoreRequestSpecialDatesInnerToJSONTyped(value?: UpdateStoreRequestSpecialDatesInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfUpdateStoreRequestSpecialDatesInner = instanceOfUpdateStoreRequestSpecialDatesInner;
|
|
17
|
+
exports.UpdateStoreRequestSpecialDatesInnerFromJSON = UpdateStoreRequestSpecialDatesInnerFromJSON;
|
|
18
|
+
exports.UpdateStoreRequestSpecialDatesInnerFromJSONTyped = UpdateStoreRequestSpecialDatesInnerFromJSONTyped;
|
|
19
|
+
exports.UpdateStoreRequestSpecialDatesInnerToJSON = UpdateStoreRequestSpecialDatesInnerToJSON;
|
|
20
|
+
exports.UpdateStoreRequestSpecialDatesInnerToJSONTyped = UpdateStoreRequestSpecialDatesInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateStoreRequestSpecialDatesInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateStoreRequestSpecialDatesInner(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function UpdateStoreRequestSpecialDatesInnerFromJSON(json) {
|
|
28
|
+
return UpdateStoreRequestSpecialDatesInnerFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function UpdateStoreRequestSpecialDatesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
36
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
37
|
+
'hours': json['hours'] == null ? undefined : json['hours'],
|
|
38
|
+
'displayStart': json['display_start'] == null ? undefined : (new Date(json['display_start'])),
|
|
39
|
+
'displayEnd': json['display_end'] == null ? undefined : (new Date(json['display_end'])),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function UpdateStoreRequestSpecialDatesInnerToJSON(json) {
|
|
43
|
+
return UpdateStoreRequestSpecialDatesInnerToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function UpdateStoreRequestSpecialDatesInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
46
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': value['id'],
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
'hours': value['hours'],
|
|
54
|
+
'display_start': value['displayStart'] == null ? value['displayStart'] : value['displayStart'].toISOString(),
|
|
55
|
+
'display_end': value['displayEnd'] == null ? value['displayEnd'] : value['displayEnd'].toISOString(),
|
|
56
|
+
};
|
|
57
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -279,6 +279,7 @@ export * from './StoreSpecialDateFrontendResourceArrayResponse';
|
|
|
279
279
|
export * from './StoreSpecialDateResource';
|
|
280
280
|
export * from './StoreSpecialDateResourceArrayResponse';
|
|
281
281
|
export * from './StoreStoreRequest';
|
|
282
|
+
export * from './StoreStoreRequestAddress';
|
|
282
283
|
export * from './StoreStoreRequestSpecialDatesInner';
|
|
283
284
|
export * from './StoreStoreSpecialDateRequest';
|
|
284
285
|
export * from './StoreSupplierRequest';
|
|
@@ -319,6 +320,7 @@ export * from './UpdateProductTypeRequestPerformanceValuesInner';
|
|
|
319
320
|
export * from './UpdateSiteNotificationRequest';
|
|
320
321
|
export * from './UpdateSiteRequest';
|
|
321
322
|
export * from './UpdateStoreRequest';
|
|
323
|
+
export * from './UpdateStoreRequestSpecialDatesInner';
|
|
322
324
|
export * from './UpdateSupplierRequest';
|
|
323
325
|
export * from './UpdateTagRequest';
|
|
324
326
|
export * from './WishlistCheckResource';
|
package/dist/models/index.js
CHANGED
|
@@ -297,6 +297,7 @@ __exportStar(require("./StoreSpecialDateFrontendResourceArrayResponse"), exports
|
|
|
297
297
|
__exportStar(require("./StoreSpecialDateResource"), exports);
|
|
298
298
|
__exportStar(require("./StoreSpecialDateResourceArrayResponse"), exports);
|
|
299
299
|
__exportStar(require("./StoreStoreRequest"), exports);
|
|
300
|
+
__exportStar(require("./StoreStoreRequestAddress"), exports);
|
|
300
301
|
__exportStar(require("./StoreStoreRequestSpecialDatesInner"), exports);
|
|
301
302
|
__exportStar(require("./StoreStoreSpecialDateRequest"), exports);
|
|
302
303
|
__exportStar(require("./StoreSupplierRequest"), exports);
|
|
@@ -337,6 +338,7 @@ __exportStar(require("./UpdateProductTypeRequestPerformanceValuesInner"), export
|
|
|
337
338
|
__exportStar(require("./UpdateSiteNotificationRequest"), exports);
|
|
338
339
|
__exportStar(require("./UpdateSiteRequest"), exports);
|
|
339
340
|
__exportStar(require("./UpdateStoreRequest"), exports);
|
|
341
|
+
__exportStar(require("./UpdateStoreRequestSpecialDatesInner"), exports);
|
|
340
342
|
__exportStar(require("./UpdateSupplierRequest"), exports);
|
|
341
343
|
__exportStar(require("./UpdateTagRequest"), exports);
|
|
342
344
|
__exportStar(require("./WishlistCheckResource"), exports);
|
package/docs/StoreApi.md
CHANGED
|
@@ -14,6 +14,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
14
14
|
| [**storeStore**](StoreApi.md#storestoreoperation) | **POST** /admin-api/store/create | Auto-generated: storeStore |
|
|
15
15
|
| [**storeStoreSpecialDate**](StoreApi.md#storestorespecialdateoperation) | **POST** /admin-api/store/{store}/special-dates | Auto-generated: storeStoreSpecialDate |
|
|
16
16
|
| [**updateStore**](StoreApi.md#updatestoreoperation) | **PUT** /admin-api/store/{store}/update | Auto-generated: updateStore |
|
|
17
|
+
| [**updateStoreSpecialDate**](StoreApi.md#updatestorespecialdate) | **PUT** /admin-api/store/{store}/special-dates/{storeSpecialDate} | Auto-generated: updateStoreSpecialDate |
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
|
|
@@ -681,3 +682,74 @@ No authorization required
|
|
|
681
682
|
|
|
682
683
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
683
684
|
|
|
685
|
+
|
|
686
|
+
## updateStoreSpecialDate
|
|
687
|
+
|
|
688
|
+
> StoreSpecialDateResource updateStoreSpecialDate(store, storeSpecialDate, storeStoreSpecialDateRequest)
|
|
689
|
+
|
|
690
|
+
Auto-generated: updateStoreSpecialDate
|
|
691
|
+
|
|
692
|
+
### Example
|
|
693
|
+
|
|
694
|
+
```ts
|
|
695
|
+
import {
|
|
696
|
+
Configuration,
|
|
697
|
+
StoreApi,
|
|
698
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
699
|
+
import type { UpdateStoreSpecialDateRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
700
|
+
|
|
701
|
+
async function example() {
|
|
702
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
703
|
+
const api = new StoreApi();
|
|
704
|
+
|
|
705
|
+
const body = {
|
|
706
|
+
// number | The id of the store
|
|
707
|
+
store: 56,
|
|
708
|
+
// number | The id of the storeSpecialDate
|
|
709
|
+
storeSpecialDate: 56,
|
|
710
|
+
// StoreStoreSpecialDateRequest (optional)
|
|
711
|
+
storeStoreSpecialDateRequest: ...,
|
|
712
|
+
} satisfies UpdateStoreSpecialDateRequest;
|
|
713
|
+
|
|
714
|
+
try {
|
|
715
|
+
const data = await api.updateStoreSpecialDate(body);
|
|
716
|
+
console.log(data);
|
|
717
|
+
} catch (error) {
|
|
718
|
+
console.error(error);
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
// Run the test
|
|
723
|
+
example().catch(console.error);
|
|
724
|
+
```
|
|
725
|
+
|
|
726
|
+
### Parameters
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
| Name | Type | Description | Notes |
|
|
730
|
+
|------------- | ------------- | ------------- | -------------|
|
|
731
|
+
| **store** | `number` | The id of the store | [Defaults to `undefined`] |
|
|
732
|
+
| **storeSpecialDate** | `number` | The id of the storeSpecialDate | [Defaults to `undefined`] |
|
|
733
|
+
| **storeStoreSpecialDateRequest** | [StoreStoreSpecialDateRequest](StoreStoreSpecialDateRequest.md) | | [Optional] |
|
|
734
|
+
|
|
735
|
+
### Return type
|
|
736
|
+
|
|
737
|
+
[**StoreSpecialDateResource**](StoreSpecialDateResource.md)
|
|
738
|
+
|
|
739
|
+
### Authorization
|
|
740
|
+
|
|
741
|
+
No authorization required
|
|
742
|
+
|
|
743
|
+
### HTTP request headers
|
|
744
|
+
|
|
745
|
+
- **Content-Type**: `application/json`
|
|
746
|
+
- **Accept**: `application/json`
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
### HTTP response details
|
|
750
|
+
| Status code | Description | Response headers |
|
|
751
|
+
|-------------|-------------|------------------|
|
|
752
|
+
| **200** | Successful resource response | - |
|
|
753
|
+
|
|
754
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
755
|
+
|
package/docs/StoreResource.md
CHANGED
|
@@ -15,9 +15,9 @@ Name | Type
|
|
|
15
15
|
`tagLine` | string
|
|
16
16
|
`email` | string
|
|
17
17
|
`openingHours` | string
|
|
18
|
-
`suppliers` |
|
|
18
|
+
`suppliers` | [Array<SupplierLiteResource>](SupplierLiteResource.md)
|
|
19
19
|
`address` | [AddressResource](AddressResource.md)
|
|
20
|
-
`specialDates` |
|
|
20
|
+
`specialDates` | [Array<StoreSpecialDateResource>](StoreSpecialDateResource.md)
|
|
21
21
|
|
|
22
22
|
## Example
|
|
23
23
|
|
|
@@ -14,23 +14,9 @@ Name | Type
|
|
|
14
14
|
`tagLine` | string
|
|
15
15
|
`email` | string
|
|
16
16
|
`openingHours` | Array<string>
|
|
17
|
-
`openingHours0` | string
|
|
18
|
-
`openingHours1` | string
|
|
19
|
-
`openingHours2` | string
|
|
20
|
-
`openingHours3` | string
|
|
21
|
-
`openingHours4` | string
|
|
22
|
-
`openingHours5` | string
|
|
23
|
-
`openingHours6` | string
|
|
24
17
|
`supplierIds` | Array<number>
|
|
25
18
|
`specialDates` | [Array<StoreStoreRequestSpecialDatesInner>](StoreStoreRequestSpecialDatesInner.md)
|
|
26
|
-
`address` |
|
|
27
|
-
`addressCompany` | string
|
|
28
|
-
`addressLine1` | string
|
|
29
|
-
`addressLine2` | string
|
|
30
|
-
`addressPostcode` | string
|
|
31
|
-
`addressSuburb` | string
|
|
32
|
-
`addressCountry` | string
|
|
33
|
-
`addressState` | string
|
|
19
|
+
`address` | [StoreStoreRequestAddress](StoreStoreRequestAddress.md)
|
|
34
20
|
|
|
35
21
|
## Example
|
|
36
22
|
|
|
@@ -47,23 +33,9 @@ const example = {
|
|
|
47
33
|
"tagLine": null,
|
|
48
34
|
"email": null,
|
|
49
35
|
"openingHours": null,
|
|
50
|
-
"openingHours0": null,
|
|
51
|
-
"openingHours1": null,
|
|
52
|
-
"openingHours2": null,
|
|
53
|
-
"openingHours3": null,
|
|
54
|
-
"openingHours4": null,
|
|
55
|
-
"openingHours5": null,
|
|
56
|
-
"openingHours6": null,
|
|
57
36
|
"supplierIds": null,
|
|
58
37
|
"specialDates": null,
|
|
59
38
|
"address": null,
|
|
60
|
-
"addressCompany": null,
|
|
61
|
-
"addressLine1": null,
|
|
62
|
-
"addressLine2": null,
|
|
63
|
-
"addressPostcode": null,
|
|
64
|
-
"addressSuburb": null,
|
|
65
|
-
"addressCountry": null,
|
|
66
|
-
"addressState": null,
|
|
67
39
|
} satisfies StoreStoreRequest
|
|
68
40
|
|
|
69
41
|
console.log(example)
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
# StoreStoreRequestAddress
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`company` | string
|
|
10
|
+
`line1` | string
|
|
11
|
+
`line2` | string
|
|
12
|
+
`postcode` | string
|
|
13
|
+
`suburb` | string
|
|
14
|
+
`country` | string
|
|
15
|
+
`state` | string
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { StoreStoreRequestAddress } from '@digital8/lighting-illusions-ts-sdk'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"company": null,
|
|
25
|
+
"line1": null,
|
|
26
|
+
"line2": null,
|
|
27
|
+
"postcode": null,
|
|
28
|
+
"suburb": null,
|
|
29
|
+
"country": null,
|
|
30
|
+
"state": null,
|
|
31
|
+
} satisfies StoreStoreRequestAddress
|
|
32
|
+
|
|
33
|
+
console.log(example)
|
|
34
|
+
|
|
35
|
+
// Convert the instance to a JSON string
|
|
36
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
+
console.log(exampleJSON)
|
|
38
|
+
|
|
39
|
+
// Parse the JSON string back to an object
|
|
40
|
+
const exampleParsed = JSON.parse(exampleJSON) as StoreStoreRequestAddress
|
|
41
|
+
console.log(exampleParsed)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
+
|
|
46
|
+
|
|
@@ -14,21 +14,9 @@ Name | Type
|
|
|
14
14
|
`tagLine` | string
|
|
15
15
|
`email` | string
|
|
16
16
|
`openingHours` | Array<string>
|
|
17
|
-
`
|
|
18
|
-
`
|
|
19
|
-
`
|
|
20
|
-
`openingHours3` | string
|
|
21
|
-
`openingHours4` | string
|
|
22
|
-
`openingHours5` | string
|
|
23
|
-
`openingHours6` | string
|
|
24
|
-
`address` | Array<string>
|
|
25
|
-
`addressCompany` | string
|
|
26
|
-
`addressLine1` | string
|
|
27
|
-
`addressLine2` | string
|
|
28
|
-
`addressPostcode` | string
|
|
29
|
-
`addressSuburb` | string
|
|
30
|
-
`addressCountry` | string
|
|
31
|
-
`addressState` | string
|
|
17
|
+
`supplierIds` | Array<number>
|
|
18
|
+
`specialDates` | [Array<UpdateStoreRequestSpecialDatesInner>](UpdateStoreRequestSpecialDatesInner.md)
|
|
19
|
+
`address` | [StoreStoreRequestAddress](StoreStoreRequestAddress.md)
|
|
32
20
|
|
|
33
21
|
## Example
|
|
34
22
|
|
|
@@ -45,21 +33,9 @@ const example = {
|
|
|
45
33
|
"tagLine": null,
|
|
46
34
|
"email": null,
|
|
47
35
|
"openingHours": null,
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"openingHours2": null,
|
|
51
|
-
"openingHours3": null,
|
|
52
|
-
"openingHours4": null,
|
|
53
|
-
"openingHours5": null,
|
|
54
|
-
"openingHours6": null,
|
|
36
|
+
"supplierIds": null,
|
|
37
|
+
"specialDates": null,
|
|
55
38
|
"address": null,
|
|
56
|
-
"addressCompany": null,
|
|
57
|
-
"addressLine1": null,
|
|
58
|
-
"addressLine2": null,
|
|
59
|
-
"addressPostcode": null,
|
|
60
|
-
"addressSuburb": null,
|
|
61
|
-
"addressCountry": null,
|
|
62
|
-
"addressState": null,
|
|
63
39
|
} satisfies UpdateStoreRequest
|
|
64
40
|
|
|
65
41
|
console.log(example)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# UpdateStoreRequestSpecialDatesInner
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`name` | string
|
|
11
|
+
`hours` | string
|
|
12
|
+
`displayStart` | Date
|
|
13
|
+
`displayEnd` | Date
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { UpdateStoreRequestSpecialDatesInner } from '@digital8/lighting-illusions-ts-sdk'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"id": null,
|
|
23
|
+
"name": null,
|
|
24
|
+
"hours": null,
|
|
25
|
+
"displayStart": null,
|
|
26
|
+
"displayEnd": null,
|
|
27
|
+
} satisfies UpdateStoreRequestSpecialDatesInner
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as UpdateStoreRequestSpecialDatesInner
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|