@digital8/lighting-illusions-ts-sdk 0.0.1491 → 0.0.1493
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 +14 -40
- package/README.md +9 -25
- package/dist/apis/RedirectApi.d.ts +33 -0
- package/dist/apis/RedirectApi.js +138 -0
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/IndexProductChildRequest.d.ts +0 -1
- package/dist/models/IndexProductChildRequest.js +0 -1
- package/dist/models/IndexRedirectRequest.d.ts +112 -0
- package/dist/models/IndexRedirectRequest.js +91 -0
- package/dist/models/PaginatedRedirectListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedRedirectListResourceResponse.js +57 -0
- package/dist/models/RedirectFrontendResource.d.ts +62 -0
- package/dist/models/RedirectFrontendResource.js +71 -0
- package/dist/models/RedirectFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/RedirectFrontendResourceArrayResponse.js +50 -0
- package/dist/models/RedirectListResource.d.ts +69 -0
- package/dist/models/RedirectListResource.js +76 -0
- package/dist/models/RedirectListResourceArrayResponse.d.ts +33 -0
- package/dist/models/RedirectListResourceArrayResponse.js +50 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/index.d.ts +6 -19
- package/dist/models/index.js +6 -19
- package/docs/{GetAllProductRegistrationRequest.md → IndexRedirectRequest.md} +12 -6
- package/docs/{PaginatedProductRegistrationResourceResponse.md → PaginatedRedirectListResourceResponse.md} +5 -5
- package/docs/RedirectApi.md +74 -0
- package/docs/{ProductRegistrationAssetResource.md → RedirectFrontendResource.md} +14 -8
- package/docs/{ProductRegistrationResourceArrayResponse.md → RedirectFrontendResourceArrayResponse.md} +5 -5
- package/docs/{ProductRegistrationCustomerResource.md → RedirectListResource.md} +16 -14
- package/docs/{ProductRegistrationLiteResource.md → RedirectListResourceArrayResponse.md} +6 -8
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/package.json +1 -1
- package/src/apis/RedirectApi.ts +77 -0
- package/src/apis/index.ts +1 -1
- package/src/models/AddressResource.ts +2 -3
- package/src/models/IndexProductChildRequest.ts +0 -1
- package/src/models/IndexRedirectRequest.ts +168 -0
- package/src/models/PaginatedRedirectListResourceResponse.ts +90 -0
- package/src/models/RedirectFrontendResource.ts +111 -0
- package/src/models/RedirectFrontendResourceArrayResponse.ts +73 -0
- package/src/models/RedirectListResource.ts +128 -0
- package/src/models/RedirectListResourceArrayResponse.ts +73 -0
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/index.ts +6 -19
- package/dist/apis/ProductRegistrationApi.d.ts +0 -79
- package/dist/apis/ProductRegistrationApi.js +0 -316
- package/dist/models/GetAllProductRegistrationRequest.d.ts +0 -88
- package/dist/models/GetAllProductRegistrationRequest.js +0 -80
- package/dist/models/IndexProductRegistrationRequest.d.ts +0 -131
- package/dist/models/IndexProductRegistrationRequest.js +0 -98
- package/dist/models/ListAssetsProductRegistrationRequest.d.ts +0 -103
- package/dist/models/ListAssetsProductRegistrationRequest.js +0 -83
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRegistrationListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRegistrationListResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRegistrationResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRegistrationResourceResponse.js +0 -57
- package/dist/models/ProductRegistrationAssetResource.d.ts +0 -45
- package/dist/models/ProductRegistrationAssetResource.js +0 -58
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationAssetType.d.ts +0 -25
- package/dist/models/ProductRegistrationAssetType.js +0 -51
- package/dist/models/ProductRegistrationCustomerResource.d.ts +0 -62
- package/dist/models/ProductRegistrationCustomerResource.js +0 -65
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationListResource.d.ts +0 -57
- package/dist/models/ProductRegistrationListResource.js +0 -64
- package/dist/models/ProductRegistrationListResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationListResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationLiteResource.d.ts +0 -38
- package/dist/models/ProductRegistrationLiteResource.js +0 -53
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationProductChildResource.d.ts +0 -50
- package/dist/models/ProductRegistrationProductChildResource.js +0 -63
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationResource.d.ts +0 -88
- package/dist/models/ProductRegistrationResource.js +0 -79
- package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationResourceArrayResponse.js +0 -50
- package/docs/IndexProductRegistrationRequest.md +0 -58
- package/docs/ListAssetsProductRegistrationRequest.md +0 -52
- package/docs/PaginatedProductRegistrationAssetResourceResponse.md +0 -36
- package/docs/PaginatedProductRegistrationListResourceResponse.md +0 -36
- package/docs/ProductRegistrationApi.md +0 -275
- package/docs/ProductRegistrationAssetResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationAssetType.md +0 -32
- package/docs/ProductRegistrationCustomerResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationListResource.md +0 -42
- package/docs/ProductRegistrationListResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationLiteResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationProductChildResource.md +0 -40
- package/docs/ProductRegistrationProductChildResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationResource.md +0 -52
- package/src/apis/ProductRegistrationApi.ts +0 -238
- package/src/models/GetAllProductRegistrationRequest.ts +0 -137
- package/src/models/IndexProductRegistrationRequest.ts +0 -193
- package/src/models/ListAssetsProductRegistrationRequest.ts +0 -158
- package/src/models/PaginatedProductRegistrationAssetResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRegistrationListResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRegistrationResourceResponse.ts +0 -90
- package/src/models/ProductRegistrationAssetResource.ts +0 -91
- package/src/models/ProductRegistrationAssetResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationAssetType.ts +0 -53
- package/src/models/ProductRegistrationCustomerResource.ts +0 -108
- package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationListResource.ts +0 -108
- package/src/models/ProductRegistrationListResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationLiteResource.ts +0 -74
- package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationProductChildResource.ts +0 -93
- package/src/models/ProductRegistrationProductChildResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationResource.ts +0 -157
- package/src/models/ProductRegistrationResourceArrayResponse.ts +0 -73
|
@@ -1,79 +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.instanceOfProductRegistrationResource = instanceOfProductRegistrationResource;
|
|
17
|
-
exports.ProductRegistrationResourceFromJSON = ProductRegistrationResourceFromJSON;
|
|
18
|
-
exports.ProductRegistrationResourceFromJSONTyped = ProductRegistrationResourceFromJSONTyped;
|
|
19
|
-
exports.ProductRegistrationResourceToJSON = ProductRegistrationResourceToJSON;
|
|
20
|
-
exports.ProductRegistrationResourceToJSONTyped = ProductRegistrationResourceToJSONTyped;
|
|
21
|
-
var AddressResource_1 = require("./AddressResource");
|
|
22
|
-
var ProductRegistrationCustomerResource_1 = require("./ProductRegistrationCustomerResource");
|
|
23
|
-
/**
|
|
24
|
-
* Check if a given object implements the ProductRegistrationResource interface.
|
|
25
|
-
*/
|
|
26
|
-
function instanceOfProductRegistrationResource(value) {
|
|
27
|
-
if (!('purchasedDate' in value) || value['purchasedDate'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('customer' in value) || value['customer'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('address' in value) || value['address'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
if (!('productChildren' in value) || value['productChildren'] === undefined)
|
|
34
|
-
return false;
|
|
35
|
-
if (!('assets' in value) || value['assets'] === undefined)
|
|
36
|
-
return false;
|
|
37
|
-
return true;
|
|
38
|
-
}
|
|
39
|
-
function ProductRegistrationResourceFromJSON(json) {
|
|
40
|
-
return ProductRegistrationResourceFromJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function ProductRegistrationResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
48
|
-
'purchasedDate': (new Date(json['purchasedDate'])),
|
|
49
|
-
'customer': (0, ProductRegistrationCustomerResource_1.ProductRegistrationCustomerResourceFromJSON)(json['customer']),
|
|
50
|
-
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
51
|
-
'productChildren': json['productChildren'],
|
|
52
|
-
'assets': json['assets'],
|
|
53
|
-
'omnisendId': json['omnisendId'] == null ? undefined : json['omnisendId'],
|
|
54
|
-
'omnisendSyncStatus': json['omnisendSyncStatus'] == null ? undefined : json['omnisendSyncStatus'],
|
|
55
|
-
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
56
|
-
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
function ProductRegistrationResourceToJSON(json) {
|
|
60
|
-
return ProductRegistrationResourceToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
function ProductRegistrationResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
63
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
64
|
-
if (value == null) {
|
|
65
|
-
return value;
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
'id': value['id'],
|
|
69
|
-
'purchasedDate': value['purchasedDate'].toISOString(),
|
|
70
|
-
'customer': (0, ProductRegistrationCustomerResource_1.ProductRegistrationCustomerResourceToJSON)(value['customer']),
|
|
71
|
-
'address': (0, AddressResource_1.AddressResourceToJSON)(value['address']),
|
|
72
|
-
'productChildren': value['productChildren'],
|
|
73
|
-
'assets': value['assets'],
|
|
74
|
-
'omnisendId': value['omnisendId'],
|
|
75
|
-
'omnisendSyncStatus': value['omnisendSyncStatus'],
|
|
76
|
-
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
77
|
-
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
78
|
-
};
|
|
79
|
-
}
|
|
@@ -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 type { ProductRegistrationResource } from './ProductRegistrationResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ProductRegistrationResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface ProductRegistrationResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<ProductRegistrationResource>}
|
|
22
|
-
* @memberof ProductRegistrationResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<ProductRegistrationResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the ProductRegistrationResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfProductRegistrationResourceArrayResponse(value: object): value is ProductRegistrationResourceArrayResponse;
|
|
30
|
-
export declare function ProductRegistrationResourceArrayResponseFromJSON(json: any): ProductRegistrationResourceArrayResponse;
|
|
31
|
-
export declare function ProductRegistrationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRegistrationResourceArrayResponse;
|
|
32
|
-
export declare function ProductRegistrationResourceArrayResponseToJSON(json: any): ProductRegistrationResourceArrayResponse;
|
|
33
|
-
export declare function ProductRegistrationResourceArrayResponseToJSONTyped(value?: ProductRegistrationResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +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.instanceOfProductRegistrationResourceArrayResponse = instanceOfProductRegistrationResourceArrayResponse;
|
|
17
|
-
exports.ProductRegistrationResourceArrayResponseFromJSON = ProductRegistrationResourceArrayResponseFromJSON;
|
|
18
|
-
exports.ProductRegistrationResourceArrayResponseFromJSONTyped = ProductRegistrationResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.ProductRegistrationResourceArrayResponseToJSON = ProductRegistrationResourceArrayResponseToJSON;
|
|
20
|
-
exports.ProductRegistrationResourceArrayResponseToJSONTyped = ProductRegistrationResourceArrayResponseToJSONTyped;
|
|
21
|
-
var ProductRegistrationResource_1 = require("./ProductRegistrationResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the ProductRegistrationResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfProductRegistrationResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function ProductRegistrationResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return ProductRegistrationResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function ProductRegistrationResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(ProductRegistrationResource_1.ProductRegistrationResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function ProductRegistrationResourceArrayResponseToJSON(json) {
|
|
40
|
-
return ProductRegistrationResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function ProductRegistrationResourceArrayResponseToJSONTyped(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(ProductRegistrationResource_1.ProductRegistrationResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# IndexProductRegistrationRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`search` | string
|
|
10
|
-
`sortBy` | string
|
|
11
|
-
`sortDirection` | string
|
|
12
|
-
`perPage` | number
|
|
13
|
-
`page` | number
|
|
14
|
-
`siteId` | Array<string>
|
|
15
|
-
`beforePurchasedDate` | Date
|
|
16
|
-
`afterPurchasedDate` | Date
|
|
17
|
-
`beforeCreatedAt` | Date
|
|
18
|
-
`afterCreatedAt` | Date
|
|
19
|
-
`relatedId` | number
|
|
20
|
-
`relatedType` | string
|
|
21
|
-
`includesRelations` | boolean
|
|
22
|
-
|
|
23
|
-
## Example
|
|
24
|
-
|
|
25
|
-
```typescript
|
|
26
|
-
import type { IndexProductRegistrationRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
27
|
-
|
|
28
|
-
// TODO: Update the object below with actual values
|
|
29
|
-
const example = {
|
|
30
|
-
"search": null,
|
|
31
|
-
"sortBy": null,
|
|
32
|
-
"sortDirection": null,
|
|
33
|
-
"perPage": null,
|
|
34
|
-
"page": null,
|
|
35
|
-
"siteId": null,
|
|
36
|
-
"beforePurchasedDate": null,
|
|
37
|
-
"afterPurchasedDate": null,
|
|
38
|
-
"beforeCreatedAt": null,
|
|
39
|
-
"afterCreatedAt": null,
|
|
40
|
-
"relatedId": null,
|
|
41
|
-
"relatedType": null,
|
|
42
|
-
"includesRelations": null,
|
|
43
|
-
} satisfies IndexProductRegistrationRequest
|
|
44
|
-
|
|
45
|
-
console.log(example)
|
|
46
|
-
|
|
47
|
-
// Convert the instance to a JSON string
|
|
48
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
49
|
-
console.log(exampleJSON)
|
|
50
|
-
|
|
51
|
-
// Parse the JSON string back to an object
|
|
52
|
-
const exampleParsed = JSON.parse(exampleJSON) as IndexProductRegistrationRequest
|
|
53
|
-
console.log(exampleParsed)
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
57
|
-
|
|
58
|
-
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ListAssetsProductRegistrationRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`search` | string
|
|
10
|
-
`sortBy` | string
|
|
11
|
-
`sortDirection` | string
|
|
12
|
-
`perPage` | number
|
|
13
|
-
`page` | number
|
|
14
|
-
`productRegistrationId` | Array<string>
|
|
15
|
-
`type` | Array<string>
|
|
16
|
-
`relatedId` | number
|
|
17
|
-
`relatedType` | string
|
|
18
|
-
`includesRelations` | boolean
|
|
19
|
-
|
|
20
|
-
## Example
|
|
21
|
-
|
|
22
|
-
```typescript
|
|
23
|
-
import type { ListAssetsProductRegistrationRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
24
|
-
|
|
25
|
-
// TODO: Update the object below with actual values
|
|
26
|
-
const example = {
|
|
27
|
-
"search": null,
|
|
28
|
-
"sortBy": null,
|
|
29
|
-
"sortDirection": null,
|
|
30
|
-
"perPage": null,
|
|
31
|
-
"page": null,
|
|
32
|
-
"productRegistrationId": null,
|
|
33
|
-
"type": null,
|
|
34
|
-
"relatedId": null,
|
|
35
|
-
"relatedType": null,
|
|
36
|
-
"includesRelations": null,
|
|
37
|
-
} satisfies ListAssetsProductRegistrationRequest
|
|
38
|
-
|
|
39
|
-
console.log(example)
|
|
40
|
-
|
|
41
|
-
// Convert the instance to a JSON string
|
|
42
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
43
|
-
console.log(exampleJSON)
|
|
44
|
-
|
|
45
|
-
// Parse the JSON string back to an object
|
|
46
|
-
const exampleParsed = JSON.parse(exampleJSON) as ListAssetsProductRegistrationRequest
|
|
47
|
-
console.log(exampleParsed)
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
51
|
-
|
|
52
|
-
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# PaginatedProductRegistrationAssetResourceResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<ProductRegistrationAssetResource>](ProductRegistrationAssetResource.md)
|
|
10
|
-
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import type { PaginatedProductRegistrationAssetResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
-
|
|
17
|
-
// TODO: Update the object below with actual values
|
|
18
|
-
const example = {
|
|
19
|
-
"data": null,
|
|
20
|
-
"meta": null,
|
|
21
|
-
} satisfies PaginatedProductRegistrationAssetResourceResponse
|
|
22
|
-
|
|
23
|
-
console.log(example)
|
|
24
|
-
|
|
25
|
-
// Convert the instance to a JSON string
|
|
26
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
-
console.log(exampleJSON)
|
|
28
|
-
|
|
29
|
-
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as PaginatedProductRegistrationAssetResourceResponse
|
|
31
|
-
console.log(exampleParsed)
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
-
|
|
36
|
-
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# PaginatedProductRegistrationListResourceResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<ProductRegistrationListResource>](ProductRegistrationListResource.md)
|
|
10
|
-
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import type { PaginatedProductRegistrationListResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
-
|
|
17
|
-
// TODO: Update the object below with actual values
|
|
18
|
-
const example = {
|
|
19
|
-
"data": null,
|
|
20
|
-
"meta": null,
|
|
21
|
-
} satisfies PaginatedProductRegistrationListResourceResponse
|
|
22
|
-
|
|
23
|
-
console.log(example)
|
|
24
|
-
|
|
25
|
-
// Convert the instance to a JSON string
|
|
26
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
-
console.log(exampleJSON)
|
|
28
|
-
|
|
29
|
-
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as PaginatedProductRegistrationListResourceResponse
|
|
31
|
-
console.log(exampleParsed)
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
-
|
|
36
|
-
|
|
@@ -1,275 +0,0 @@
|
|
|
1
|
-
# ProductRegistrationApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *http://localhost/api*
|
|
4
|
-
|
|
5
|
-
| Method | HTTP request | Description |
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
| [**getAllProductRegistration**](ProductRegistrationApi.md#getallproductregistrationoperation) | **POST** /admin-api/product-registration/all | Auto-generated: getAllProductRegistration |
|
|
8
|
-
| [**indexProductRegistration**](ProductRegistrationApi.md#indexproductregistrationoperation) | **POST** /admin-api/product-registration/list | Auto-generated: indexProductRegistration |
|
|
9
|
-
| [**listAssetsProductRegistration**](ProductRegistrationApi.md#listassetsproductregistrationoperation) | **POST** /admin-api/product-registration/{productRegistration}/assets | Auto-generated: listAssetsProductRegistration |
|
|
10
|
-
| [**showProductRegistration**](ProductRegistrationApi.md#showproductregistration) | **GET** /admin-api/product-registration/{productRegistration} | Auto-generated: showProductRegistration |
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## getAllProductRegistration
|
|
15
|
-
|
|
16
|
-
> ProductRegistrationLiteResourceArrayResponse getAllProductRegistration(getAllProductRegistrationRequest)
|
|
17
|
-
|
|
18
|
-
Auto-generated: getAllProductRegistration
|
|
19
|
-
|
|
20
|
-
### Example
|
|
21
|
-
|
|
22
|
-
```ts
|
|
23
|
-
import {
|
|
24
|
-
Configuration,
|
|
25
|
-
ProductRegistrationApi,
|
|
26
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
27
|
-
import type { GetAllProductRegistrationOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
28
|
-
|
|
29
|
-
async function example() {
|
|
30
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
31
|
-
const api = new ProductRegistrationApi();
|
|
32
|
-
|
|
33
|
-
const body = {
|
|
34
|
-
// GetAllProductRegistrationRequest (optional)
|
|
35
|
-
getAllProductRegistrationRequest: ...,
|
|
36
|
-
} satisfies GetAllProductRegistrationOperationRequest;
|
|
37
|
-
|
|
38
|
-
try {
|
|
39
|
-
const data = await api.getAllProductRegistration(body);
|
|
40
|
-
console.log(data);
|
|
41
|
-
} catch (error) {
|
|
42
|
-
console.error(error);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// Run the test
|
|
47
|
-
example().catch(console.error);
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### Parameters
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
| Name | Type | Description | Notes |
|
|
54
|
-
|------------- | ------------- | ------------- | -------------|
|
|
55
|
-
| **getAllProductRegistrationRequest** | [GetAllProductRegistrationRequest](GetAllProductRegistrationRequest.md) | | [Optional] |
|
|
56
|
-
|
|
57
|
-
### Return type
|
|
58
|
-
|
|
59
|
-
[**ProductRegistrationLiteResourceArrayResponse**](ProductRegistrationLiteResourceArrayResponse.md)
|
|
60
|
-
|
|
61
|
-
### Authorization
|
|
62
|
-
|
|
63
|
-
No authorization required
|
|
64
|
-
|
|
65
|
-
### HTTP request headers
|
|
66
|
-
|
|
67
|
-
- **Content-Type**: `application/json`
|
|
68
|
-
- **Accept**: `application/json`
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
### HTTP response details
|
|
72
|
-
| Status code | Description | Response headers |
|
|
73
|
-
|-------------|-------------|------------------|
|
|
74
|
-
| **200** | Successful resource response | - |
|
|
75
|
-
|
|
76
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
## indexProductRegistration
|
|
80
|
-
|
|
81
|
-
> PaginatedProductRegistrationListResourceResponse indexProductRegistration(indexProductRegistrationRequest)
|
|
82
|
-
|
|
83
|
-
Auto-generated: indexProductRegistration
|
|
84
|
-
|
|
85
|
-
### Example
|
|
86
|
-
|
|
87
|
-
```ts
|
|
88
|
-
import {
|
|
89
|
-
Configuration,
|
|
90
|
-
ProductRegistrationApi,
|
|
91
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
92
|
-
import type { IndexProductRegistrationOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
93
|
-
|
|
94
|
-
async function example() {
|
|
95
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
96
|
-
const api = new ProductRegistrationApi();
|
|
97
|
-
|
|
98
|
-
const body = {
|
|
99
|
-
// IndexProductRegistrationRequest (optional)
|
|
100
|
-
indexProductRegistrationRequest: ...,
|
|
101
|
-
} satisfies IndexProductRegistrationOperationRequest;
|
|
102
|
-
|
|
103
|
-
try {
|
|
104
|
-
const data = await api.indexProductRegistration(body);
|
|
105
|
-
console.log(data);
|
|
106
|
-
} catch (error) {
|
|
107
|
-
console.error(error);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
// Run the test
|
|
112
|
-
example().catch(console.error);
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
### Parameters
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
| Name | Type | Description | Notes |
|
|
119
|
-
|------------- | ------------- | ------------- | -------------|
|
|
120
|
-
| **indexProductRegistrationRequest** | [IndexProductRegistrationRequest](IndexProductRegistrationRequest.md) | | [Optional] |
|
|
121
|
-
|
|
122
|
-
### Return type
|
|
123
|
-
|
|
124
|
-
[**PaginatedProductRegistrationListResourceResponse**](PaginatedProductRegistrationListResourceResponse.md)
|
|
125
|
-
|
|
126
|
-
### Authorization
|
|
127
|
-
|
|
128
|
-
No authorization required
|
|
129
|
-
|
|
130
|
-
### HTTP request headers
|
|
131
|
-
|
|
132
|
-
- **Content-Type**: `application/json`
|
|
133
|
-
- **Accept**: `application/json`
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
### HTTP response details
|
|
137
|
-
| Status code | Description | Response headers |
|
|
138
|
-
|-------------|-------------|------------------|
|
|
139
|
-
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\ProductRegistrationListResource[]>> | - |
|
|
140
|
-
|
|
141
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
## listAssetsProductRegistration
|
|
145
|
-
|
|
146
|
-
> PaginatedProductRegistrationAssetResourceResponse listAssetsProductRegistration(productRegistration, listAssetsProductRegistrationRequest)
|
|
147
|
-
|
|
148
|
-
Auto-generated: listAssetsProductRegistration
|
|
149
|
-
|
|
150
|
-
### Example
|
|
151
|
-
|
|
152
|
-
```ts
|
|
153
|
-
import {
|
|
154
|
-
Configuration,
|
|
155
|
-
ProductRegistrationApi,
|
|
156
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
157
|
-
import type { ListAssetsProductRegistrationOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
158
|
-
|
|
159
|
-
async function example() {
|
|
160
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
161
|
-
const api = new ProductRegistrationApi();
|
|
162
|
-
|
|
163
|
-
const body = {
|
|
164
|
-
// number | The id of the productRegistration
|
|
165
|
-
productRegistration: 56,
|
|
166
|
-
// ListAssetsProductRegistrationRequest (optional)
|
|
167
|
-
listAssetsProductRegistrationRequest: ...,
|
|
168
|
-
} satisfies ListAssetsProductRegistrationOperationRequest;
|
|
169
|
-
|
|
170
|
-
try {
|
|
171
|
-
const data = await api.listAssetsProductRegistration(body);
|
|
172
|
-
console.log(data);
|
|
173
|
-
} catch (error) {
|
|
174
|
-
console.error(error);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
// Run the test
|
|
179
|
-
example().catch(console.error);
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
### Parameters
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
| Name | Type | Description | Notes |
|
|
186
|
-
|------------- | ------------- | ------------- | -------------|
|
|
187
|
-
| **productRegistration** | `number` | The id of the productRegistration | [Defaults to `undefined`] |
|
|
188
|
-
| **listAssetsProductRegistrationRequest** | [ListAssetsProductRegistrationRequest](ListAssetsProductRegistrationRequest.md) | | [Optional] |
|
|
189
|
-
|
|
190
|
-
### Return type
|
|
191
|
-
|
|
192
|
-
[**PaginatedProductRegistrationAssetResourceResponse**](PaginatedProductRegistrationAssetResourceResponse.md)
|
|
193
|
-
|
|
194
|
-
### Authorization
|
|
195
|
-
|
|
196
|
-
No authorization required
|
|
197
|
-
|
|
198
|
-
### HTTP request headers
|
|
199
|
-
|
|
200
|
-
- **Content-Type**: `application/json`
|
|
201
|
-
- **Accept**: `application/json`
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
### HTTP response details
|
|
205
|
-
| Status code | Description | Response headers |
|
|
206
|
-
|-------------|-------------|------------------|
|
|
207
|
-
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\ProductRegistrationAssetResource[]>> | - |
|
|
208
|
-
|
|
209
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
## showProductRegistration
|
|
213
|
-
|
|
214
|
-
> ProductRegistrationResource showProductRegistration(productRegistration)
|
|
215
|
-
|
|
216
|
-
Auto-generated: showProductRegistration
|
|
217
|
-
|
|
218
|
-
### Example
|
|
219
|
-
|
|
220
|
-
```ts
|
|
221
|
-
import {
|
|
222
|
-
Configuration,
|
|
223
|
-
ProductRegistrationApi,
|
|
224
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
225
|
-
import type { ShowProductRegistrationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
226
|
-
|
|
227
|
-
async function example() {
|
|
228
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
229
|
-
const api = new ProductRegistrationApi();
|
|
230
|
-
|
|
231
|
-
const body = {
|
|
232
|
-
// number | The id of the productRegistration
|
|
233
|
-
productRegistration: 56,
|
|
234
|
-
} satisfies ShowProductRegistrationRequest;
|
|
235
|
-
|
|
236
|
-
try {
|
|
237
|
-
const data = await api.showProductRegistration(body);
|
|
238
|
-
console.log(data);
|
|
239
|
-
} catch (error) {
|
|
240
|
-
console.error(error);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
// Run the test
|
|
245
|
-
example().catch(console.error);
|
|
246
|
-
```
|
|
247
|
-
|
|
248
|
-
### Parameters
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
| Name | Type | Description | Notes |
|
|
252
|
-
|------------- | ------------- | ------------- | -------------|
|
|
253
|
-
| **productRegistration** | `number` | The id of the productRegistration | [Defaults to `undefined`] |
|
|
254
|
-
|
|
255
|
-
### Return type
|
|
256
|
-
|
|
257
|
-
[**ProductRegistrationResource**](ProductRegistrationResource.md)
|
|
258
|
-
|
|
259
|
-
### Authorization
|
|
260
|
-
|
|
261
|
-
No authorization required
|
|
262
|
-
|
|
263
|
-
### HTTP request headers
|
|
264
|
-
|
|
265
|
-
- **Content-Type**: Not defined
|
|
266
|
-
- **Accept**: `application/json`
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
### HTTP response details
|
|
270
|
-
| Status code | Description | Response headers |
|
|
271
|
-
|-------------|-------------|------------------|
|
|
272
|
-
| **200** | Successful resource response | - |
|
|
273
|
-
|
|
274
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
275
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductRegistrationAssetResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<ProductRegistrationAssetResource>](ProductRegistrationAssetResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { ProductRegistrationAssetResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies ProductRegistrationAssetResourceArrayResponse
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as ProductRegistrationAssetResourceArrayResponse
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductRegistrationAssetType
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import type { ProductRegistrationAssetType } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
|
-
|
|
15
|
-
// TODO: Update the object below with actual values
|
|
16
|
-
const example = {
|
|
17
|
-
} satisfies ProductRegistrationAssetType
|
|
18
|
-
|
|
19
|
-
console.log(example)
|
|
20
|
-
|
|
21
|
-
// Convert the instance to a JSON string
|
|
22
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
-
console.log(exampleJSON)
|
|
24
|
-
|
|
25
|
-
// Parse the JSON string back to an object
|
|
26
|
-
const exampleParsed = JSON.parse(exampleJSON) as ProductRegistrationAssetType
|
|
27
|
-
console.log(exampleParsed)
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
-
|
|
32
|
-
|