@digital8/lighting-illusions-ts-sdk 0.0.1571 → 0.0.1572

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 (137) hide show
  1. package/.openapi-generator/FILES +40 -18
  2. package/README.md +25 -11
  3. package/dist/apis/ProductRegistrationApi.d.ts +79 -0
  4. package/dist/apis/ProductRegistrationApi.js +316 -0
  5. package/dist/apis/index.d.ts +1 -1
  6. package/dist/apis/index.js +1 -1
  7. package/dist/models/AddressFrontendResource.d.ts +1 -1
  8. package/dist/models/AddressFrontendResource.js +1 -3
  9. package/dist/models/AddressResource.d.ts +2 -2
  10. package/dist/models/AddressResource.js +2 -6
  11. package/dist/models/GetAllProductRegistrationRequest.d.ts +88 -0
  12. package/dist/models/GetAllProductRegistrationRequest.js +80 -0
  13. package/dist/models/IndexProductChildRequest.d.ts +1 -0
  14. package/dist/models/IndexProductChildRequest.js +1 -0
  15. package/dist/models/IndexProductRegistrationRequest.d.ts +131 -0
  16. package/dist/models/IndexProductRegistrationRequest.js +98 -0
  17. package/dist/models/ListAssetsProductRegistrationRequest.d.ts +103 -0
  18. package/dist/models/ListAssetsProductRegistrationRequest.js +83 -0
  19. package/dist/models/PaginatedProductRegistrationAssetResourceResponse.d.ts +40 -0
  20. package/dist/models/PaginatedProductRegistrationAssetResourceResponse.js +57 -0
  21. package/dist/models/PaginatedProductRegistrationListResourceResponse.d.ts +40 -0
  22. package/dist/models/PaginatedProductRegistrationListResourceResponse.js +57 -0
  23. package/dist/models/PaginatedProductRegistrationResourceResponse.d.ts +40 -0
  24. package/dist/models/PaginatedProductRegistrationResourceResponse.js +57 -0
  25. package/dist/models/ProductRangeFrontendResource.d.ts +0 -7
  26. package/dist/models/ProductRangeFrontendResource.js +0 -5
  27. package/dist/models/ProductRegistrationAssetResource.d.ts +45 -0
  28. package/dist/models/ProductRegistrationAssetResource.js +58 -0
  29. package/dist/models/ProductRegistrationAssetResourceArrayResponse.d.ts +33 -0
  30. package/dist/models/ProductRegistrationAssetResourceArrayResponse.js +50 -0
  31. package/dist/models/ProductRegistrationAssetType.d.ts +25 -0
  32. package/dist/models/ProductRegistrationAssetType.js +51 -0
  33. package/dist/models/ProductRegistrationCustomerResource.d.ts +62 -0
  34. package/dist/models/ProductRegistrationCustomerResource.js +65 -0
  35. package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +33 -0
  36. package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +50 -0
  37. package/dist/models/ProductRegistrationListResource.d.ts +57 -0
  38. package/dist/models/ProductRegistrationListResource.js +64 -0
  39. package/dist/models/ProductRegistrationListResourceArrayResponse.d.ts +33 -0
  40. package/dist/models/ProductRegistrationListResourceArrayResponse.js +50 -0
  41. package/dist/models/ProductRegistrationLiteResource.d.ts +38 -0
  42. package/dist/models/ProductRegistrationLiteResource.js +53 -0
  43. package/dist/models/ProductRegistrationLiteResourceArrayResponse.d.ts +33 -0
  44. package/dist/models/ProductRegistrationLiteResourceArrayResponse.js +50 -0
  45. package/dist/models/ProductRegistrationProductChildResource.d.ts +50 -0
  46. package/dist/models/ProductRegistrationProductChildResource.js +63 -0
  47. package/dist/models/ProductRegistrationProductChildResourceArrayResponse.d.ts +33 -0
  48. package/dist/models/ProductRegistrationProductChildResourceArrayResponse.js +50 -0
  49. package/dist/models/ProductRegistrationResource.d.ts +90 -0
  50. package/dist/models/ProductRegistrationResource.js +81 -0
  51. package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +33 -0
  52. package/dist/models/ProductRegistrationResourceArrayResponse.js +50 -0
  53. package/dist/models/StoreResource.d.ts +1 -1
  54. package/dist/models/StoreResource.js +3 -1
  55. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  56. package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
  57. package/dist/models/index.d.ts +19 -8
  58. package/dist/models/index.js +19 -8
  59. package/docs/{IndexRedirectRequest.md → GetAllProductRegistrationRequest.md} +6 -12
  60. package/docs/IndexProductRegistrationRequest.md +58 -0
  61. package/docs/ListAssetsProductRegistrationRequest.md +52 -0
  62. package/docs/PaginatedProductRegistrationAssetResourceResponse.md +36 -0
  63. package/docs/PaginatedProductRegistrationListResourceResponse.md +36 -0
  64. package/docs/{PaginatedRedirectListResourceResponse.md → PaginatedProductRegistrationResourceResponse.md} +5 -5
  65. package/docs/ProductRangeFrontendResource.md +0 -2
  66. package/docs/ProductRegistrationApi.md +275 -0
  67. package/docs/ProductRegistrationAssetResource.md +38 -0
  68. package/docs/ProductRegistrationAssetResourceArrayResponse.md +34 -0
  69. package/docs/{ModelAttributeFrontendResource.md → ProductRegistrationAssetType.md} +4 -8
  70. package/docs/{RedirectListResource.md → ProductRegistrationCustomerResource.md} +14 -16
  71. package/docs/ProductRegistrationCustomerResourceArrayResponse.md +34 -0
  72. package/docs/ProductRegistrationListResource.md +42 -0
  73. package/docs/{ModelAttributeFrontendResourceArrayResponse.md → ProductRegistrationListResourceArrayResponse.md} +5 -5
  74. package/docs/{RedirectListResourceArrayResponse.md → ProductRegistrationLiteResource.md} +8 -6
  75. package/docs/ProductRegistrationLiteResourceArrayResponse.md +34 -0
  76. package/docs/{RedirectFrontendResource.md → ProductRegistrationProductChildResource.md} +10 -14
  77. package/docs/ProductRegistrationProductChildResourceArrayResponse.md +34 -0
  78. package/docs/ProductRegistrationResource.md +52 -0
  79. package/docs/{RedirectFrontendResourceArrayResponse.md → ProductRegistrationResourceArrayResponse.md} +5 -5
  80. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  81. package/package.json +1 -1
  82. package/src/apis/ProductRegistrationApi.ts +238 -0
  83. package/src/apis/index.ts +1 -1
  84. package/src/models/AddressFrontendResource.ts +2 -3
  85. package/src/models/AddressResource.ts +4 -6
  86. package/src/models/GetAllProductRegistrationRequest.ts +137 -0
  87. package/src/models/IndexProductChildRequest.ts +1 -0
  88. package/src/models/IndexProductRegistrationRequest.ts +193 -0
  89. package/src/models/ListAssetsProductRegistrationRequest.ts +158 -0
  90. package/src/models/PaginatedProductRegistrationAssetResourceResponse.ts +90 -0
  91. package/src/models/PaginatedProductRegistrationListResourceResponse.ts +90 -0
  92. package/src/models/PaginatedProductRegistrationResourceResponse.ts +90 -0
  93. package/src/models/ProductRangeFrontendResource.ts +0 -16
  94. package/src/models/ProductRegistrationAssetResource.ts +91 -0
  95. package/src/models/ProductRegistrationAssetResourceArrayResponse.ts +73 -0
  96. package/src/models/ProductRegistrationAssetType.ts +53 -0
  97. package/src/models/ProductRegistrationCustomerResource.ts +108 -0
  98. package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +73 -0
  99. package/src/models/ProductRegistrationListResource.ts +108 -0
  100. package/src/models/ProductRegistrationListResourceArrayResponse.ts +73 -0
  101. package/src/models/ProductRegistrationLiteResource.ts +74 -0
  102. package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +73 -0
  103. package/src/models/ProductRegistrationProductChildResource.ts +93 -0
  104. package/src/models/ProductRegistrationProductChildResourceArrayResponse.ts +73 -0
  105. package/src/models/ProductRegistrationResource.ts +171 -0
  106. package/src/models/ProductRegistrationResourceArrayResponse.ts +73 -0
  107. package/src/models/StoreResource.ts +3 -2
  108. package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
  109. package/src/models/index.ts +19 -8
  110. package/dist/apis/RedirectApi.d.ts +0 -33
  111. package/dist/apis/RedirectApi.js +0 -138
  112. package/dist/models/IndexRedirectRequest.d.ts +0 -112
  113. package/dist/models/IndexRedirectRequest.js +0 -91
  114. package/dist/models/ModelAttributeFrontendResource.d.ts +0 -38
  115. package/dist/models/ModelAttributeFrontendResource.js +0 -55
  116. package/dist/models/ModelAttributeFrontendResourceArrayResponse.d.ts +0 -33
  117. package/dist/models/ModelAttributeFrontendResourceArrayResponse.js +0 -50
  118. package/dist/models/PaginatedRedirectListResourceResponse.d.ts +0 -40
  119. package/dist/models/PaginatedRedirectListResourceResponse.js +0 -57
  120. package/dist/models/RedirectFrontendResource.d.ts +0 -62
  121. package/dist/models/RedirectFrontendResource.js +0 -71
  122. package/dist/models/RedirectFrontendResourceArrayResponse.d.ts +0 -33
  123. package/dist/models/RedirectFrontendResourceArrayResponse.js +0 -50
  124. package/dist/models/RedirectListResource.d.ts +0 -69
  125. package/dist/models/RedirectListResource.js +0 -76
  126. package/dist/models/RedirectListResourceArrayResponse.d.ts +0 -33
  127. package/dist/models/RedirectListResourceArrayResponse.js +0 -50
  128. package/docs/RedirectApi.md +0 -74
  129. package/src/apis/RedirectApi.ts +0 -77
  130. package/src/models/IndexRedirectRequest.ts +0 -168
  131. package/src/models/ModelAttributeFrontendResource.ts +0 -75
  132. package/src/models/ModelAttributeFrontendResourceArrayResponse.ts +0 -73
  133. package/src/models/PaginatedRedirectListResourceResponse.ts +0 -90
  134. package/src/models/RedirectFrontendResource.ts +0 -111
  135. package/src/models/RedirectFrontendResourceArrayResponse.ts +0 -73
  136. package/src/models/RedirectListResource.ts +0 -128
  137. package/src/models/RedirectListResourceArrayResponse.ts +0 -73
@@ -10,8 +10,8 @@ export * from './OverlayTemplateApi';
10
10
  export * from './ProductApi';
11
11
  export * from './ProductCategoryApi';
12
12
  export * from './ProductRangeApi';
13
+ export * from './ProductRegistrationApi';
13
14
  export * from './ProductTypeApi';
14
- export * from './RedirectApi';
15
15
  export * from './SiteApi';
16
16
  export * from './StoreApi';
17
17
  export * from './SupplierApi';
@@ -28,8 +28,8 @@ __exportStar(require("./OverlayTemplateApi"), exports);
28
28
  __exportStar(require("./ProductApi"), exports);
29
29
  __exportStar(require("./ProductCategoryApi"), exports);
30
30
  __exportStar(require("./ProductRangeApi"), exports);
31
+ __exportStar(require("./ProductRegistrationApi"), exports);
31
32
  __exportStar(require("./ProductTypeApi"), exports);
32
- __exportStar(require("./RedirectApi"), exports);
33
33
  __exportStar(require("./SiteApi"), exports);
34
34
  __exportStar(require("./StoreApi"), exports);
35
35
  __exportStar(require("./SupplierApi"), exports);
@@ -32,7 +32,7 @@ export interface AddressFrontendResource {
32
32
  * @type {string}
33
33
  * @memberof AddressFrontendResource
34
34
  */
35
- line2: string;
35
+ line2?: string | null;
36
36
  /**
37
37
  *
38
38
  * @type {string}
@@ -26,8 +26,6 @@ function instanceOfAddressFrontendResource(value) {
26
26
  return false;
27
27
  if (!('line1' in value) || value['line1'] === undefined)
28
28
  return false;
29
- if (!('line2' in value) || value['line2'] === undefined)
30
- return false;
31
29
  if (!('postcode' in value) || value['postcode'] === undefined)
32
30
  return false;
33
31
  if (!('suburb' in value) || value['suburb'] === undefined)
@@ -50,7 +48,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
50
48
  return {
51
49
  'company': json['company'],
52
50
  'line1': json['line1'],
53
- 'line2': json['line2'],
51
+ 'line2': json['line2'] == null ? undefined : json['line2'],
54
52
  'postcode': json['postcode'],
55
53
  'suburb': json['suburb'],
56
54
  'country': json['country'],
@@ -26,7 +26,7 @@ export interface AddressResource {
26
26
  * @type {string}
27
27
  * @memberof AddressResource
28
28
  */
29
- company: string;
29
+ company?: string | null;
30
30
  /**
31
31
  *
32
32
  * @type {string}
@@ -38,7 +38,7 @@ export interface AddressResource {
38
38
  * @type {string}
39
39
  * @memberof AddressResource
40
40
  */
41
- line2: string;
41
+ line2?: string | null;
42
42
  /**
43
43
  *
44
44
  * @type {string}
@@ -22,12 +22,8 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
22
22
  * Check if a given object implements the AddressResource interface.
23
23
  */
24
24
  function instanceOfAddressResource(value) {
25
- if (!('company' in value) || value['company'] === undefined)
26
- return false;
27
25
  if (!('line1' in value) || value['line1'] === undefined)
28
26
  return false;
29
- if (!('line2' in value) || value['line2'] === undefined)
30
- return false;
31
27
  if (!('postcode' in value) || value['postcode'] === undefined)
32
28
  return false;
33
29
  if (!('suburb' in value) || value['suburb'] === undefined)
@@ -49,9 +45,9 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
49
45
  }
50
46
  return {
51
47
  'id': json['id'] == null ? undefined : json['id'],
52
- 'company': json['company'],
48
+ 'company': json['company'] == null ? undefined : json['company'],
53
49
  'line1': json['line_1'],
54
- 'line2': json['line_2'],
50
+ 'line2': json['line_2'] == null ? undefined : json['line_2'],
55
51
  'postcode': json['postcode'],
56
52
  'suburb': json['suburb'],
57
53
  'country': json['country'],
@@ -0,0 +1,88 @@
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 GetAllProductRegistrationRequest
16
+ */
17
+ export interface GetAllProductRegistrationRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GetAllProductRegistrationRequest
22
+ */
23
+ search?: string;
24
+ /**
25
+ *
26
+ * @type {GetAllProductRegistrationRequestSortByEnum}
27
+ * @memberof GetAllProductRegistrationRequest
28
+ */
29
+ sortBy?: GetAllProductRegistrationRequestSortByEnum;
30
+ /**
31
+ *
32
+ * @type {GetAllProductRegistrationRequestSortDirectionEnum}
33
+ * @memberof GetAllProductRegistrationRequest
34
+ */
35
+ sortDirection?: GetAllProductRegistrationRequestSortDirectionEnum;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof GetAllProductRegistrationRequest
40
+ */
41
+ relatedId?: number;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof GetAllProductRegistrationRequest
46
+ */
47
+ relatedType?: string;
48
+ /**
49
+ *
50
+ * @type {boolean}
51
+ * @memberof GetAllProductRegistrationRequest
52
+ */
53
+ includesRelations?: boolean;
54
+ /**
55
+ *
56
+ * @type {Array<string>}
57
+ * @memberof GetAllProductRegistrationRequest
58
+ */
59
+ siteId?: Array<string>;
60
+ }
61
+ /**
62
+ * @export
63
+ */
64
+ export declare const GetAllProductRegistrationRequestSortByEnum: {
65
+ readonly Id: "id";
66
+ readonly CustomerName: "customer-name";
67
+ readonly CustomerEmail: "customer-email";
68
+ readonly CustomerPhone: "customer-phone";
69
+ readonly CreatedAt: "created_at";
70
+ readonly PurchasedDate: "purchased_date";
71
+ };
72
+ export type GetAllProductRegistrationRequestSortByEnum = typeof GetAllProductRegistrationRequestSortByEnum[keyof typeof GetAllProductRegistrationRequestSortByEnum];
73
+ /**
74
+ * @export
75
+ */
76
+ export declare const GetAllProductRegistrationRequestSortDirectionEnum: {
77
+ readonly Asc: "asc";
78
+ readonly Desc: "desc";
79
+ };
80
+ export type GetAllProductRegistrationRequestSortDirectionEnum = typeof GetAllProductRegistrationRequestSortDirectionEnum[keyof typeof GetAllProductRegistrationRequestSortDirectionEnum];
81
+ /**
82
+ * Check if a given object implements the GetAllProductRegistrationRequest interface.
83
+ */
84
+ export declare function instanceOfGetAllProductRegistrationRequest(value: object): value is GetAllProductRegistrationRequest;
85
+ export declare function GetAllProductRegistrationRequestFromJSON(json: any): GetAllProductRegistrationRequest;
86
+ export declare function GetAllProductRegistrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllProductRegistrationRequest;
87
+ export declare function GetAllProductRegistrationRequestToJSON(json: any): GetAllProductRegistrationRequest;
88
+ export declare function GetAllProductRegistrationRequestToJSONTyped(value?: GetAllProductRegistrationRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,80 @@
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.GetAllProductRegistrationRequestSortDirectionEnum = exports.GetAllProductRegistrationRequestSortByEnum = void 0;
17
+ exports.instanceOfGetAllProductRegistrationRequest = instanceOfGetAllProductRegistrationRequest;
18
+ exports.GetAllProductRegistrationRequestFromJSON = GetAllProductRegistrationRequestFromJSON;
19
+ exports.GetAllProductRegistrationRequestFromJSONTyped = GetAllProductRegistrationRequestFromJSONTyped;
20
+ exports.GetAllProductRegistrationRequestToJSON = GetAllProductRegistrationRequestToJSON;
21
+ exports.GetAllProductRegistrationRequestToJSONTyped = GetAllProductRegistrationRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.GetAllProductRegistrationRequestSortByEnum = {
26
+ Id: 'id',
27
+ CustomerName: 'customer-name',
28
+ CustomerEmail: 'customer-email',
29
+ CustomerPhone: 'customer-phone',
30
+ CreatedAt: 'created_at',
31
+ PurchasedDate: 'purchased_date'
32
+ };
33
+ /**
34
+ * @export
35
+ */
36
+ exports.GetAllProductRegistrationRequestSortDirectionEnum = {
37
+ Asc: 'asc',
38
+ Desc: 'desc'
39
+ };
40
+ /**
41
+ * Check if a given object implements the GetAllProductRegistrationRequest interface.
42
+ */
43
+ function instanceOfGetAllProductRegistrationRequest(value) {
44
+ return true;
45
+ }
46
+ function GetAllProductRegistrationRequestFromJSON(json) {
47
+ return GetAllProductRegistrationRequestFromJSONTyped(json, false);
48
+ }
49
+ function GetAllProductRegistrationRequestFromJSONTyped(json, ignoreDiscriminator) {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+ 'search': json['search'] == null ? undefined : json['search'],
55
+ 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
56
+ 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
57
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
58
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
59
+ 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
60
+ 'siteId': json['site_id'] == null ? undefined : json['site_id'],
61
+ };
62
+ }
63
+ function GetAllProductRegistrationRequestToJSON(json) {
64
+ return GetAllProductRegistrationRequestToJSONTyped(json, false);
65
+ }
66
+ function GetAllProductRegistrationRequestToJSONTyped(value, ignoreDiscriminator) {
67
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+ 'search': value['search'],
73
+ 'sortBy': value['sortBy'],
74
+ 'sortDirection': value['sortDirection'],
75
+ 'related_id': value['relatedId'],
76
+ 'related_type': value['relatedType'],
77
+ 'includes_relations': value['includesRelations'],
78
+ 'site_id': value['siteId'],
79
+ };
80
+ }
@@ -176,6 +176,7 @@ export declare const IndexProductChildRequestRelatedTypeEnum: {
176
176
  readonly OverlayTemplate: "overlayTemplate";
177
177
  readonly ProductType: "productType";
178
178
  readonly ProductRange: "productRange";
179
+ readonly ProductRegistration: "productRegistration";
179
180
  readonly Supplier: "supplier";
180
181
  readonly Tag: "tag";
181
182
  readonly Label: "label";
@@ -57,6 +57,7 @@ exports.IndexProductChildRequestRelatedTypeEnum = {
57
57
  OverlayTemplate: 'overlayTemplate',
58
58
  ProductType: 'productType',
59
59
  ProductRange: 'productRange',
60
+ ProductRegistration: 'productRegistration',
60
61
  Supplier: 'supplier',
61
62
  Tag: 'tag',
62
63
  Label: 'label',
@@ -0,0 +1,131 @@
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 IndexProductRegistrationRequest
16
+ */
17
+ export interface IndexProductRegistrationRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof IndexProductRegistrationRequest
22
+ */
23
+ search?: string;
24
+ /**
25
+ *
26
+ * @type {IndexProductRegistrationRequestSortByEnum}
27
+ * @memberof IndexProductRegistrationRequest
28
+ */
29
+ sortBy?: IndexProductRegistrationRequestSortByEnum;
30
+ /**
31
+ *
32
+ * @type {IndexProductRegistrationRequestSortDirectionEnum}
33
+ * @memberof IndexProductRegistrationRequest
34
+ */
35
+ sortDirection?: IndexProductRegistrationRequestSortDirectionEnum;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof IndexProductRegistrationRequest
40
+ */
41
+ perPage?: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof IndexProductRegistrationRequest
46
+ */
47
+ page?: number;
48
+ /**
49
+ *
50
+ * @type {Array<string>}
51
+ * @memberof IndexProductRegistrationRequest
52
+ */
53
+ siteId?: Array<string>;
54
+ /**
55
+ *
56
+ * @type {Date}
57
+ * @memberof IndexProductRegistrationRequest
58
+ */
59
+ beforePurchasedDate?: Date;
60
+ /**
61
+ *
62
+ * @type {Date}
63
+ * @memberof IndexProductRegistrationRequest
64
+ */
65
+ afterPurchasedDate?: Date;
66
+ /**
67
+ *
68
+ * @type {Date}
69
+ * @memberof IndexProductRegistrationRequest
70
+ */
71
+ beforeCreatedAt?: Date;
72
+ /**
73
+ *
74
+ * @type {Date}
75
+ * @memberof IndexProductRegistrationRequest
76
+ */
77
+ afterCreatedAt?: Date;
78
+ /**
79
+ *
80
+ * @type {number}
81
+ * @memberof IndexProductRegistrationRequest
82
+ */
83
+ relatedId?: number;
84
+ /**
85
+ *
86
+ * @type {IndexProductRegistrationRequestRelatedTypeEnum}
87
+ * @memberof IndexProductRegistrationRequest
88
+ */
89
+ relatedType?: IndexProductRegistrationRequestRelatedTypeEnum;
90
+ /**
91
+ *
92
+ * @type {boolean}
93
+ * @memberof IndexProductRegistrationRequest
94
+ */
95
+ includesRelations?: boolean;
96
+ }
97
+ /**
98
+ * @export
99
+ */
100
+ export declare const IndexProductRegistrationRequestSortByEnum: {
101
+ readonly Id: "id";
102
+ readonly CustomerName: "customer-name";
103
+ readonly CustomerEmail: "customer-email";
104
+ readonly CustomerPhone: "customer-phone";
105
+ readonly CreatedAt: "created_at";
106
+ readonly PurchasedDate: "purchased_date";
107
+ };
108
+ export type IndexProductRegistrationRequestSortByEnum = typeof IndexProductRegistrationRequestSortByEnum[keyof typeof IndexProductRegistrationRequestSortByEnum];
109
+ /**
110
+ * @export
111
+ */
112
+ export declare const IndexProductRegistrationRequestSortDirectionEnum: {
113
+ readonly Asc: "asc";
114
+ readonly Desc: "desc";
115
+ };
116
+ export type IndexProductRegistrationRequestSortDirectionEnum = typeof IndexProductRegistrationRequestSortDirectionEnum[keyof typeof IndexProductRegistrationRequestSortDirectionEnum];
117
+ /**
118
+ * @export
119
+ */
120
+ export declare const IndexProductRegistrationRequestRelatedTypeEnum: {
121
+ readonly ProductChild: "productChild";
122
+ };
123
+ export type IndexProductRegistrationRequestRelatedTypeEnum = typeof IndexProductRegistrationRequestRelatedTypeEnum[keyof typeof IndexProductRegistrationRequestRelatedTypeEnum];
124
+ /**
125
+ * Check if a given object implements the IndexProductRegistrationRequest interface.
126
+ */
127
+ export declare function instanceOfIndexProductRegistrationRequest(value: object): value is IndexProductRegistrationRequest;
128
+ export declare function IndexProductRegistrationRequestFromJSON(json: any): IndexProductRegistrationRequest;
129
+ export declare function IndexProductRegistrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexProductRegistrationRequest;
130
+ export declare function IndexProductRegistrationRequestToJSON(json: any): IndexProductRegistrationRequest;
131
+ export declare function IndexProductRegistrationRequestToJSONTyped(value?: IndexProductRegistrationRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,98 @@
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.IndexProductRegistrationRequestRelatedTypeEnum = exports.IndexProductRegistrationRequestSortDirectionEnum = exports.IndexProductRegistrationRequestSortByEnum = void 0;
17
+ exports.instanceOfIndexProductRegistrationRequest = instanceOfIndexProductRegistrationRequest;
18
+ exports.IndexProductRegistrationRequestFromJSON = IndexProductRegistrationRequestFromJSON;
19
+ exports.IndexProductRegistrationRequestFromJSONTyped = IndexProductRegistrationRequestFromJSONTyped;
20
+ exports.IndexProductRegistrationRequestToJSON = IndexProductRegistrationRequestToJSON;
21
+ exports.IndexProductRegistrationRequestToJSONTyped = IndexProductRegistrationRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.IndexProductRegistrationRequestSortByEnum = {
26
+ Id: 'id',
27
+ CustomerName: 'customer-name',
28
+ CustomerEmail: 'customer-email',
29
+ CustomerPhone: 'customer-phone',
30
+ CreatedAt: 'created_at',
31
+ PurchasedDate: 'purchased_date'
32
+ };
33
+ /**
34
+ * @export
35
+ */
36
+ exports.IndexProductRegistrationRequestSortDirectionEnum = {
37
+ Asc: 'asc',
38
+ Desc: 'desc'
39
+ };
40
+ /**
41
+ * @export
42
+ */
43
+ exports.IndexProductRegistrationRequestRelatedTypeEnum = {
44
+ ProductChild: 'productChild'
45
+ };
46
+ /**
47
+ * Check if a given object implements the IndexProductRegistrationRequest interface.
48
+ */
49
+ function instanceOfIndexProductRegistrationRequest(value) {
50
+ return true;
51
+ }
52
+ function IndexProductRegistrationRequestFromJSON(json) {
53
+ return IndexProductRegistrationRequestFromJSONTyped(json, false);
54
+ }
55
+ function IndexProductRegistrationRequestFromJSONTyped(json, ignoreDiscriminator) {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+ 'search': json['search'] == null ? undefined : json['search'],
61
+ 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
62
+ 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
63
+ 'perPage': json['per_page'] == null ? undefined : json['per_page'],
64
+ 'page': json['page'] == null ? undefined : json['page'],
65
+ 'siteId': json['site_id'] == null ? undefined : json['site_id'],
66
+ 'beforePurchasedDate': json['before_purchased_date'] == null ? undefined : (new Date(json['before_purchased_date'])),
67
+ 'afterPurchasedDate': json['after_purchased_date'] == null ? undefined : (new Date(json['after_purchased_date'])),
68
+ 'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
69
+ 'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
70
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
71
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
72
+ 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
73
+ };
74
+ }
75
+ function IndexProductRegistrationRequestToJSON(json) {
76
+ return IndexProductRegistrationRequestToJSONTyped(json, false);
77
+ }
78
+ function IndexProductRegistrationRequestToJSONTyped(value, ignoreDiscriminator) {
79
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+ return {
84
+ 'search': value['search'],
85
+ 'sortBy': value['sortBy'],
86
+ 'sortDirection': value['sortDirection'],
87
+ 'per_page': value['perPage'],
88
+ 'page': value['page'],
89
+ 'site_id': value['siteId'],
90
+ 'before_purchased_date': value['beforePurchasedDate'] == null ? value['beforePurchasedDate'] : value['beforePurchasedDate'].toISOString(),
91
+ 'after_purchased_date': value['afterPurchasedDate'] == null ? value['afterPurchasedDate'] : value['afterPurchasedDate'].toISOString(),
92
+ 'before_created_at': value['beforeCreatedAt'] == null ? value['beforeCreatedAt'] : value['beforeCreatedAt'].toISOString(),
93
+ 'after_created_at': value['afterCreatedAt'] == null ? value['afterCreatedAt'] : value['afterCreatedAt'].toISOString(),
94
+ 'related_id': value['relatedId'],
95
+ 'related_type': value['relatedType'],
96
+ 'includes_relations': value['includesRelations'],
97
+ };
98
+ }
@@ -0,0 +1,103 @@
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 ListAssetsProductRegistrationRequest
16
+ */
17
+ export interface ListAssetsProductRegistrationRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ListAssetsProductRegistrationRequest
22
+ */
23
+ search?: string;
24
+ /**
25
+ *
26
+ * @type {ListAssetsProductRegistrationRequestSortByEnum}
27
+ * @memberof ListAssetsProductRegistrationRequest
28
+ */
29
+ sortBy?: ListAssetsProductRegistrationRequestSortByEnum;
30
+ /**
31
+ *
32
+ * @type {ListAssetsProductRegistrationRequestSortDirectionEnum}
33
+ * @memberof ListAssetsProductRegistrationRequest
34
+ */
35
+ sortDirection?: ListAssetsProductRegistrationRequestSortDirectionEnum;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof ListAssetsProductRegistrationRequest
40
+ */
41
+ perPage?: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof ListAssetsProductRegistrationRequest
46
+ */
47
+ page?: number;
48
+ /**
49
+ *
50
+ * @type {Array<string>}
51
+ * @memberof ListAssetsProductRegistrationRequest
52
+ */
53
+ productRegistrationId?: Array<string>;
54
+ /**
55
+ *
56
+ * @type {Array<string>}
57
+ * @memberof ListAssetsProductRegistrationRequest
58
+ */
59
+ type?: Array<string>;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof ListAssetsProductRegistrationRequest
64
+ */
65
+ relatedId?: number;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof ListAssetsProductRegistrationRequest
70
+ */
71
+ relatedType?: string;
72
+ /**
73
+ *
74
+ * @type {boolean}
75
+ * @memberof ListAssetsProductRegistrationRequest
76
+ */
77
+ includesRelations?: boolean;
78
+ }
79
+ /**
80
+ * @export
81
+ */
82
+ export declare const ListAssetsProductRegistrationRequestSortByEnum: {
83
+ readonly Id: "id";
84
+ readonly Type: "type";
85
+ readonly CreatedAt: "created_at";
86
+ };
87
+ export type ListAssetsProductRegistrationRequestSortByEnum = typeof ListAssetsProductRegistrationRequestSortByEnum[keyof typeof ListAssetsProductRegistrationRequestSortByEnum];
88
+ /**
89
+ * @export
90
+ */
91
+ export declare const ListAssetsProductRegistrationRequestSortDirectionEnum: {
92
+ readonly Asc: "asc";
93
+ readonly Desc: "desc";
94
+ };
95
+ export type ListAssetsProductRegistrationRequestSortDirectionEnum = typeof ListAssetsProductRegistrationRequestSortDirectionEnum[keyof typeof ListAssetsProductRegistrationRequestSortDirectionEnum];
96
+ /**
97
+ * Check if a given object implements the ListAssetsProductRegistrationRequest interface.
98
+ */
99
+ export declare function instanceOfListAssetsProductRegistrationRequest(value: object): value is ListAssetsProductRegistrationRequest;
100
+ export declare function ListAssetsProductRegistrationRequestFromJSON(json: any): ListAssetsProductRegistrationRequest;
101
+ export declare function ListAssetsProductRegistrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAssetsProductRegistrationRequest;
102
+ export declare function ListAssetsProductRegistrationRequestToJSON(json: any): ListAssetsProductRegistrationRequest;
103
+ export declare function ListAssetsProductRegistrationRequestToJSONTyped(value?: ListAssetsProductRegistrationRequest | null, ignoreDiscriminator?: boolean): any;