@digital8/lighting-illusions-ts-sdk 0.0.1886 → 0.0.1888

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 (65) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/README.md +20 -2
  3. package/dist/apis/DocumentApi.d.ts +156 -0
  4. package/dist/apis/DocumentApi.js +613 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/AddressFrontendResource.d.ts +1 -1
  8. package/dist/models/AddressFrontendResource.js +1 -3
  9. package/dist/models/AddressResource.d.ts +1 -1
  10. package/dist/models/AddressResource.js +3 -1
  11. package/dist/models/AttachDocumentablesToDocumentRequest.d.ts +33 -0
  12. package/dist/models/AttachDocumentablesToDocumentRequest.js +52 -0
  13. package/dist/models/AttachDocumentablesToDocumentRequestDocumentablesInner.d.ts +53 -0
  14. package/dist/models/AttachDocumentablesToDocumentRequestDocumentablesInner.js +66 -0
  15. package/dist/models/CreateDocumentFileRequest.d.ts +38 -0
  16. package/dist/models/CreateDocumentFileRequest.js +55 -0
  17. package/dist/models/CreateDocumentRequest.d.ts +44 -0
  18. package/dist/models/CreateDocumentRequest.js +57 -0
  19. package/dist/models/DetachDocumentablesFromDocumentRequest.d.ts +33 -0
  20. package/dist/models/DetachDocumentablesFromDocumentRequest.js +52 -0
  21. package/dist/models/DetachDocumentablesFromDocumentRequestDocumentablesInner.d.ts +47 -0
  22. package/dist/models/DetachDocumentablesFromDocumentRequestDocumentablesInner.js +64 -0
  23. package/dist/models/SearchAllDocumentsRequest.d.ts +95 -0
  24. package/dist/models/SearchAllDocumentsRequest.js +86 -0
  25. package/dist/models/SearchDocumentsRequest.d.ts +107 -0
  26. package/dist/models/SearchDocumentsRequest.js +90 -0
  27. package/dist/models/StoreFrontendResource.d.ts +1 -1
  28. package/dist/models/StoreFrontendResource.js +3 -1
  29. package/dist/models/StoreResource.d.ts +2 -2
  30. package/dist/models/StoreResource.js +6 -2
  31. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  32. package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
  33. package/dist/models/UpdateDocumentRequest.d.ts +44 -0
  34. package/dist/models/UpdateDocumentRequest.js +57 -0
  35. package/dist/models/index.d.ts +9 -0
  36. package/dist/models/index.js +9 -0
  37. package/docs/AttachDocumentablesToDocumentRequest.md +34 -0
  38. package/docs/AttachDocumentablesToDocumentRequestDocumentablesInner.md +38 -0
  39. package/docs/CreateDocumentFileRequest.md +36 -0
  40. package/docs/CreateDocumentRequest.md +38 -0
  41. package/docs/DetachDocumentablesFromDocumentRequest.md +34 -0
  42. package/docs/DetachDocumentablesFromDocumentRequestDocumentablesInner.md +36 -0
  43. package/docs/DocumentApi.md +611 -0
  44. package/docs/SearchAllDocumentsRequest.md +46 -0
  45. package/docs/SearchDocumentsRequest.md +50 -0
  46. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  47. package/docs/UpdateDocumentRequest.md +38 -0
  48. package/package.json +1 -1
  49. package/src/apis/DocumentApi.ts +496 -0
  50. package/src/apis/index.ts +1 -0
  51. package/src/models/AddressFrontendResource.ts +2 -3
  52. package/src/models/AddressResource.ts +3 -2
  53. package/src/models/AttachDocumentablesToDocumentRequest.ts +74 -0
  54. package/src/models/AttachDocumentablesToDocumentRequestDocumentablesInner.ts +95 -0
  55. package/src/models/CreateDocumentFileRequest.ts +75 -0
  56. package/src/models/CreateDocumentRequest.ts +83 -0
  57. package/src/models/DetachDocumentablesFromDocumentRequest.ts +74 -0
  58. package/src/models/DetachDocumentablesFromDocumentRequestDocumentablesInner.ts +87 -0
  59. package/src/models/SearchAllDocumentsRequest.ts +145 -0
  60. package/src/models/SearchDocumentsRequest.ts +161 -0
  61. package/src/models/StoreFrontendResource.ts +3 -2
  62. package/src/models/StoreResource.ts +6 -4
  63. package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
  64. package/src/models/UpdateDocumentRequest.ts +83 -0
  65. package/src/models/index.ts +9 -0
@@ -0,0 +1,161 @@
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 SearchDocumentsRequest
20
+ */
21
+ export interface SearchDocumentsRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SearchDocumentsRequest
26
+ */
27
+ search?: string | null;
28
+ /**
29
+ *
30
+ * @type {SearchDocumentsRequestSortByEnum}
31
+ * @memberof SearchDocumentsRequest
32
+ */
33
+ sortBy?: SearchDocumentsRequestSortByEnum;
34
+ /**
35
+ *
36
+ * @type {SearchDocumentsRequestSortDirectionEnum}
37
+ * @memberof SearchDocumentsRequest
38
+ */
39
+ sortDirection?: SearchDocumentsRequestSortDirectionEnum;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof SearchDocumentsRequest
44
+ */
45
+ perPage?: number;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof SearchDocumentsRequest
50
+ */
51
+ page?: number;
52
+ /**
53
+ *
54
+ * @type {Array<string>}
55
+ * @memberof SearchDocumentsRequest
56
+ */
57
+ sitesId?: Array<string>;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof SearchDocumentsRequest
62
+ */
63
+ relatedId?: number;
64
+ /**
65
+ *
66
+ * @type {SearchDocumentsRequestRelatedTypeEnum}
67
+ * @memberof SearchDocumentsRequest
68
+ */
69
+ relatedType?: SearchDocumentsRequestRelatedTypeEnum;
70
+ /**
71
+ *
72
+ * @type {boolean}
73
+ * @memberof SearchDocumentsRequest
74
+ */
75
+ includesRelations?: boolean;
76
+ }
77
+
78
+
79
+ /**
80
+ * @export
81
+ */
82
+ export const SearchDocumentsRequestSortByEnum = {
83
+ Id: 'id',
84
+ Name: 'name',
85
+ CreatedAt: 'created_at',
86
+ UpdatedAt: 'updated_at'
87
+ } as const;
88
+ export type SearchDocumentsRequestSortByEnum = typeof SearchDocumentsRequestSortByEnum[keyof typeof SearchDocumentsRequestSortByEnum];
89
+
90
+ /**
91
+ * @export
92
+ */
93
+ export const SearchDocumentsRequestSortDirectionEnum = {
94
+ Asc: 'asc',
95
+ Desc: 'desc'
96
+ } as const;
97
+ export type SearchDocumentsRequestSortDirectionEnum = typeof SearchDocumentsRequestSortDirectionEnum[keyof typeof SearchDocumentsRequestSortDirectionEnum];
98
+
99
+ /**
100
+ * @export
101
+ */
102
+ export const SearchDocumentsRequestRelatedTypeEnum = {
103
+ ProductChild: 'productChild',
104
+ ProductRange: 'productRange',
105
+ ProductRangeSiteDetail: 'productRangeSiteDetail'
106
+ } as const;
107
+ export type SearchDocumentsRequestRelatedTypeEnum = typeof SearchDocumentsRequestRelatedTypeEnum[keyof typeof SearchDocumentsRequestRelatedTypeEnum];
108
+
109
+
110
+ /**
111
+ * Check if a given object implements the SearchDocumentsRequest interface.
112
+ */
113
+ export function instanceOfSearchDocumentsRequest(value: object): value is SearchDocumentsRequest {
114
+ return true;
115
+ }
116
+
117
+ export function SearchDocumentsRequestFromJSON(json: any): SearchDocumentsRequest {
118
+ return SearchDocumentsRequestFromJSONTyped(json, false);
119
+ }
120
+
121
+ export function SearchDocumentsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchDocumentsRequest {
122
+ if (json == null) {
123
+ return json;
124
+ }
125
+ return {
126
+
127
+ 'search': json['search'] == null ? undefined : json['search'],
128
+ 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
129
+ 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
130
+ 'perPage': json['per_page'] == null ? undefined : json['per_page'],
131
+ 'page': json['page'] == null ? undefined : json['page'],
132
+ 'sitesId': json['sites-id'] == null ? undefined : json['sites-id'],
133
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
134
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
135
+ 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
136
+ };
137
+ }
138
+
139
+ export function SearchDocumentsRequestToJSON(json: any): SearchDocumentsRequest {
140
+ return SearchDocumentsRequestToJSONTyped(json, false);
141
+ }
142
+
143
+ export function SearchDocumentsRequestToJSONTyped(value?: SearchDocumentsRequest | null, ignoreDiscriminator: boolean = false): any {
144
+ if (value == null) {
145
+ return value;
146
+ }
147
+
148
+ return {
149
+
150
+ 'search': value['search'],
151
+ 'sortBy': value['sortBy'],
152
+ 'sortDirection': value['sortDirection'],
153
+ 'per_page': value['perPage'],
154
+ 'page': value['page'],
155
+ 'sites-id': value['sitesId'],
156
+ 'related_id': value['relatedId'],
157
+ 'related_type': value['relatedType'],
158
+ 'includes_relations': value['includesRelations'],
159
+ };
160
+ }
161
+
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
78
78
  * @type {string}
79
79
  * @memberof StoreFrontendResource
80
80
  */
81
- tagLine?: string | null;
81
+ tagLine: string;
82
82
  /**
83
83
  *
84
84
  * @type {string}
@@ -109,6 +109,7 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
109
109
  if (!('phone' in value) || value['phone'] === undefined) return false;
110
110
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
111
111
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
112
+ if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
112
113
  if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
113
114
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
114
115
  return true;
@@ -133,7 +134,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
133
134
  'address': json['address'] == null ? undefined : json['address'],
134
135
  'latitude': json['latitude'],
135
136
  'longitude': json['longitude'],
136
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
137
+ 'tagLine': json['tagLine'],
137
138
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
138
139
  'specialDates': json['specialDates'],
139
140
  'suppliers': json['suppliers'],
@@ -89,7 +89,7 @@ export interface StoreResource {
89
89
  * @type {string}
90
90
  * @memberof StoreResource
91
91
  */
92
- tagLine?: string | null;
92
+ tagLine: string;
93
93
  /**
94
94
  *
95
95
  * @type {string}
@@ -101,7 +101,7 @@ export interface StoreResource {
101
101
  * @type {string}
102
102
  * @memberof StoreResource
103
103
  */
104
- website?: string | null;
104
+ website: string;
105
105
  /**
106
106
  *
107
107
  * @type {number}
@@ -149,7 +149,9 @@ 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;
152
153
  if (!('email' in value) || value['email'] === undefined) return false;
154
+ if (!('website' in value) || value['website'] === undefined) return false;
153
155
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
154
156
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
155
157
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
@@ -174,9 +176,9 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
174
176
  'phone': json['phone'],
175
177
  'longitude': json['longitude'],
176
178
  'latitude': json['latitude'],
177
- 'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
179
+ 'tagLine': json['tagLine'],
178
180
  'email': json['email'],
179
- 'website': json['website'] == null ? undefined : json['website'],
181
+ 'website': json['website'],
180
182
  'netsuiteId': json['netsuiteId'],
181
183
  'displayNetsuiteId': json['displayNetsuiteId'],
182
184
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
39
39
  hours: string;
40
40
  /**
41
41
  *
42
- * @type {object}
42
+ * @type {string}
43
43
  * @memberof StoreSpecialDateFrontendResource
44
44
  */
45
- date: object;
45
+ date?: string | null;
46
46
  /**
47
47
  *
48
48
  * @type {boolean}
@@ -69,7 +69,6 @@ export interface StoreSpecialDateFrontendResource {
69
69
  export function instanceOfStoreSpecialDateFrontendResource(value: object): value is StoreSpecialDateFrontendResource {
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;
73
72
  if (!('closed' in value) || value['closed'] === undefined) return false;
74
73
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
75
74
  if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
@@ -89,7 +88,7 @@ export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
89
88
  'id': json['id'] == null ? undefined : json['id'],
90
89
  'name': json['name'],
91
90
  'hours': json['hours'],
92
- 'date': json['date'],
91
+ 'date': json['date'] == null ? undefined : json['date'],
93
92
  'closed': json['closed'],
94
93
  'displayStartDate': json['displayStartDate'],
95
94
  'displayEndDate': json['displayEndDate'],
@@ -0,0 +1,83 @@
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 UpdateDocumentRequest
20
+ */
21
+ export interface UpdateDocumentRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof UpdateDocumentRequest
26
+ */
27
+ name: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof UpdateDocumentRequest
32
+ */
33
+ fileId: string;
34
+ /**
35
+ *
36
+ * @type {Array<string>}
37
+ * @memberof UpdateDocumentRequest
38
+ */
39
+ siteIds?: Array<string>;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the UpdateDocumentRequest interface.
44
+ */
45
+ export function instanceOfUpdateDocumentRequest(value: object): value is UpdateDocumentRequest {
46
+ if (!('name' in value) || value['name'] === undefined) return false;
47
+ if (!('fileId' in value) || value['fileId'] === undefined) return false;
48
+ return true;
49
+ }
50
+
51
+ export function UpdateDocumentRequestFromJSON(json: any): UpdateDocumentRequest {
52
+ return UpdateDocumentRequestFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function UpdateDocumentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDocumentRequest {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'name': json['name'],
62
+ 'fileId': json['file_id'],
63
+ 'siteIds': json['site_ids'] == null ? undefined : json['site_ids'],
64
+ };
65
+ }
66
+
67
+ export function UpdateDocumentRequestToJSON(json: any): UpdateDocumentRequest {
68
+ return UpdateDocumentRequestToJSONTyped(json, false);
69
+ }
70
+
71
+ export function UpdateDocumentRequestToJSONTyped(value?: UpdateDocumentRequest | null, ignoreDiscriminator: boolean = false): any {
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+
76
+ return {
77
+
78
+ 'name': value['name'],
79
+ 'file_id': value['fileId'],
80
+ 'site_ids': value['siteIds'],
81
+ };
82
+ }
83
+
@@ -16,6 +16,8 @@ export * from './AssetWithOverlayLinkResource';
16
16
  export * from './AssetWithOverlayLinkResourceArrayResponse';
17
17
  export * from './AttachAttributesToProductRangeRequest';
18
18
  export * from './AttachAttributesToProductRangeRequestAttributesInner';
19
+ export * from './AttachDocumentablesToDocumentRequest';
20
+ export * from './AttachDocumentablesToDocumentRequestDocumentablesInner';
19
21
  export * from './AttachDocumentsToProductChildRequest';
20
22
  export * from './AttachDocumentsToProductChildRequestDocumentsInner';
21
23
  export * from './AttachDocumentsToProductRangeRequest';
@@ -66,6 +68,8 @@ export * from './CreateBlogCategoryRequest';
66
68
  export * from './CreateBlogCategoryRequestDescriptionsInner';
67
69
  export * from './CreateBlogCategoryRequestSeoInner';
68
70
  export * from './CreateDefinitionRequest';
71
+ export * from './CreateDocumentFileRequest';
72
+ export * from './CreateDocumentRequest';
69
73
  export * from './CreateLabelRequest';
70
74
  export * from './CreateMenuItemRequest';
71
75
  export * from './CreateMenuItemRequestMenuItemLink';
@@ -101,6 +105,8 @@ export * from './DeleteAttributeValueRequest';
101
105
  export * from './DescriptionResource';
102
106
  export * from './DescriptionResourceArrayResponse';
103
107
  export * from './DetachAttributesFromProductRangeRequest';
108
+ export * from './DetachDocumentablesFromDocumentRequest';
109
+ export * from './DetachDocumentablesFromDocumentRequestDocumentablesInner';
104
110
  export * from './DetachDocumentsFromProductChildRequest';
105
111
  export * from './DetachDocumentsFromProductRangeRequest';
106
112
  export * from './DetachProductChildrenFromProductRangeRequest';
@@ -364,6 +370,7 @@ export * from './SearchAllAttributeValuesRequest';
364
370
  export * from './SearchAllAttributesRequest';
365
371
  export * from './SearchAllBlogCategoriesRequest';
366
372
  export * from './SearchAllDefinitionsRequest';
373
+ export * from './SearchAllDocumentsRequest';
367
374
  export * from './SearchAllFrontendComponentsRequest';
368
375
  export * from './SearchAllMenuItemsRequest';
369
376
  export * from './SearchAllMenusRequest';
@@ -382,6 +389,7 @@ export * from './SearchAttributeValuesRequest';
382
389
  export * from './SearchAttributesRequest';
383
390
  export * from './SearchBlogCategoriesRequest';
384
391
  export * from './SearchDefinitionsRequest';
392
+ export * from './SearchDocumentsRequest';
385
393
  export * from './SearchExternalApiLogsRequest';
386
394
  export * from './SearchGoogleCategoriesRequest';
387
395
  export * from './SearchLabelsRequest';
@@ -461,6 +469,7 @@ export * from './UpdateAttributeRequest';
461
469
  export * from './UpdateAttributeValueRequest';
462
470
  export * from './UpdateBlogCategoryRequest';
463
471
  export * from './UpdateDefinitionRequest';
472
+ export * from './UpdateDocumentRequest';
464
473
  export * from './UpdateLabelRequest';
465
474
  export * from './UpdateMenuItemRequest';
466
475
  export * from './UpdateMenuRequest';