@digital8/lighting-illusions-ts-sdk 0.0.1605 → 0.0.1606

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/.openapi-generator/FILES +0 -14
  2. package/README.md +2 -9
  3. package/dist/apis/index.d.ts +0 -1
  4. package/dist/apis/index.js +0 -1
  5. package/dist/models/AddressResource.d.ts +1 -1
  6. package/dist/models/AddressResource.js +3 -1
  7. package/dist/models/StoreFrontendResource.d.ts +6 -0
  8. package/dist/models/StoreFrontendResource.js +2 -0
  9. package/dist/models/StoreListResource.d.ts +7 -1
  10. package/dist/models/StoreListResource.js +7 -1
  11. package/dist/models/StoreResource.d.ts +7 -1
  12. package/dist/models/StoreResource.js +3 -3
  13. package/dist/models/StoreStoreRequest.d.ts +6 -0
  14. package/dist/models/StoreStoreRequest.js +2 -0
  15. package/dist/models/UpdateStoreRequest.d.ts +6 -0
  16. package/dist/models/UpdateStoreRequest.js +2 -0
  17. package/dist/models/index.d.ts +0 -6
  18. package/dist/models/index.js +0 -6
  19. package/docs/StoreFrontendResource.md +2 -0
  20. package/docs/StoreListResource.md +2 -0
  21. package/docs/StoreResource.md +2 -0
  22. package/docs/StoreStoreRequest.md +2 -0
  23. package/docs/UpdateStoreRequest.md +2 -0
  24. package/package.json +1 -1
  25. package/src/apis/index.ts +0 -1
  26. package/src/models/AddressResource.ts +3 -2
  27. package/src/models/StoreFrontendResource.ts +8 -0
  28. package/src/models/StoreListResource.ts +12 -2
  29. package/src/models/StoreResource.ts +10 -3
  30. package/src/models/StoreStoreRequest.ts +8 -0
  31. package/src/models/UpdateStoreRequest.ts +8 -0
  32. package/src/models/index.ts +0 -6
  33. package/dist/apis/RedirectApi.d.ts +0 -33
  34. package/dist/apis/RedirectApi.js +0 -138
  35. package/dist/models/IndexRedirectRequest.d.ts +0 -124
  36. package/dist/models/IndexRedirectRequest.js +0 -95
  37. package/dist/models/PaginatedRedirectListResourceResponse.d.ts +0 -40
  38. package/dist/models/PaginatedRedirectListResourceResponse.js +0 -57
  39. package/dist/models/RedirectFrontendResource.d.ts +0 -62
  40. package/dist/models/RedirectFrontendResource.js +0 -71
  41. package/dist/models/RedirectFrontendResourceArrayResponse.d.ts +0 -33
  42. package/dist/models/RedirectFrontendResourceArrayResponse.js +0 -50
  43. package/dist/models/RedirectListResource.d.ts +0 -69
  44. package/dist/models/RedirectListResource.js +0 -76
  45. package/dist/models/RedirectListResourceArrayResponse.d.ts +0 -33
  46. package/dist/models/RedirectListResourceArrayResponse.js +0 -50
  47. package/docs/IndexRedirectRequest.md +0 -56
  48. package/docs/PaginatedRedirectListResourceResponse.md +0 -36
  49. package/docs/RedirectApi.md +0 -74
  50. package/docs/RedirectFrontendResource.md +0 -44
  51. package/docs/RedirectFrontendResourceArrayResponse.md +0 -34
  52. package/docs/RedirectListResource.md +0 -46
  53. package/docs/RedirectListResourceArrayResponse.md +0 -34
  54. package/src/apis/RedirectApi.ts +0 -77
  55. package/src/models/IndexRedirectRequest.ts +0 -184
  56. package/src/models/PaginatedRedirectListResourceResponse.ts +0 -90
  57. package/src/models/RedirectFrontendResource.ts +0 -111
  58. package/src/models/RedirectFrontendResourceArrayResponse.ts +0 -73
  59. package/src/models/RedirectListResource.ts +0 -128
  60. package/src/models/RedirectListResourceArrayResponse.ts +0 -73
@@ -89,13 +89,19 @@ export interface StoreResource {
89
89
  * @type {string}
90
90
  * @memberof StoreResource
91
91
  */
92
- tagLine: string;
92
+ tagLine?: string | null;
93
93
  /**
94
94
  *
95
95
  * @type {string}
96
96
  * @memberof StoreResource
97
97
  */
98
98
  email: string;
99
+ /**
100
+ *
101
+ * @type {string}
102
+ * @memberof StoreResource
103
+ */
104
+ website?: string | null;
99
105
  /**
100
106
  *
101
107
  * @type {string}
@@ -131,7 +137,6 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
131
137
  if (!('phone' in value) || value['phone'] === undefined) return false;
132
138
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
133
139
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
134
- if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
135
140
  if (!('email' in value) || value['email'] === undefined) return false;
136
141
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
137
142
  if (!('address' in value) || value['address'] === undefined) return false;
@@ -155,8 +160,9 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
155
160
  'phone': json['phone'],
156
161
  'longitude': json['longitude'],
157
162
  'latitude': json['latitude'],
158
- 'tagLine': json['tag_line'],
163
+ 'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
159
164
  'email': json['email'],
165
+ 'website': json['website'] == null ? undefined : json['website'],
160
166
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
161
167
  'suppliers': (json['suppliers'] == null ? null : (json['suppliers'] as Array<any>).map(SupplierLiteResourceFromJSON)),
162
168
  'address': AddressResourceFromJSON(json['address']),
@@ -183,6 +189,7 @@ export function StoreResourceToJSONTyped(value?: StoreResource | null, ignoreDis
183
189
  'latitude': value['latitude'],
184
190
  'tag_line': value['tagLine'],
185
191
  'email': value['email'],
192
+ 'website': value['website'],
186
193
  'opening_hours': value['openingHours'],
187
194
  'suppliers': (value['suppliers'] == null ? null : (value['suppliers'] as Array<any>).map(SupplierLiteResourceToJSON)),
188
195
  'address': AddressResourceToJSON(value['address']),
@@ -76,6 +76,12 @@ export interface StoreStoreRequest {
76
76
  * @memberof StoreStoreRequest
77
77
  */
78
78
  email?: string | null;
79
+ /**
80
+ *
81
+ * @type {string}
82
+ * @memberof StoreStoreRequest
83
+ */
84
+ website?: string | null;
79
85
  /**
80
86
  *
81
87
  * @type {Array<string | null>}
@@ -132,6 +138,7 @@ export function StoreStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: b
132
138
  'latitude': json['latitude'],
133
139
  'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
134
140
  'email': json['email'] == null ? undefined : json['email'],
141
+ 'website': json['website'] == null ? undefined : json['website'],
135
142
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
136
143
  'supplierIds': json['supplier_ids'] == null ? undefined : json['supplier_ids'],
137
144
  'specialDates': json['special_dates'] == null ? undefined : ((json['special_dates'] as Array<any>).map(StoreStoreRequestSpecialDatesInnerFromJSON)),
@@ -157,6 +164,7 @@ export function StoreStoreRequestToJSONTyped(value?: StoreStoreRequest | null, i
157
164
  'latitude': value['latitude'],
158
165
  'tag_line': value['tagLine'],
159
166
  'email': value['email'],
167
+ 'website': value['website'],
160
168
  'opening_hours': value['openingHours'],
161
169
  'supplier_ids': value['supplierIds'],
162
170
  'special_dates': value['specialDates'] == null ? undefined : ((value['specialDates'] as Array<any>).map(StoreStoreRequestSpecialDatesInnerToJSON)),
@@ -76,6 +76,12 @@ export interface UpdateStoreRequest {
76
76
  * @memberof UpdateStoreRequest
77
77
  */
78
78
  email?: string | null;
79
+ /**
80
+ *
81
+ * @type {string}
82
+ * @memberof UpdateStoreRequest
83
+ */
84
+ website?: string | null;
79
85
  /**
80
86
  *
81
87
  * @type {Array<string | null>}
@@ -132,6 +138,7 @@ export function UpdateStoreRequestFromJSONTyped(json: any, ignoreDiscriminator:
132
138
  'latitude': json['latitude'],
133
139
  'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
134
140
  'email': json['email'] == null ? undefined : json['email'],
141
+ 'website': json['website'] == null ? undefined : json['website'],
135
142
  'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
136
143
  'supplierIds': json['supplier_ids'] == null ? undefined : json['supplier_ids'],
137
144
  'specialDates': json['special_dates'] == null ? undefined : ((json['special_dates'] as Array<any>).map(UpdateStoreRequestSpecialDatesInnerFromJSON)),
@@ -157,6 +164,7 @@ export function UpdateStoreRequestToJSONTyped(value?: UpdateStoreRequest | null,
157
164
  'latitude': value['latitude'],
158
165
  'tag_line': value['tagLine'],
159
166
  'email': value['email'],
167
+ 'website': value['website'],
160
168
  'opening_hours': value['openingHours'],
161
169
  'supplier_ids': value['supplierIds'],
162
170
  'special_dates': value['specialDates'] == null ? undefined : ((value['specialDates'] as Array<any>).map(UpdateStoreRequestSpecialDatesInnerToJSON)),
@@ -121,7 +121,6 @@ export * from './IndexProductChildRequest';
121
121
  export * from './IndexProductRangeRequest';
122
122
  export * from './IndexProductRequest';
123
123
  export * from './IndexProductTypeRequest';
124
- export * from './IndexRedirectRequest';
125
124
  export * from './IndexSiteNotificationRequest';
126
125
  export * from './IndexSiteRequest';
127
126
  export * from './IndexStoreRequest';
@@ -186,7 +185,6 @@ export * from './PaginatedProductSearchResultResourceResponse';
186
185
  export * from './PaginatedProductTypeListResourceResponse';
187
186
  export * from './PaginatedProductTypeLiteResourceResponse';
188
187
  export * from './PaginatedProductTypeResourceResponse';
189
- export * from './PaginatedRedirectListResourceResponse';
190
188
  export * from './PaginatedSiteListResourceResponse';
191
189
  export * from './PaginatedSiteLiteResourceResponse';
192
190
  export * from './PaginatedSiteNotificationListResourceResponse';
@@ -279,10 +277,6 @@ export * from './ProductTypeLiteResource';
279
277
  export * from './ProductTypeLiteResourceArrayResponse';
280
278
  export * from './ProductTypeResource';
281
279
  export * from './ProductTypeResourceArrayResponse';
282
- export * from './RedirectFrontendResource';
283
- export * from './RedirectFrontendResourceArrayResponse';
284
- export * from './RedirectListResource';
285
- export * from './RedirectListResourceArrayResponse';
286
280
  export * from './SEOResource';
287
281
  export * from './SEOResourceArrayResponse';
288
282
  export * from './ShowAssetsProductChildRequest';
@@ -1,33 +0,0 @@
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 * as runtime from '../runtime';
13
- import type { IndexRedirectRequest, PaginatedRedirectListResourceResponse } from '../models/index';
14
- export interface IndexRedirectOperationRequest {
15
- indexRedirectRequest?: IndexRedirectRequest;
16
- }
17
- /**
18
- *
19
- */
20
- export declare class RedirectApi extends runtime.BaseAPI {
21
- /**
22
- * Creates request options for indexRedirect without sending the request
23
- */
24
- indexRedirectRequestOpts(requestParameters: IndexRedirectOperationRequest): Promise<runtime.RequestOpts>;
25
- /**
26
- * Auto-generated: indexRedirect
27
- */
28
- indexRedirectRaw(requestParameters: IndexRedirectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedRedirectListResourceResponse>>;
29
- /**
30
- * Auto-generated: indexRedirect
31
- */
32
- indexRedirect(requestParameters?: IndexRedirectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedRedirectListResourceResponse>;
33
- }
@@ -1,138 +0,0 @@
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
- var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = function (d, b) {
17
- extendStatics = Object.setPrototypeOf ||
18
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
- return extendStatics(d, b);
21
- };
22
- return function (d, b) {
23
- if (typeof b !== "function" && b !== null)
24
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
- extendStatics(d, b);
26
- function __() { this.constructor = d; }
27
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
- };
29
- })();
30
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
- return new (P || (P = Promise))(function (resolve, reject) {
33
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
- step((generator = generator.apply(thisArg, _arguments || [])).next());
37
- });
38
- };
39
- var __generator = (this && this.__generator) || function (thisArg, body) {
40
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
41
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
- function verb(n) { return function (v) { return step([n, v]); }; }
43
- function step(op) {
44
- if (f) throw new TypeError("Generator is already executing.");
45
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
- if (y = 0, t) op = [op[0] & 2, t.value];
48
- switch (op[0]) {
49
- case 0: case 1: t = op; break;
50
- case 4: _.label++; return { value: op[1], done: false };
51
- case 5: _.label++; y = op[1]; op = [0]; continue;
52
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
- default:
54
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
- if (t[2]) _.ops.pop();
59
- _.trys.pop(); continue;
60
- }
61
- op = body.call(thisArg, _);
62
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
- }
65
- };
66
- Object.defineProperty(exports, "__esModule", { value: true });
67
- exports.RedirectApi = void 0;
68
- var runtime = require("../runtime");
69
- var index_1 = require("../models/index");
70
- /**
71
- *
72
- */
73
- var RedirectApi = /** @class */ (function (_super) {
74
- __extends(RedirectApi, _super);
75
- function RedirectApi() {
76
- return _super !== null && _super.apply(this, arguments) || this;
77
- }
78
- /**
79
- * Creates request options for indexRedirect without sending the request
80
- */
81
- RedirectApi.prototype.indexRedirectRequestOpts = function (requestParameters) {
82
- return __awaiter(this, void 0, void 0, function () {
83
- var queryParameters, headerParameters, urlPath;
84
- return __generator(this, function (_a) {
85
- queryParameters = {};
86
- headerParameters = {};
87
- headerParameters['Content-Type'] = 'application/json';
88
- urlPath = "/admin-api/redirect/list";
89
- return [2 /*return*/, {
90
- path: urlPath,
91
- method: 'POST',
92
- headers: headerParameters,
93
- query: queryParameters,
94
- body: (0, index_1.IndexRedirectRequestToJSON)(requestParameters['indexRedirectRequest']),
95
- }];
96
- });
97
- });
98
- };
99
- /**
100
- * Auto-generated: indexRedirect
101
- */
102
- RedirectApi.prototype.indexRedirectRaw = function (requestParameters, initOverrides) {
103
- return __awaiter(this, void 0, void 0, function () {
104
- var requestOptions, response;
105
- return __generator(this, function (_a) {
106
- switch (_a.label) {
107
- case 0: return [4 /*yield*/, this.indexRedirectRequestOpts(requestParameters)];
108
- case 1:
109
- requestOptions = _a.sent();
110
- return [4 /*yield*/, this.request(requestOptions, initOverrides)];
111
- case 2:
112
- response = _a.sent();
113
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedRedirectListResourceResponseFromJSON)(jsonValue); })];
114
- }
115
- });
116
- });
117
- };
118
- /**
119
- * Auto-generated: indexRedirect
120
- */
121
- RedirectApi.prototype.indexRedirect = function () {
122
- return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
123
- var response;
124
- if (requestParameters === void 0) { requestParameters = {}; }
125
- return __generator(this, function (_a) {
126
- switch (_a.label) {
127
- case 0: return [4 /*yield*/, this.indexRedirectRaw(requestParameters, initOverrides)];
128
- case 1:
129
- response = _a.sent();
130
- return [4 /*yield*/, response.value()];
131
- case 2: return [2 /*return*/, _a.sent()];
132
- }
133
- });
134
- });
135
- };
136
- return RedirectApi;
137
- }(runtime.BaseAPI));
138
- exports.RedirectApi = RedirectApi;
@@ -1,124 +0,0 @@
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 IndexRedirectRequest
16
- */
17
- export interface IndexRedirectRequest {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof IndexRedirectRequest
22
- */
23
- search?: string | null;
24
- /**
25
- *
26
- * @type {IndexRedirectRequestSortByEnum}
27
- * @memberof IndexRedirectRequest
28
- */
29
- sortBy?: IndexRedirectRequestSortByEnum;
30
- /**
31
- *
32
- * @type {IndexRedirectRequestSortDirectionEnum}
33
- * @memberof IndexRedirectRequest
34
- */
35
- sortDirection?: IndexRedirectRequestSortDirectionEnum;
36
- /**
37
- *
38
- * @type {number}
39
- * @memberof IndexRedirectRequest
40
- */
41
- perPage?: number;
42
- /**
43
- *
44
- * @type {number}
45
- * @memberof IndexRedirectRequest
46
- */
47
- page?: number;
48
- /**
49
- *
50
- * @type {Array<string>}
51
- * @memberof IndexRedirectRequest
52
- */
53
- siteId?: Array<string>;
54
- /**
55
- *
56
- * @type {Array<string>}
57
- * @memberof IndexRedirectRequest
58
- */
59
- redirectableType?: Array<string>;
60
- /**
61
- *
62
- * @type {number}
63
- * @memberof IndexRedirectRequest
64
- */
65
- relatedId?: number;
66
- /**
67
- *
68
- * @type {IndexRedirectRequestRelatedTypeEnum}
69
- * @memberof IndexRedirectRequest
70
- */
71
- relatedType?: IndexRedirectRequestRelatedTypeEnum;
72
- /**
73
- *
74
- * @type {boolean}
75
- * @memberof IndexRedirectRequest
76
- */
77
- includesRelations?: boolean;
78
- /**
79
- *
80
- * @type {number}
81
- * @memberof IndexRedirectRequest
82
- */
83
- productChildId?: number | null;
84
- /**
85
- *
86
- * @type {number}
87
- * @memberof IndexRedirectRequest
88
- */
89
- productRangeId?: number | null;
90
- }
91
- /**
92
- * @export
93
- */
94
- export declare const IndexRedirectRequestSortByEnum: {
95
- readonly Id: "id";
96
- };
97
- export type IndexRedirectRequestSortByEnum = typeof IndexRedirectRequestSortByEnum[keyof typeof IndexRedirectRequestSortByEnum];
98
- /**
99
- * @export
100
- */
101
- export declare const IndexRedirectRequestSortDirectionEnum: {
102
- readonly Asc: "asc";
103
- readonly Desc: "desc";
104
- };
105
- export type IndexRedirectRequestSortDirectionEnum = typeof IndexRedirectRequestSortDirectionEnum[keyof typeof IndexRedirectRequestSortDirectionEnum];
106
- /**
107
- * @export
108
- */
109
- export declare const IndexRedirectRequestRelatedTypeEnum: {
110
- readonly ProductChildSiteDetail: "productChildSiteDetail";
111
- readonly ProductRangeSiteDetail: "productRangeSiteDetail";
112
- readonly ProductCategory: "productCategory";
113
- readonly Supplier: "supplier";
114
- readonly Tag: "tag";
115
- };
116
- export type IndexRedirectRequestRelatedTypeEnum = typeof IndexRedirectRequestRelatedTypeEnum[keyof typeof IndexRedirectRequestRelatedTypeEnum];
117
- /**
118
- * Check if a given object implements the IndexRedirectRequest interface.
119
- */
120
- export declare function instanceOfIndexRedirectRequest(value: object): value is IndexRedirectRequest;
121
- export declare function IndexRedirectRequestFromJSON(json: any): IndexRedirectRequest;
122
- export declare function IndexRedirectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexRedirectRequest;
123
- export declare function IndexRedirectRequestToJSON(json: any): IndexRedirectRequest;
124
- export declare function IndexRedirectRequestToJSONTyped(value?: IndexRedirectRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,95 +0,0 @@
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.IndexRedirectRequestRelatedTypeEnum = exports.IndexRedirectRequestSortDirectionEnum = exports.IndexRedirectRequestSortByEnum = void 0;
17
- exports.instanceOfIndexRedirectRequest = instanceOfIndexRedirectRequest;
18
- exports.IndexRedirectRequestFromJSON = IndexRedirectRequestFromJSON;
19
- exports.IndexRedirectRequestFromJSONTyped = IndexRedirectRequestFromJSONTyped;
20
- exports.IndexRedirectRequestToJSON = IndexRedirectRequestToJSON;
21
- exports.IndexRedirectRequestToJSONTyped = IndexRedirectRequestToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.IndexRedirectRequestSortByEnum = {
26
- Id: 'id'
27
- };
28
- /**
29
- * @export
30
- */
31
- exports.IndexRedirectRequestSortDirectionEnum = {
32
- Asc: 'asc',
33
- Desc: 'desc'
34
- };
35
- /**
36
- * @export
37
- */
38
- exports.IndexRedirectRequestRelatedTypeEnum = {
39
- ProductChildSiteDetail: 'productChildSiteDetail',
40
- ProductRangeSiteDetail: 'productRangeSiteDetail',
41
- ProductCategory: 'productCategory',
42
- Supplier: 'supplier',
43
- Tag: 'tag'
44
- };
45
- /**
46
- * Check if a given object implements the IndexRedirectRequest interface.
47
- */
48
- function instanceOfIndexRedirectRequest(value) {
49
- return true;
50
- }
51
- function IndexRedirectRequestFromJSON(json) {
52
- return IndexRedirectRequestFromJSONTyped(json, false);
53
- }
54
- function IndexRedirectRequestFromJSONTyped(json, ignoreDiscriminator) {
55
- if (json == null) {
56
- return json;
57
- }
58
- return {
59
- 'search': json['search'] == null ? undefined : json['search'],
60
- 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
61
- 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
62
- 'perPage': json['per_page'] == null ? undefined : json['per_page'],
63
- 'page': json['page'] == null ? undefined : json['page'],
64
- 'siteId': json['site_id'] == null ? undefined : json['site_id'],
65
- 'redirectableType': json['redirectable_type'] == null ? undefined : json['redirectable_type'],
66
- 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
67
- 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
68
- 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
69
- 'productChildId': json['product_child_id'] == null ? undefined : json['product_child_id'],
70
- 'productRangeId': json['product_range_id'] == null ? undefined : json['product_range_id'],
71
- };
72
- }
73
- function IndexRedirectRequestToJSON(json) {
74
- return IndexRedirectRequestToJSONTyped(json, false);
75
- }
76
- function IndexRedirectRequestToJSONTyped(value, ignoreDiscriminator) {
77
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
78
- if (value == null) {
79
- return value;
80
- }
81
- return {
82
- 'search': value['search'],
83
- 'sortBy': value['sortBy'],
84
- 'sortDirection': value['sortDirection'],
85
- 'per_page': value['perPage'],
86
- 'page': value['page'],
87
- 'site_id': value['siteId'],
88
- 'redirectable_type': value['redirectableType'],
89
- 'related_id': value['relatedId'],
90
- 'related_type': value['relatedType'],
91
- 'includes_relations': value['includesRelations'],
92
- 'product_child_id': value['productChildId'],
93
- 'product_range_id': value['productRangeId'],
94
- };
95
- }
@@ -1,40 +0,0 @@
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 { PagingMetadata } from './PagingMetadata';
13
- import type { RedirectListResource } from './RedirectListResource';
14
- /**
15
- *
16
- * @export
17
- * @interface PaginatedRedirectListResourceResponse
18
- */
19
- export interface PaginatedRedirectListResourceResponse {
20
- /**
21
- *
22
- * @type {Array<RedirectListResource>}
23
- * @memberof PaginatedRedirectListResourceResponse
24
- */
25
- data: Array<RedirectListResource>;
26
- /**
27
- *
28
- * @type {PagingMetadata}
29
- * @memberof PaginatedRedirectListResourceResponse
30
- */
31
- meta: PagingMetadata;
32
- }
33
- /**
34
- * Check if a given object implements the PaginatedRedirectListResourceResponse interface.
35
- */
36
- export declare function instanceOfPaginatedRedirectListResourceResponse(value: object): value is PaginatedRedirectListResourceResponse;
37
- export declare function PaginatedRedirectListResourceResponseFromJSON(json: any): PaginatedRedirectListResourceResponse;
38
- export declare function PaginatedRedirectListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedRedirectListResourceResponse;
39
- export declare function PaginatedRedirectListResourceResponseToJSON(json: any): PaginatedRedirectListResourceResponse;
40
- export declare function PaginatedRedirectListResourceResponseToJSONTyped(value?: PaginatedRedirectListResourceResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,57 +0,0 @@
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.instanceOfPaginatedRedirectListResourceResponse = instanceOfPaginatedRedirectListResourceResponse;
17
- exports.PaginatedRedirectListResourceResponseFromJSON = PaginatedRedirectListResourceResponseFromJSON;
18
- exports.PaginatedRedirectListResourceResponseFromJSONTyped = PaginatedRedirectListResourceResponseFromJSONTyped;
19
- exports.PaginatedRedirectListResourceResponseToJSON = PaginatedRedirectListResourceResponseToJSON;
20
- exports.PaginatedRedirectListResourceResponseToJSONTyped = PaginatedRedirectListResourceResponseToJSONTyped;
21
- var PagingMetadata_1 = require("./PagingMetadata");
22
- var RedirectListResource_1 = require("./RedirectListResource");
23
- /**
24
- * Check if a given object implements the PaginatedRedirectListResourceResponse interface.
25
- */
26
- function instanceOfPaginatedRedirectListResourceResponse(value) {
27
- if (!('data' in value) || value['data'] === undefined)
28
- return false;
29
- if (!('meta' in value) || value['meta'] === undefined)
30
- return false;
31
- return true;
32
- }
33
- function PaginatedRedirectListResourceResponseFromJSON(json) {
34
- return PaginatedRedirectListResourceResponseFromJSONTyped(json, false);
35
- }
36
- function PaginatedRedirectListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'data': (json['data'].map(RedirectListResource_1.RedirectListResourceFromJSON)),
42
- 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
- };
44
- }
45
- function PaginatedRedirectListResourceResponseToJSON(json) {
46
- return PaginatedRedirectListResourceResponseToJSONTyped(json, false);
47
- }
48
- function PaginatedRedirectListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
- if (value == null) {
51
- return value;
52
- }
53
- return {
54
- 'data': (value['data'].map(RedirectListResource_1.RedirectListResourceToJSON)),
55
- 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
- };
57
- }