@digital8/lighting-illusions-ts-sdk 0.0.2677 → 0.0.2678
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 +2 -0
- package/README.md +2 -2
- package/dist/apis/CustomersApi.d.ts +12 -1
- package/dist/apis/CustomersApi.js +46 -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 +6 -2
- package/dist/models/CreateMenuItemRequestMenuItemLink.d.ts +2 -1
- package/dist/models/CreateMenuItemRequestMenuItemLink.js +2 -1
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/LoginAsCustomerUrlResource.d.ts +32 -0
- package/dist/models/LoginAsCustomerUrlResource.js +51 -0
- package/dist/models/LoginAsCustomerUrlResourceArrayResponse.d.ts +33 -0
- package/dist/models/LoginAsCustomerUrlResourceArrayResponse.js +50 -0
- package/dist/models/SearchLinkablesRequest.d.ts +2 -1
- package/dist/models/SearchLinkablesRequest.js +2 -1
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +4 -4
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/CustomersApi.ts +44 -0
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +6 -4
- package/src/models/CreateMenuItemRequestMenuItemLink.ts +2 -1
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/LoginAsCustomerUrlResource.ts +66 -0
- package/src/models/LoginAsCustomerUrlResourceArrayResponse.ts +73 -0
- package/src/models/SearchLinkablesRequest.ts +2 -1
- package/src/models/StoreFrontendResource.ts +5 -5
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -295,6 +295,8 @@ src/models/LineItemListResource.ts
|
|
|
295
295
|
src/models/LineItemListResourceArrayResponse.ts
|
|
296
296
|
src/models/LinkOverlayTemplateToAssetsRequest.ts
|
|
297
297
|
src/models/LoginAdminRequest.ts
|
|
298
|
+
src/models/LoginAsCustomerUrlResource.ts
|
|
299
|
+
src/models/LoginAsCustomerUrlResourceArrayResponse.ts
|
|
298
300
|
src/models/MenuFrontendResource.ts
|
|
299
301
|
src/models/MenuFrontendResourceArrayResponse.ts
|
|
300
302
|
src/models/MenuIdRequest.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
## @digital8/lighting-illusions-ts-sdk@0.0.2678
|
|
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.
|
|
39
|
+
npm install @digital8/lighting-illusions-ts-sdk@0.0.2678 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AddressResource, CreateCustomerAddressRequest, CreateCustomerRequest, CustomerLiteResourceArrayResponse, CustomerResource, GenericResponse, PaginatedCustomerListResourceResponse, SearchAllCustomersRequest, SearchCustomersRequest, UpdateCustomerAddressRequest, UpdateCustomerRequest } from '../models/index';
|
|
13
|
+
import type { AddressResource, CreateCustomerAddressRequest, CreateCustomerRequest, CustomerLiteResourceArrayResponse, CustomerResource, GenericResponse, LoginAsCustomerUrlResource, PaginatedCustomerListResourceResponse, SearchAllCustomersRequest, SearchCustomersRequest, UpdateCustomerAddressRequest, UpdateCustomerRequest } from '../models/index';
|
|
14
14
|
export interface DestroyCustomerRequest {
|
|
15
15
|
customer: number;
|
|
16
16
|
}
|
|
@@ -24,6 +24,9 @@ export interface GetAllCustomerRequest {
|
|
|
24
24
|
export interface IndexCustomerRequest {
|
|
25
25
|
searchCustomersRequest?: SearchCustomersRequest;
|
|
26
26
|
}
|
|
27
|
+
export interface LoginAsCustomerImpersonationRequest {
|
|
28
|
+
customer: number;
|
|
29
|
+
}
|
|
27
30
|
export interface ShowCustomerRequest {
|
|
28
31
|
customer: number;
|
|
29
32
|
}
|
|
@@ -79,6 +82,14 @@ export declare class CustomersApi extends runtime.BaseAPI {
|
|
|
79
82
|
* Auto-generated: indexCustomer
|
|
80
83
|
*/
|
|
81
84
|
indexCustomer(requestParameters?: IndexCustomerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedCustomerListResourceResponse>;
|
|
85
|
+
/**
|
|
86
|
+
* Auto-generated: loginAsCustomerImpersonation
|
|
87
|
+
*/
|
|
88
|
+
loginAsCustomerImpersonationRaw(requestParameters: LoginAsCustomerImpersonationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginAsCustomerUrlResource>>;
|
|
89
|
+
/**
|
|
90
|
+
* Auto-generated: loginAsCustomerImpersonation
|
|
91
|
+
*/
|
|
92
|
+
loginAsCustomerImpersonation(requestParameters: LoginAsCustomerImpersonationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginAsCustomerUrlResource>;
|
|
82
93
|
/**
|
|
83
94
|
* Auto-generated: showCustomer
|
|
84
95
|
*/
|
|
@@ -261,6 +261,52 @@ var CustomersApi = /** @class */ (function (_super) {
|
|
|
261
261
|
});
|
|
262
262
|
});
|
|
263
263
|
};
|
|
264
|
+
/**
|
|
265
|
+
* Auto-generated: loginAsCustomerImpersonation
|
|
266
|
+
*/
|
|
267
|
+
CustomersApi.prototype.loginAsCustomerImpersonationRaw = function (requestParameters, initOverrides) {
|
|
268
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
269
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
270
|
+
return __generator(this, function (_a) {
|
|
271
|
+
switch (_a.label) {
|
|
272
|
+
case 0:
|
|
273
|
+
if (requestParameters['customer'] == null) {
|
|
274
|
+
throw new runtime.RequiredError('customer', 'Required parameter "customer" was null or undefined when calling loginAsCustomerImpersonation().');
|
|
275
|
+
}
|
|
276
|
+
queryParameters = {};
|
|
277
|
+
headerParameters = {};
|
|
278
|
+
urlPath = "/admin-api/customers/{customer}/login-as";
|
|
279
|
+
urlPath = urlPath.replace("{".concat("customer", "}"), encodeURIComponent(String(requestParameters['customer'])));
|
|
280
|
+
return [4 /*yield*/, this.request({
|
|
281
|
+
path: urlPath,
|
|
282
|
+
method: 'POST',
|
|
283
|
+
headers: headerParameters,
|
|
284
|
+
query: queryParameters,
|
|
285
|
+
}, initOverrides)];
|
|
286
|
+
case 1:
|
|
287
|
+
response = _a.sent();
|
|
288
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LoginAsCustomerUrlResourceFromJSON)(jsonValue); })];
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
});
|
|
292
|
+
};
|
|
293
|
+
/**
|
|
294
|
+
* Auto-generated: loginAsCustomerImpersonation
|
|
295
|
+
*/
|
|
296
|
+
CustomersApi.prototype.loginAsCustomerImpersonation = function (requestParameters, initOverrides) {
|
|
297
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
298
|
+
var response;
|
|
299
|
+
return __generator(this, function (_a) {
|
|
300
|
+
switch (_a.label) {
|
|
301
|
+
case 0: return [4 /*yield*/, this.loginAsCustomerImpersonationRaw(requestParameters, initOverrides)];
|
|
302
|
+
case 1:
|
|
303
|
+
response = _a.sent();
|
|
304
|
+
return [4 /*yield*/, response.value()];
|
|
305
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
});
|
|
309
|
+
};
|
|
264
310
|
/**
|
|
265
311
|
* Auto-generated: showCustomer
|
|
266
312
|
*/
|
|
@@ -24,8 +24,6 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfAddressFrontendResource(value) {
|
|
25
25
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('line2' in value) || value['line2'] === undefined)
|
|
28
|
-
return false;
|
|
29
27
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
30
28
|
return false;
|
|
31
29
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
@@ -51,7 +49,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
49
|
'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
|
|
52
50
|
'company': json['company'] == null ? undefined : json['company'],
|
|
53
51
|
'line1': json['line1'],
|
|
54
|
-
'line2': json['line2'],
|
|
52
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
55
53
|
'postcode': json['postcode'],
|
|
56
54
|
'suburb': json['suburb'],
|
|
57
55
|
'country': json['country'],
|
|
@@ -38,13 +38,13 @@ export interface AddressResource {
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof AddressResource
|
|
40
40
|
*/
|
|
41
|
-
addresseeName
|
|
41
|
+
addresseeName: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof AddressResource
|
|
46
46
|
*/
|
|
47
|
-
company
|
|
47
|
+
company: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
@@ -22,6 +22,10 @@ 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;
|
|
27
|
+
if (!('company' in value) || value['company'] === undefined)
|
|
28
|
+
return false;
|
|
25
29
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
26
30
|
return false;
|
|
27
31
|
if (!('line2' in value) || value['line2'] === undefined)
|
|
@@ -49,8 +53,8 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
53
|
'id': json['id'] == null ? undefined : json['id'],
|
|
50
54
|
'type': json['type'] == null ? undefined : json['type'],
|
|
51
55
|
'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
|
|
52
|
-
'addresseeName': json['addresseeName']
|
|
53
|
-
'company': json['company']
|
|
56
|
+
'addresseeName': json['addresseeName'],
|
|
57
|
+
'company': json['company'],
|
|
54
58
|
'line1': json['line1'],
|
|
55
59
|
'line2': json['line2'],
|
|
56
60
|
'postcode': json['postcode'],
|
|
@@ -46,7 +46,8 @@ export interface CreateMenuItemRequestMenuItemLink {
|
|
|
46
46
|
export declare const CreateMenuItemRequestMenuItemLinkLinkableTypeEnum: {
|
|
47
47
|
readonly ProductCategory: "productCategory";
|
|
48
48
|
readonly Tag: "tag";
|
|
49
|
-
readonly
|
|
49
|
+
readonly ProductRangeSiteDetail: "productRangeSiteDetail";
|
|
50
|
+
readonly Page: "page";
|
|
50
51
|
};
|
|
51
52
|
export type CreateMenuItemRequestMenuItemLinkLinkableTypeEnum = typeof CreateMenuItemRequestMenuItemLinkLinkableTypeEnum[keyof typeof CreateMenuItemRequestMenuItemLinkLinkableTypeEnum];
|
|
52
53
|
/**
|
|
@@ -25,7 +25,8 @@ exports.CreateMenuItemRequestMenuItemLinkToJSONTyped = CreateMenuItemRequestMenu
|
|
|
25
25
|
exports.CreateMenuItemRequestMenuItemLinkLinkableTypeEnum = {
|
|
26
26
|
ProductCategory: 'productCategory',
|
|
27
27
|
Tag: 'tag',
|
|
28
|
-
|
|
28
|
+
ProductRangeSiteDetail: 'productRangeSiteDetail',
|
|
29
|
+
Page: 'page'
|
|
29
30
|
};
|
|
30
31
|
/**
|
|
31
32
|
* Check if a given object implements the CreateMenuItemRequestMenuItemLink interface.
|
|
@@ -39,8 +39,6 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
39
39
|
return false;
|
|
40
40
|
if (!('isSuccess' in value) || value['isSuccess'] === undefined)
|
|
41
41
|
return false;
|
|
42
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
43
|
-
return false;
|
|
44
42
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
45
43
|
return false;
|
|
46
44
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -63,7 +61,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
61
|
'endpoint': json['endpoint'],
|
|
64
62
|
'responseCode': json['responseCode'],
|
|
65
63
|
'isSuccess': json['isSuccess'],
|
|
66
|
-
'requestPayload': json['requestPayload'],
|
|
64
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
67
65
|
'responsePayload': json['responsePayload'],
|
|
68
66
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
69
67
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -0,0 +1,32 @@
|
|
|
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 LoginAsCustomerUrlResource
|
|
16
|
+
*/
|
|
17
|
+
export interface LoginAsCustomerUrlResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LoginAsCustomerUrlResource
|
|
22
|
+
*/
|
|
23
|
+
url: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the LoginAsCustomerUrlResource interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfLoginAsCustomerUrlResource(value: object): value is LoginAsCustomerUrlResource;
|
|
29
|
+
export declare function LoginAsCustomerUrlResourceFromJSON(json: any): LoginAsCustomerUrlResource;
|
|
30
|
+
export declare function LoginAsCustomerUrlResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginAsCustomerUrlResource;
|
|
31
|
+
export declare function LoginAsCustomerUrlResourceToJSON(json: any): LoginAsCustomerUrlResource;
|
|
32
|
+
export declare function LoginAsCustomerUrlResourceToJSONTyped(value?: LoginAsCustomerUrlResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfLoginAsCustomerUrlResource = instanceOfLoginAsCustomerUrlResource;
|
|
17
|
+
exports.LoginAsCustomerUrlResourceFromJSON = LoginAsCustomerUrlResourceFromJSON;
|
|
18
|
+
exports.LoginAsCustomerUrlResourceFromJSONTyped = LoginAsCustomerUrlResourceFromJSONTyped;
|
|
19
|
+
exports.LoginAsCustomerUrlResourceToJSON = LoginAsCustomerUrlResourceToJSON;
|
|
20
|
+
exports.LoginAsCustomerUrlResourceToJSONTyped = LoginAsCustomerUrlResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LoginAsCustomerUrlResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLoginAsCustomerUrlResource(value) {
|
|
25
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function LoginAsCustomerUrlResourceFromJSON(json) {
|
|
30
|
+
return LoginAsCustomerUrlResourceFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function LoginAsCustomerUrlResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'url': json['url'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function LoginAsCustomerUrlResourceToJSON(json) {
|
|
41
|
+
return LoginAsCustomerUrlResourceToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function LoginAsCustomerUrlResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'url': value['url'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
import type { LoginAsCustomerUrlResource } from './LoginAsCustomerUrlResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LoginAsCustomerUrlResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface LoginAsCustomerUrlResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<LoginAsCustomerUrlResource>}
|
|
22
|
+
* @memberof LoginAsCustomerUrlResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<LoginAsCustomerUrlResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the LoginAsCustomerUrlResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfLoginAsCustomerUrlResourceArrayResponse(value: object): value is LoginAsCustomerUrlResourceArrayResponse;
|
|
30
|
+
export declare function LoginAsCustomerUrlResourceArrayResponseFromJSON(json: any): LoginAsCustomerUrlResourceArrayResponse;
|
|
31
|
+
export declare function LoginAsCustomerUrlResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginAsCustomerUrlResourceArrayResponse;
|
|
32
|
+
export declare function LoginAsCustomerUrlResourceArrayResponseToJSON(json: any): LoginAsCustomerUrlResourceArrayResponse;
|
|
33
|
+
export declare function LoginAsCustomerUrlResourceArrayResponseToJSONTyped(value?: LoginAsCustomerUrlResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfLoginAsCustomerUrlResourceArrayResponse = instanceOfLoginAsCustomerUrlResourceArrayResponse;
|
|
17
|
+
exports.LoginAsCustomerUrlResourceArrayResponseFromJSON = LoginAsCustomerUrlResourceArrayResponseFromJSON;
|
|
18
|
+
exports.LoginAsCustomerUrlResourceArrayResponseFromJSONTyped = LoginAsCustomerUrlResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.LoginAsCustomerUrlResourceArrayResponseToJSON = LoginAsCustomerUrlResourceArrayResponseToJSON;
|
|
20
|
+
exports.LoginAsCustomerUrlResourceArrayResponseToJSONTyped = LoginAsCustomerUrlResourceArrayResponseToJSONTyped;
|
|
21
|
+
var LoginAsCustomerUrlResource_1 = require("./LoginAsCustomerUrlResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the LoginAsCustomerUrlResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfLoginAsCustomerUrlResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function LoginAsCustomerUrlResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return LoginAsCustomerUrlResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function LoginAsCustomerUrlResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(LoginAsCustomerUrlResource_1.LoginAsCustomerUrlResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function LoginAsCustomerUrlResourceArrayResponseToJSON(json) {
|
|
40
|
+
return LoginAsCustomerUrlResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function LoginAsCustomerUrlResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(LoginAsCustomerUrlResource_1.LoginAsCustomerUrlResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -40,7 +40,8 @@ export interface SearchLinkablesRequest {
|
|
|
40
40
|
export declare const SearchLinkablesRequestTypesEnum: {
|
|
41
41
|
readonly ProductCategory: "productCategory";
|
|
42
42
|
readonly Tag: "tag";
|
|
43
|
-
readonly
|
|
43
|
+
readonly ProductRangeSiteDetail: "productRangeSiteDetail";
|
|
44
|
+
readonly Page: "page";
|
|
44
45
|
};
|
|
45
46
|
export type SearchLinkablesRequestTypesEnum = typeof SearchLinkablesRequestTypesEnum[keyof typeof SearchLinkablesRequestTypesEnum];
|
|
46
47
|
/**
|
|
@@ -25,7 +25,8 @@ exports.SearchLinkablesRequestToJSONTyped = SearchLinkablesRequestToJSONTyped;
|
|
|
25
25
|
exports.SearchLinkablesRequestTypesEnum = {
|
|
26
26
|
ProductCategory: 'productCategory',
|
|
27
27
|
Tag: 'tag',
|
|
28
|
-
|
|
28
|
+
ProductRangeSiteDetail: 'productRangeSiteDetail',
|
|
29
|
+
Page: 'page'
|
|
29
30
|
};
|
|
30
31
|
/**
|
|
31
32
|
* Check if a given object implements the SearchLinkablesRequest interface.
|
|
@@ -44,7 +44,7 @@ export interface StoreFrontendResource {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof StoreFrontendResource
|
|
46
46
|
*/
|
|
47
|
-
website
|
|
47
|
+
website: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
@@ -74,7 +74,7 @@ export interface StoreFrontendResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof StoreFrontendResource
|
|
76
76
|
*/
|
|
77
|
-
tagLine
|
|
77
|
+
tagLine?: string | null;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -28,14 +28,14 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('email' in value) || value['email'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
32
|
+
return false;
|
|
31
33
|
if (!('phone' in value) || value['phone'] === undefined)
|
|
32
34
|
return false;
|
|
33
35
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
34
36
|
return false;
|
|
35
37
|
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
36
38
|
return false;
|
|
37
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
38
|
-
return false;
|
|
39
39
|
if (!('specialDates' in value) || value['specialDates'] === undefined)
|
|
40
40
|
return false;
|
|
41
41
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
@@ -54,12 +54,12 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
54
|
'siteId': json['siteId'],
|
|
55
55
|
'name': json['name'],
|
|
56
56
|
'email': json['email'],
|
|
57
|
-
'website': json['website']
|
|
57
|
+
'website': json['website'],
|
|
58
58
|
'phone': json['phone'],
|
|
59
59
|
'address': json['address'] == null ? undefined : json['address'],
|
|
60
60
|
'latitude': json['latitude'],
|
|
61
61
|
'longitude': json['longitude'],
|
|
62
|
-
'tagLine': json['tagLine'],
|
|
62
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
63
63
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
64
64
|
'specialDates': json['specialDates'],
|
|
65
65
|
'suppliers': json['suppliers'],
|
|
@@ -36,8 +36,6 @@ function instanceOfStoreResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
40
|
-
return false;
|
|
41
39
|
if (!('email' in value) || value['email'] === undefined)
|
|
42
40
|
return false;
|
|
43
41
|
if (!('website' in value) || value['website'] === undefined)
|
|
@@ -68,7 +66,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
66
|
'phone': json['phone'],
|
|
69
67
|
'longitude': json['longitude'],
|
|
70
68
|
'latitude': json['latitude'],
|
|
71
|
-
'tagLine': json['tagLine'],
|
|
69
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
72
70
|
'email': json['email'],
|
|
73
71
|
'website': json['website'],
|
|
74
72
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -26,6 +26,8 @@ function instanceOfStoreSpecialDateResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('hours' in value) || value['hours'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -45,7 +47,7 @@ function StoreSpecialDateResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
47
|
'id': json['id'] == null ? undefined : json['id'],
|
|
46
48
|
'name': json['name'],
|
|
47
49
|
'hours': json['hours'],
|
|
48
|
-
'date': json['date']
|
|
50
|
+
'date': json['date'],
|
|
49
51
|
'closed': json['closed'],
|
|
50
52
|
'displayStartDate': json['displayStartDate'],
|
|
51
53
|
'displayEndDate': json['displayEndDate'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -250,6 +250,8 @@ export * from './LineItemListResource';
|
|
|
250
250
|
export * from './LineItemListResourceArrayResponse';
|
|
251
251
|
export * from './LinkOverlayTemplateToAssetsRequest';
|
|
252
252
|
export * from './LoginAdminRequest';
|
|
253
|
+
export * from './LoginAsCustomerUrlResource';
|
|
254
|
+
export * from './LoginAsCustomerUrlResourceArrayResponse';
|
|
253
255
|
export * from './MenuFrontendResource';
|
|
254
256
|
export * from './MenuFrontendResourceArrayResponse';
|
|
255
257
|
export * from './MenuIdRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -268,6 +268,8 @@ __exportStar(require("./LineItemListResource"), exports);
|
|
|
268
268
|
__exportStar(require("./LineItemListResourceArrayResponse"), exports);
|
|
269
269
|
__exportStar(require("./LinkOverlayTemplateToAssetsRequest"), exports);
|
|
270
270
|
__exportStar(require("./LoginAdminRequest"), exports);
|
|
271
|
+
__exportStar(require("./LoginAsCustomerUrlResource"), exports);
|
|
272
|
+
__exportStar(require("./LoginAsCustomerUrlResourceArrayResponse"), exports);
|
|
271
273
|
__exportStar(require("./MenuFrontendResource"), exports);
|
|
272
274
|
__exportStar(require("./MenuFrontendResourceArrayResponse"), exports);
|
|
273
275
|
__exportStar(require("./MenuIdRequest"), exports);
|
package/package.json
CHANGED
package/src/apis/CustomersApi.ts
CHANGED
|
@@ -21,6 +21,7 @@ import type {
|
|
|
21
21
|
CustomerLiteResourceArrayResponse,
|
|
22
22
|
CustomerResource,
|
|
23
23
|
GenericResponse,
|
|
24
|
+
LoginAsCustomerUrlResource,
|
|
24
25
|
PaginatedCustomerListResourceResponse,
|
|
25
26
|
SearchAllCustomersRequest,
|
|
26
27
|
SearchCustomersRequest,
|
|
@@ -40,6 +41,8 @@ import {
|
|
|
40
41
|
CustomerResourceToJSON,
|
|
41
42
|
GenericResponseFromJSON,
|
|
42
43
|
GenericResponseToJSON,
|
|
44
|
+
LoginAsCustomerUrlResourceFromJSON,
|
|
45
|
+
LoginAsCustomerUrlResourceToJSON,
|
|
43
46
|
PaginatedCustomerListResourceResponseFromJSON,
|
|
44
47
|
PaginatedCustomerListResourceResponseToJSON,
|
|
45
48
|
SearchAllCustomersRequestFromJSON,
|
|
@@ -69,6 +72,10 @@ export interface IndexCustomerRequest {
|
|
|
69
72
|
searchCustomersRequest?: SearchCustomersRequest;
|
|
70
73
|
}
|
|
71
74
|
|
|
75
|
+
export interface LoginAsCustomerImpersonationRequest {
|
|
76
|
+
customer: number;
|
|
77
|
+
}
|
|
78
|
+
|
|
72
79
|
export interface ShowCustomerRequest {
|
|
73
80
|
customer: number;
|
|
74
81
|
}
|
|
@@ -244,6 +251,43 @@ export class CustomersApi extends runtime.BaseAPI {
|
|
|
244
251
|
return await response.value();
|
|
245
252
|
}
|
|
246
253
|
|
|
254
|
+
/**
|
|
255
|
+
* Auto-generated: loginAsCustomerImpersonation
|
|
256
|
+
*/
|
|
257
|
+
async loginAsCustomerImpersonationRaw(requestParameters: LoginAsCustomerImpersonationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginAsCustomerUrlResource>> {
|
|
258
|
+
if (requestParameters['customer'] == null) {
|
|
259
|
+
throw new runtime.RequiredError(
|
|
260
|
+
'customer',
|
|
261
|
+
'Required parameter "customer" was null or undefined when calling loginAsCustomerImpersonation().'
|
|
262
|
+
);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
const queryParameters: any = {};
|
|
266
|
+
|
|
267
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
let urlPath = `/admin-api/customers/{customer}/login-as`;
|
|
271
|
+
urlPath = urlPath.replace(`{${"customer"}}`, encodeURIComponent(String(requestParameters['customer'])));
|
|
272
|
+
|
|
273
|
+
const response = await this.request({
|
|
274
|
+
path: urlPath,
|
|
275
|
+
method: 'POST',
|
|
276
|
+
headers: headerParameters,
|
|
277
|
+
query: queryParameters,
|
|
278
|
+
}, initOverrides);
|
|
279
|
+
|
|
280
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LoginAsCustomerUrlResourceFromJSON(jsonValue));
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Auto-generated: loginAsCustomerImpersonation
|
|
285
|
+
*/
|
|
286
|
+
async loginAsCustomerImpersonation(requestParameters: LoginAsCustomerImpersonationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginAsCustomerUrlResource> {
|
|
287
|
+
const response = await this.loginAsCustomerImpersonationRaw(requestParameters, initOverrides);
|
|
288
|
+
return await response.value();
|
|
289
|
+
}
|
|
290
|
+
|
|
247
291
|
/**
|
|
248
292
|
* Auto-generated: showCustomer
|
|
249
293
|
*/
|
|
@@ -54,7 +54,7 @@ export interface AddressFrontendResource {
|
|
|
54
54
|
* @type {string}
|
|
55
55
|
* @memberof AddressFrontendResource
|
|
56
56
|
*/
|
|
57
|
-
line2
|
|
57
|
+
line2?: string | null;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {string}
|
|
@@ -92,7 +92,6 @@ export interface AddressFrontendResource {
|
|
|
92
92
|
*/
|
|
93
93
|
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
94
94
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
95
|
-
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
96
95
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
97
96
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
98
97
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -116,7 +115,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
116
115
|
'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
|
|
117
116
|
'company': json['company'] == null ? undefined : json['company'],
|
|
118
117
|
'line1': json['line1'],
|
|
119
|
-
'line2': json['line2'],
|
|
118
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
120
119
|
'postcode': json['postcode'],
|
|
121
120
|
'suburb': json['suburb'],
|
|
122
121
|
'country': json['country'],
|
|
@@ -42,13 +42,13 @@ export interface AddressResource {
|
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof AddressResource
|
|
44
44
|
*/
|
|
45
|
-
addresseeName
|
|
45
|
+
addresseeName: string;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof AddressResource
|
|
50
50
|
*/
|
|
51
|
-
company
|
|
51
|
+
company: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -97,6 +97,8 @@ 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;
|
|
101
|
+
if (!('company' in value) || value['company'] === undefined) return false;
|
|
100
102
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
101
103
|
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
102
104
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
@@ -120,8 +122,8 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
120
122
|
'id': json['id'] == null ? undefined : json['id'],
|
|
121
123
|
'type': json['type'] == null ? undefined : json['type'],
|
|
122
124
|
'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
|
|
123
|
-
'addresseeName': json['addresseeName']
|
|
124
|
-
'company': json['company']
|
|
125
|
+
'addresseeName': json['addresseeName'],
|
|
126
|
+
'company': json['company'],
|
|
125
127
|
'line1': json['line1'],
|
|
126
128
|
'line2': json['line2'],
|
|
127
129
|
'postcode': json['postcode'],
|
|
@@ -52,7 +52,8 @@ export interface CreateMenuItemRequestMenuItemLink {
|
|
|
52
52
|
export const CreateMenuItemRequestMenuItemLinkLinkableTypeEnum = {
|
|
53
53
|
ProductCategory: 'productCategory',
|
|
54
54
|
Tag: 'tag',
|
|
55
|
-
|
|
55
|
+
ProductRangeSiteDetail: 'productRangeSiteDetail',
|
|
56
|
+
Page: 'page'
|
|
56
57
|
} as const;
|
|
57
58
|
export type CreateMenuItemRequestMenuItemLinkLinkableTypeEnum = typeof CreateMenuItemRequestMenuItemLinkLinkableTypeEnum[keyof typeof CreateMenuItemRequestMenuItemLinkLinkableTypeEnum];
|
|
58
59
|
|
|
@@ -80,7 +80,7 @@ export interface ExternalApiLogResource {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof ExternalApiLogResource
|
|
82
82
|
*/
|
|
83
|
-
requestPayload
|
|
83
|
+
requestPayload?: string | null;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {string}
|
|
@@ -113,7 +113,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
113
113
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
114
114
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
115
115
|
if (!('isSuccess' in value) || value['isSuccess'] === undefined) return false;
|
|
116
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
117
116
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
118
117
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
119
118
|
return true;
|
|
@@ -137,7 +136,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
137
136
|
'endpoint': json['endpoint'],
|
|
138
137
|
'responseCode': json['responseCode'],
|
|
139
138
|
'isSuccess': json['isSuccess'],
|
|
140
|
-
'requestPayload': json['requestPayload'],
|
|
139
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
141
140
|
'responsePayload': json['responsePayload'],
|
|
142
141
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
143
142
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -0,0 +1,66 @@
|
|
|
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 LoginAsCustomerUrlResource
|
|
20
|
+
*/
|
|
21
|
+
export interface LoginAsCustomerUrlResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LoginAsCustomerUrlResource
|
|
26
|
+
*/
|
|
27
|
+
url: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the LoginAsCustomerUrlResource interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfLoginAsCustomerUrlResource(value: object): value is LoginAsCustomerUrlResource {
|
|
34
|
+
if (!('url' in value) || value['url'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function LoginAsCustomerUrlResourceFromJSON(json: any): LoginAsCustomerUrlResource {
|
|
39
|
+
return LoginAsCustomerUrlResourceFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function LoginAsCustomerUrlResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginAsCustomerUrlResource {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'url': json['url'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function LoginAsCustomerUrlResourceToJSON(json: any): LoginAsCustomerUrlResource {
|
|
53
|
+
return LoginAsCustomerUrlResourceToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function LoginAsCustomerUrlResourceToJSONTyped(value?: LoginAsCustomerUrlResource | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'url': value['url'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
import type { LoginAsCustomerUrlResource } from './LoginAsCustomerUrlResource';
|
|
17
|
+
import {
|
|
18
|
+
LoginAsCustomerUrlResourceFromJSON,
|
|
19
|
+
LoginAsCustomerUrlResourceFromJSONTyped,
|
|
20
|
+
LoginAsCustomerUrlResourceToJSON,
|
|
21
|
+
LoginAsCustomerUrlResourceToJSONTyped,
|
|
22
|
+
} from './LoginAsCustomerUrlResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface LoginAsCustomerUrlResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface LoginAsCustomerUrlResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<LoginAsCustomerUrlResource>}
|
|
33
|
+
* @memberof LoginAsCustomerUrlResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<LoginAsCustomerUrlResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the LoginAsCustomerUrlResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfLoginAsCustomerUrlResourceArrayResponse(value: object): value is LoginAsCustomerUrlResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function LoginAsCustomerUrlResourceArrayResponseFromJSON(json: any): LoginAsCustomerUrlResourceArrayResponse {
|
|
46
|
+
return LoginAsCustomerUrlResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function LoginAsCustomerUrlResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginAsCustomerUrlResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(LoginAsCustomerUrlResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function LoginAsCustomerUrlResourceArrayResponseToJSON(json: any): LoginAsCustomerUrlResourceArrayResponse {
|
|
60
|
+
return LoginAsCustomerUrlResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function LoginAsCustomerUrlResourceArrayResponseToJSONTyped(value?: LoginAsCustomerUrlResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(LoginAsCustomerUrlResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -46,7 +46,8 @@ export interface SearchLinkablesRequest {
|
|
|
46
46
|
export const SearchLinkablesRequestTypesEnum = {
|
|
47
47
|
ProductCategory: 'productCategory',
|
|
48
48
|
Tag: 'tag',
|
|
49
|
-
|
|
49
|
+
ProductRangeSiteDetail: 'productRangeSiteDetail',
|
|
50
|
+
Page: 'page'
|
|
50
51
|
} as const;
|
|
51
52
|
export type SearchLinkablesRequestTypesEnum = typeof SearchLinkablesRequestTypesEnum[keyof typeof SearchLinkablesRequestTypesEnum];
|
|
52
53
|
|
|
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreFrontendResource
|
|
50
50
|
*/
|
|
51
|
-
website
|
|
51
|
+
website: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
|
|
|
78
78
|
* @type {string}
|
|
79
79
|
* @memberof StoreFrontendResource
|
|
80
80
|
*/
|
|
81
|
-
tagLine
|
|
81
|
+
tagLine?: string | null;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
84
|
* @type {string}
|
|
@@ -106,10 +106,10 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
106
106
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
107
107
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
108
108
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
109
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
109
110
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
110
111
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
111
112
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
112
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
113
113
|
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
114
114
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
115
115
|
return true;
|
|
@@ -129,12 +129,12 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
129
129
|
'siteId': json['siteId'],
|
|
130
130
|
'name': json['name'],
|
|
131
131
|
'email': json['email'],
|
|
132
|
-
'website': json['website']
|
|
132
|
+
'website': json['website'],
|
|
133
133
|
'phone': json['phone'],
|
|
134
134
|
'address': json['address'] == null ? undefined : json['address'],
|
|
135
135
|
'latitude': json['latitude'],
|
|
136
136
|
'longitude': json['longitude'],
|
|
137
|
-
'tagLine': json['tagLine'],
|
|
137
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
138
138
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
139
139
|
'specialDates': json['specialDates'],
|
|
140
140
|
'suppliers': json['suppliers'],
|
|
@@ -89,7 +89,7 @@ export interface StoreResource {
|
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof StoreResource
|
|
91
91
|
*/
|
|
92
|
-
tagLine
|
|
92
|
+
tagLine?: string | null;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @type {string}
|
|
@@ -149,7 +149,6 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
149
149
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
150
150
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
151
151
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
152
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
153
152
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
154
153
|
if (!('website' in value) || value['website'] === undefined) return false;
|
|
155
154
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
@@ -176,7 +175,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
176
175
|
'phone': json['phone'],
|
|
177
176
|
'longitude': json['longitude'],
|
|
178
177
|
'latitude': json['latitude'],
|
|
179
|
-
'tagLine': json['tagLine'],
|
|
178
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
180
179
|
'email': json['email'],
|
|
181
180
|
'website': json['website'],
|
|
182
181
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {object}
|
|
43
43
|
* @memberof StoreSpecialDateResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date: object;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,6 +69,7 @@ export interface StoreSpecialDateResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateResource(value: object): value is StoreSpecialDateResource {
|
|
70
70
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
71
|
if (!('hours' in value) || value['hours'] === undefined) return false;
|
|
72
|
+
if (!('date' in value) || value['date'] === undefined) return false;
|
|
72
73
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
73
74
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
74
75
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -88,7 +89,7 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
88
89
|
'id': json['id'] == null ? undefined : json['id'],
|
|
89
90
|
'name': json['name'],
|
|
90
91
|
'hours': json['hours'],
|
|
91
|
-
'date': json['date']
|
|
92
|
+
'date': json['date'],
|
|
92
93
|
'closed': json['closed'],
|
|
93
94
|
'displayStartDate': json['displayStartDate'],
|
|
94
95
|
'displayEndDate': json['displayEndDate'],
|
package/src/models/index.ts
CHANGED
|
@@ -252,6 +252,8 @@ export * from './LineItemListResource';
|
|
|
252
252
|
export * from './LineItemListResourceArrayResponse';
|
|
253
253
|
export * from './LinkOverlayTemplateToAssetsRequest';
|
|
254
254
|
export * from './LoginAdminRequest';
|
|
255
|
+
export * from './LoginAsCustomerUrlResource';
|
|
256
|
+
export * from './LoginAsCustomerUrlResourceArrayResponse';
|
|
255
257
|
export * from './MenuFrontendResource';
|
|
256
258
|
export * from './MenuFrontendResourceArrayResponse';
|
|
257
259
|
export * from './MenuIdRequest';
|