@aurigma/ng-storefront-api-client 2.3.1 → 2.6.1
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/aurigma-ng-storefront-api-client.metadata.json +1 -1
- package/bundles/aurigma-ng-storefront-api-client.umd.js +281 -254
- package/bundles/aurigma-ng-storefront-api-client.umd.js.map +1 -1
- package/bundles/aurigma-ng-storefront-api-client.umd.min.js +1 -1
- package/bundles/aurigma-ng-storefront-api-client.umd.min.js.map +1 -1
- package/esm2015/lib/storefront-api-client.js +259 -245
- package/fesm2015/aurigma-ng-storefront-api-client.js +258 -244
- package/fesm2015/aurigma-ng-storefront-api-client.js.map +1 -1
- package/lib/storefront-api-client.d.ts +466 -488
- package/package.json +1 -1
|
@@ -49,7 +49,7 @@ class BuildInfoApiClient extends ApiClientBase {
|
|
|
49
49
|
this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : this.getBaseUrl("");
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* Returns an assembly build info.
|
|
53
53
|
* @return Success
|
|
54
54
|
*/
|
|
55
55
|
headInfo() {
|
|
@@ -100,7 +100,7 @@ class BuildInfoApiClient extends ApiClientBase {
|
|
|
100
100
|
return of(null);
|
|
101
101
|
}
|
|
102
102
|
/**
|
|
103
|
-
*
|
|
103
|
+
* Returns an assembly build info.
|
|
104
104
|
* @return Success
|
|
105
105
|
*/
|
|
106
106
|
getInfo() {
|
|
@@ -174,19 +174,18 @@ class ProductReferencesApiClient extends ApiClientBase {
|
|
|
174
174
|
this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : this.getBaseUrl("");
|
|
175
175
|
}
|
|
176
176
|
/**
|
|
177
|
-
*
|
|
178
|
-
* @param storefrontId Storefront identifier
|
|
179
|
-
* @param productReference (optional) Product reference filter. Product reference is an external reference to Customer's Canvas product specification, e.g online store product identifier
|
|
180
|
-
* @param productSpecificationId (optional) Cusomer's Canvas product specification filter
|
|
181
|
-
* @param skip (optional) Defines page start offset from beginning of sorted result list
|
|
182
|
-
* @param take (optional) Defines page length (how much consequent items of sorted result list should be taken)
|
|
183
|
-
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC"
|
|
184
|
-
* @param search (optional) Search string for partial match
|
|
185
|
-
* @param tenantId (optional) Tenant identifier
|
|
186
|
-
* @param userId (optional) User identifier
|
|
177
|
+
* Returns all storefront product references relevant to the specified query parameters.
|
|
178
|
+
* @param storefrontId Storefront identifier.
|
|
179
|
+
* @param productReference (optional) Product reference filter. Product reference is an external reference to Customer's Canvas product specification, e.g online store product identifier.
|
|
180
|
+
* @param productSpecificationId (optional) Cusomer's Canvas product specification filter.
|
|
181
|
+
* @param skip (optional) Defines page start offset from beginning of sorted result list.
|
|
182
|
+
* @param take (optional) Defines page length (how much consequent items of sorted result list should be taken).
|
|
183
|
+
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
|
|
184
|
+
* @param search (optional) Search string for partial match.
|
|
185
|
+
* @param tenantId (optional) Tenant identifier.
|
|
187
186
|
* @return Success
|
|
188
187
|
*/
|
|
189
|
-
getAll(storefrontId, productReference, productSpecificationId, skip, take, sorting, search, tenantId
|
|
188
|
+
getAll(storefrontId, productReference, productSpecificationId, skip, take, sorting, search, tenantId) {
|
|
190
189
|
let url_ = this.baseUrl + "/api/storefront/v1/product-references?";
|
|
191
190
|
if (storefrontId === undefined || storefrontId === null)
|
|
192
191
|
throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
|
|
@@ -206,8 +205,6 @@ class ProductReferencesApiClient extends ApiClientBase {
|
|
|
206
205
|
url_ += "search=" + encodeURIComponent("" + search) + "&";
|
|
207
206
|
if (tenantId !== undefined && tenantId !== null)
|
|
208
207
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
209
|
-
if (userId !== undefined && userId !== null)
|
|
210
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
211
208
|
url_ = url_.replace(/[?&]$/, "");
|
|
212
209
|
let options_ = {
|
|
213
210
|
observe: "response",
|
|
@@ -268,14 +265,13 @@ class ProductReferencesApiClient extends ApiClientBase {
|
|
|
268
265
|
return of(null);
|
|
269
266
|
}
|
|
270
267
|
/**
|
|
271
|
-
* Creates new storefront product reference
|
|
272
|
-
* @param storefrontId Storefront identifier
|
|
273
|
-
* @param tenantId (optional) Tenant identifier
|
|
274
|
-
* @param
|
|
275
|
-
* @param body (optional) Create operation parameters
|
|
268
|
+
* Creates a new storefront product reference.
|
|
269
|
+
* @param storefrontId Storefront identifier.
|
|
270
|
+
* @param tenantId (optional) Tenant identifier.
|
|
271
|
+
* @param body (optional) Create operation parameters.
|
|
276
272
|
* @return Success
|
|
277
273
|
*/
|
|
278
|
-
create(storefrontId, tenantId,
|
|
274
|
+
create(storefrontId, tenantId, body) {
|
|
279
275
|
let url_ = this.baseUrl + "/api/storefront/v1/product-references?";
|
|
280
276
|
if (storefrontId === undefined || storefrontId === null)
|
|
281
277
|
throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
|
|
@@ -283,8 +279,6 @@ class ProductReferencesApiClient extends ApiClientBase {
|
|
|
283
279
|
url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
|
|
284
280
|
if (tenantId !== undefined && tenantId !== null)
|
|
285
281
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
286
|
-
if (userId !== undefined && userId !== null)
|
|
287
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
288
282
|
url_ = url_.replace(/[?&]$/, "");
|
|
289
283
|
const content_ = JSON.stringify(body);
|
|
290
284
|
let options_ = {
|
|
@@ -355,14 +349,13 @@ class ProductReferencesApiClient extends ApiClientBase {
|
|
|
355
349
|
return of(null);
|
|
356
350
|
}
|
|
357
351
|
/**
|
|
358
|
-
*
|
|
359
|
-
* @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier
|
|
360
|
-
* @param storefrontId Storefront identifier
|
|
361
|
-
* @param tenantId (optional) Tenant identifier
|
|
362
|
-
* @param userId (optional) User identifier
|
|
352
|
+
* Returns a storefront product reference.
|
|
353
|
+
* @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier.
|
|
354
|
+
* @param storefrontId Storefront identifier.
|
|
355
|
+
* @param tenantId (optional) Tenant identifier.
|
|
363
356
|
* @return Success
|
|
364
357
|
*/
|
|
365
|
-
get(reference, storefrontId, tenantId
|
|
358
|
+
get(reference, storefrontId, tenantId) {
|
|
366
359
|
let url_ = this.baseUrl + "/api/storefront/v1/product-references/{reference}?";
|
|
367
360
|
if (reference === undefined || reference === null)
|
|
368
361
|
throw new Error("The parameter 'reference' must be defined.");
|
|
@@ -373,8 +366,6 @@ class ProductReferencesApiClient extends ApiClientBase {
|
|
|
373
366
|
url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
|
|
374
367
|
if (tenantId !== undefined && tenantId !== null)
|
|
375
368
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
376
|
-
if (userId !== undefined && userId !== null)
|
|
377
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
378
369
|
url_ = url_.replace(/[?&]$/, "");
|
|
379
370
|
let options_ = {
|
|
380
371
|
observe: "response",
|
|
@@ -442,14 +433,13 @@ class ProductReferencesApiClient extends ApiClientBase {
|
|
|
442
433
|
return of(null);
|
|
443
434
|
}
|
|
444
435
|
/**
|
|
445
|
-
* Deletes storefront product reference
|
|
446
|
-
* @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier
|
|
447
|
-
* @param storefrontId Storefront identifier
|
|
448
|
-
* @param tenantId (optional) Tenant identifier
|
|
449
|
-
* @param userId (optional) User identifier
|
|
436
|
+
* Deletes the storefront product reference.
|
|
437
|
+
* @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier.
|
|
438
|
+
* @param storefrontId Storefront identifier.
|
|
439
|
+
* @param tenantId (optional) Tenant identifier.
|
|
450
440
|
* @return Success
|
|
451
441
|
*/
|
|
452
|
-
delete(reference, storefrontId, tenantId
|
|
442
|
+
delete(reference, storefrontId, tenantId) {
|
|
453
443
|
let url_ = this.baseUrl + "/api/storefront/v1/product-references/{reference}?";
|
|
454
444
|
if (reference === undefined || reference === null)
|
|
455
445
|
throw new Error("The parameter 'reference' must be defined.");
|
|
@@ -460,8 +450,6 @@ class ProductReferencesApiClient extends ApiClientBase {
|
|
|
460
450
|
url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
|
|
461
451
|
if (tenantId !== undefined && tenantId !== null)
|
|
462
452
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
463
|
-
if (userId !== undefined && userId !== null)
|
|
464
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
465
453
|
url_ = url_.replace(/[?&]$/, "");
|
|
466
454
|
let options_ = {
|
|
467
455
|
observe: "response",
|
|
@@ -529,14 +517,13 @@ class ProductReferencesApiClient extends ApiClientBase {
|
|
|
529
517
|
return of(null);
|
|
530
518
|
}
|
|
531
519
|
/**
|
|
532
|
-
*
|
|
533
|
-
* @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier
|
|
534
|
-
* @param storefrontId Storefront identifier
|
|
535
|
-
* @param tenantId (optional) Tenant identifier
|
|
536
|
-
* @param userId (optional) User identifier
|
|
520
|
+
* Returns a product specification by the storefront product reference.
|
|
521
|
+
* @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier.
|
|
522
|
+
* @param storefrontId Storefront identifier.
|
|
523
|
+
* @param tenantId (optional) Tenant identifier.
|
|
537
524
|
* @return Success
|
|
538
525
|
*/
|
|
539
|
-
getProductSpecification(reference, storefrontId, tenantId
|
|
526
|
+
getProductSpecification(reference, storefrontId, tenantId) {
|
|
540
527
|
let url_ = this.baseUrl + "/api/storefront/v1/product-references/{reference}/product-specification?";
|
|
541
528
|
if (reference === undefined || reference === null)
|
|
542
529
|
throw new Error("The parameter 'reference' must be defined.");
|
|
@@ -547,8 +534,6 @@ class ProductReferencesApiClient extends ApiClientBase {
|
|
|
547
534
|
url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
|
|
548
535
|
if (tenantId !== undefined && tenantId !== null)
|
|
549
536
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
550
|
-
if (userId !== undefined && userId !== null)
|
|
551
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
552
537
|
url_ = url_.replace(/[?&]$/, "");
|
|
553
538
|
let options_ = {
|
|
554
539
|
observe: "response",
|
|
@@ -616,14 +601,13 @@ class ProductReferencesApiClient extends ApiClientBase {
|
|
|
616
601
|
return of(null);
|
|
617
602
|
}
|
|
618
603
|
/**
|
|
619
|
-
*
|
|
620
|
-
* @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier
|
|
621
|
-
* @param storefrontId Storefront identifier
|
|
622
|
-
* @param tenantId (optional) Tenant identifier
|
|
623
|
-
* @param userId (optional) User identifier
|
|
604
|
+
* Returns a product personalization workflow configuration by storefront product reference.
|
|
605
|
+
* @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier.
|
|
606
|
+
* @param storefrontId Storefront identifier.
|
|
607
|
+
* @param tenantId (optional) Tenant identifier.
|
|
624
608
|
* @return Success
|
|
625
609
|
*/
|
|
626
|
-
getProductConfig(reference, storefrontId, tenantId
|
|
610
|
+
getProductConfig(reference, storefrontId, tenantId) {
|
|
627
611
|
let url_ = this.baseUrl + "/api/storefront/v1/product-references/{reference}/product-config?";
|
|
628
612
|
if (reference === undefined || reference === null)
|
|
629
613
|
throw new Error("The parameter 'reference' must be defined.");
|
|
@@ -634,8 +618,6 @@ class ProductReferencesApiClient extends ApiClientBase {
|
|
|
634
618
|
url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
|
|
635
619
|
if (tenantId !== undefined && tenantId !== null)
|
|
636
620
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
637
|
-
if (userId !== undefined && userId !== null)
|
|
638
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
639
621
|
url_ = url_.replace(/[?&]$/, "");
|
|
640
622
|
let options_ = {
|
|
641
623
|
observe: "response",
|
|
@@ -722,16 +704,15 @@ class ProductSpecificationsApiClient extends ApiClientBase {
|
|
|
722
704
|
this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : this.getBaseUrl("");
|
|
723
705
|
}
|
|
724
706
|
/**
|
|
725
|
-
*
|
|
726
|
-
* @param skip (optional) Defines page start offset from beginning of sorted result list
|
|
727
|
-
* @param take (optional) Defines page length (how much consequent items of sorted result list should be taken)
|
|
728
|
-
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC"
|
|
729
|
-
* @param search (optional) Search string for partial match
|
|
730
|
-
* @param tenantId (optional) Tenant identifier
|
|
731
|
-
* @param userId (optional) User identifier
|
|
707
|
+
* Returns all product specifications, relevant to the specified query parameters.
|
|
708
|
+
* @param skip (optional) Defines page start offset from beginning of sorted result list.
|
|
709
|
+
* @param take (optional) Defines page length (how much consequent items of sorted result list should be taken).
|
|
710
|
+
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
|
|
711
|
+
* @param search (optional) Search string for partial match.
|
|
712
|
+
* @param tenantId (optional) Tenant identifier.
|
|
732
713
|
* @return Success
|
|
733
714
|
*/
|
|
734
|
-
getAll(skip, take, sorting, search, tenantId
|
|
715
|
+
getAll(skip, take, sorting, search, tenantId) {
|
|
735
716
|
let url_ = this.baseUrl + "/api/storefront/v1/product-specifications?";
|
|
736
717
|
if (skip !== undefined && skip !== null)
|
|
737
718
|
url_ += "skip=" + encodeURIComponent("" + skip) + "&";
|
|
@@ -743,8 +724,6 @@ class ProductSpecificationsApiClient extends ApiClientBase {
|
|
|
743
724
|
url_ += "search=" + encodeURIComponent("" + search) + "&";
|
|
744
725
|
if (tenantId !== undefined && tenantId !== null)
|
|
745
726
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
746
|
-
if (userId !== undefined && userId !== null)
|
|
747
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
748
727
|
url_ = url_.replace(/[?&]$/, "");
|
|
749
728
|
let options_ = {
|
|
750
729
|
observe: "response",
|
|
@@ -805,21 +784,18 @@ class ProductSpecificationsApiClient extends ApiClientBase {
|
|
|
805
784
|
return of(null);
|
|
806
785
|
}
|
|
807
786
|
/**
|
|
808
|
-
*
|
|
809
|
-
* @param id Product specification identifier
|
|
810
|
-
* @param tenantId (optional) Tenant identifier
|
|
811
|
-
* @param userId (optional) User identifier
|
|
787
|
+
* Returns a product specification by identifier.
|
|
788
|
+
* @param id Product specification identifier.
|
|
789
|
+
* @param tenantId (optional) Tenant identifier.
|
|
812
790
|
* @return Success
|
|
813
791
|
*/
|
|
814
|
-
get(id, tenantId
|
|
792
|
+
get(id, tenantId) {
|
|
815
793
|
let url_ = this.baseUrl + "/api/storefront/v1/product-specifications/{id}?";
|
|
816
794
|
if (id === undefined || id === null)
|
|
817
795
|
throw new Error("The parameter 'id' must be defined.");
|
|
818
796
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
819
797
|
if (tenantId !== undefined && tenantId !== null)
|
|
820
798
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
821
|
-
if (userId !== undefined && userId !== null)
|
|
822
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
823
799
|
url_ = url_.replace(/[?&]$/, "");
|
|
824
800
|
let options_ = {
|
|
825
801
|
observe: "response",
|
|
@@ -887,21 +863,18 @@ class ProductSpecificationsApiClient extends ApiClientBase {
|
|
|
887
863
|
return of(null);
|
|
888
864
|
}
|
|
889
865
|
/**
|
|
890
|
-
*
|
|
891
|
-
* @param id Product specification identifier
|
|
892
|
-
* @param tenantId (optional) Tenant identifier
|
|
893
|
-
* @param userId (optional) User identifier
|
|
866
|
+
* Returns a product personlization workflow configuration by product specification identifier.
|
|
867
|
+
* @param id Product specification identifier.
|
|
868
|
+
* @param tenantId (optional) Tenant identifier.
|
|
894
869
|
* @return Success
|
|
895
870
|
*/
|
|
896
|
-
getConfiguration(id, tenantId
|
|
871
|
+
getConfiguration(id, tenantId) {
|
|
897
872
|
let url_ = this.baseUrl + "/api/storefront/v1/product-specifications/{id}/config?";
|
|
898
873
|
if (id === undefined || id === null)
|
|
899
874
|
throw new Error("The parameter 'id' must be defined.");
|
|
900
875
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
901
876
|
if (tenantId !== undefined && tenantId !== null)
|
|
902
877
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
903
|
-
if (userId !== undefined && userId !== null)
|
|
904
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
905
878
|
url_ = url_.replace(/[?&]$/, "");
|
|
906
879
|
let options_ = {
|
|
907
880
|
observe: "response",
|
|
@@ -988,21 +961,20 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
988
961
|
this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : this.getBaseUrl("");
|
|
989
962
|
}
|
|
990
963
|
/**
|
|
991
|
-
*
|
|
992
|
-
* @param storefrontId Storefront identifier
|
|
993
|
-
* @param ownerId (optional) Project owner (storefront user id) filter
|
|
994
|
-
* @param productReference (optional) Product reference filter
|
|
995
|
-
* @param status (optional) Project status filter
|
|
996
|
-
* @param datePeriod (optional) Project date period filter
|
|
997
|
-
* @param skip (optional) Defines page start offset from beginning of sorted result list
|
|
998
|
-
* @param take (optional) Defines page length (how much consequent items of sorted result list should be taken)
|
|
999
|
-
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC"
|
|
1000
|
-
* @param search (optional) Search string for partial match
|
|
1001
|
-
* @param tenantId (optional) Tenant identifier
|
|
1002
|
-
* @param userId (optional) User identifier
|
|
964
|
+
* Returns all projects, relevant to the specified query parameters.
|
|
965
|
+
* @param storefrontId Storefront identifier.
|
|
966
|
+
* @param ownerId (optional) Project owner (storefront user id) filter.
|
|
967
|
+
* @param productReference (optional) Product reference filter.
|
|
968
|
+
* @param status (optional) Project status filter.
|
|
969
|
+
* @param datePeriod (optional) Project date period filter.
|
|
970
|
+
* @param skip (optional) Defines page start offset from beginning of sorted result list.
|
|
971
|
+
* @param take (optional) Defines page length (how much consequent items of sorted result list should be taken).
|
|
972
|
+
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
|
|
973
|
+
* @param search (optional) Search string for partial match.
|
|
974
|
+
* @param tenantId (optional) Tenant identifier.
|
|
1003
975
|
* @return Success
|
|
1004
976
|
*/
|
|
1005
|
-
getAll(storefrontId, ownerId, productReference, status, datePeriod, skip, take, sorting, search, tenantId
|
|
977
|
+
getAll(storefrontId, ownerId, productReference, status, datePeriod, skip, take, sorting, search, tenantId) {
|
|
1006
978
|
let url_ = this.baseUrl + "/api/storefront/v1/projects?";
|
|
1007
979
|
if (storefrontId === undefined || storefrontId === null)
|
|
1008
980
|
throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
|
|
@@ -1028,8 +1000,6 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1028
1000
|
url_ += "search=" + encodeURIComponent("" + search) + "&";
|
|
1029
1001
|
if (tenantId !== undefined && tenantId !== null)
|
|
1030
1002
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
1031
|
-
if (userId !== undefined && userId !== null)
|
|
1032
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
1033
1003
|
url_ = url_.replace(/[?&]$/, "");
|
|
1034
1004
|
let options_ = {
|
|
1035
1005
|
observe: "response",
|
|
@@ -1090,14 +1060,13 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1090
1060
|
return of(null);
|
|
1091
1061
|
}
|
|
1092
1062
|
/**
|
|
1093
|
-
* Creates new project
|
|
1094
|
-
* @param storefrontId Storefront identifier
|
|
1095
|
-
* @param tenantId (optional) Tenant identifier
|
|
1096
|
-
* @param
|
|
1097
|
-
* @param body (optional) Create operation parameters
|
|
1063
|
+
* Creates a new project.
|
|
1064
|
+
* @param storefrontId Storefront identifier.
|
|
1065
|
+
* @param tenantId (optional) Tenant identifier.
|
|
1066
|
+
* @param body (optional) Create operation parameters.
|
|
1098
1067
|
* @return Success
|
|
1099
1068
|
*/
|
|
1100
|
-
create(storefrontId, tenantId,
|
|
1069
|
+
create(storefrontId, tenantId, body) {
|
|
1101
1070
|
let url_ = this.baseUrl + "/api/storefront/v1/projects?";
|
|
1102
1071
|
if (storefrontId === undefined || storefrontId === null)
|
|
1103
1072
|
throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
|
|
@@ -1105,8 +1074,6 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1105
1074
|
url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
|
|
1106
1075
|
if (tenantId !== undefined && tenantId !== null)
|
|
1107
1076
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
1108
|
-
if (userId !== undefined && userId !== null)
|
|
1109
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
1110
1077
|
url_ = url_.replace(/[?&]$/, "");
|
|
1111
1078
|
const content_ = JSON.stringify(body);
|
|
1112
1079
|
let options_ = {
|
|
@@ -1177,21 +1144,18 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1177
1144
|
return of(null);
|
|
1178
1145
|
}
|
|
1179
1146
|
/**
|
|
1180
|
-
*
|
|
1181
|
-
* @param id Project identifier
|
|
1182
|
-
* @param tenantId (optional) Tenant identifier
|
|
1183
|
-
* @param userId (optional) User identifier
|
|
1147
|
+
* Returns a project by identifier.
|
|
1148
|
+
* @param id Project identifier.
|
|
1149
|
+
* @param tenantId (optional) Tenant identifier.
|
|
1184
1150
|
* @return Success
|
|
1185
1151
|
*/
|
|
1186
|
-
get(id, tenantId
|
|
1152
|
+
get(id, tenantId) {
|
|
1187
1153
|
let url_ = this.baseUrl + "/api/storefront/v1/projects/{id}?";
|
|
1188
1154
|
if (id === undefined || id === null)
|
|
1189
1155
|
throw new Error("The parameter 'id' must be defined.");
|
|
1190
1156
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
1191
1157
|
if (tenantId !== undefined && tenantId !== null)
|
|
1192
1158
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
1193
|
-
if (userId !== undefined && userId !== null)
|
|
1194
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
1195
1159
|
url_ = url_.replace(/[?&]$/, "");
|
|
1196
1160
|
let options_ = {
|
|
1197
1161
|
observe: "response",
|
|
@@ -1259,21 +1223,18 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1259
1223
|
return of(null);
|
|
1260
1224
|
}
|
|
1261
1225
|
/**
|
|
1262
|
-
*
|
|
1263
|
-
* @param id Project identifier
|
|
1264
|
-
* @param tenantId (optional) Tenant identifier
|
|
1265
|
-
* @param userId (optional) User identifier
|
|
1226
|
+
* Returns all available status transitions for a project.
|
|
1227
|
+
* @param id Project identifier.
|
|
1228
|
+
* @param tenantId (optional) Tenant identifier.
|
|
1266
1229
|
* @return Success
|
|
1267
1230
|
*/
|
|
1268
|
-
getAvailableTransitions(id, tenantId
|
|
1231
|
+
getAvailableTransitions(id, tenantId) {
|
|
1269
1232
|
let url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/transitions?";
|
|
1270
1233
|
if (id === undefined || id === null)
|
|
1271
1234
|
throw new Error("The parameter 'id' must be defined.");
|
|
1272
1235
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
1273
1236
|
if (tenantId !== undefined && tenantId !== null)
|
|
1274
1237
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
1275
|
-
if (userId !== undefined && userId !== null)
|
|
1276
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
1277
1238
|
url_ = url_.replace(/[?&]$/, "");
|
|
1278
1239
|
let options_ = {
|
|
1279
1240
|
observe: "response",
|
|
@@ -1355,14 +1316,13 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1355
1316
|
return of(null);
|
|
1356
1317
|
}
|
|
1357
1318
|
/**
|
|
1358
|
-
* Changes project status
|
|
1319
|
+
* Changes the project status.
|
|
1359
1320
|
* @param id Project identifier
|
|
1360
|
-
* @param transition Transition identifying name
|
|
1361
|
-
* @param tenantId (optional) Tenant identifier
|
|
1362
|
-
* @param userId (optional) User identifier
|
|
1321
|
+
* @param transition Transition identifying name.
|
|
1322
|
+
* @param tenantId (optional) Tenant identifier.
|
|
1363
1323
|
* @return Success
|
|
1364
1324
|
*/
|
|
1365
|
-
changeStatus(id, transition, tenantId
|
|
1325
|
+
changeStatus(id, transition, tenantId) {
|
|
1366
1326
|
let url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/transitions/{transition}?";
|
|
1367
1327
|
if (id === undefined || id === null)
|
|
1368
1328
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -1372,8 +1332,6 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1372
1332
|
url_ = url_.replace("{transition}", encodeURIComponent("" + transition));
|
|
1373
1333
|
if (tenantId !== undefined && tenantId !== null)
|
|
1374
1334
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
1375
|
-
if (userId !== undefined && userId !== null)
|
|
1376
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
1377
1335
|
url_ = url_.replace(/[?&]$/, "");
|
|
1378
1336
|
let options_ = {
|
|
1379
1337
|
observe: "response",
|
|
@@ -1455,14 +1413,13 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1455
1413
|
return of(null);
|
|
1456
1414
|
}
|
|
1457
1415
|
/**
|
|
1458
|
-
*
|
|
1459
|
-
* @param id Project identifier
|
|
1460
|
-
* @param status Project status code
|
|
1461
|
-
* @param tenantId (optional) Tenant identifier
|
|
1462
|
-
* @param userId (optional) User identifier
|
|
1416
|
+
* Changes the project status forcibly without a proper transition.
|
|
1417
|
+
* @param id Project identifier.
|
|
1418
|
+
* @param status Project status code.
|
|
1419
|
+
* @param tenantId (optional) Tenant identifier.
|
|
1463
1420
|
* @return Success
|
|
1464
1421
|
*/
|
|
1465
|
-
forceStatus(id, status, tenantId
|
|
1422
|
+
forceStatus(id, status, tenantId) {
|
|
1466
1423
|
let url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/statuses/{status}?";
|
|
1467
1424
|
if (id === undefined || id === null)
|
|
1468
1425
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -1472,8 +1429,6 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1472
1429
|
url_ = url_.replace("{status}", encodeURIComponent("" + status));
|
|
1473
1430
|
if (tenantId !== undefined && tenantId !== null)
|
|
1474
1431
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
1475
|
-
if (userId !== undefined && userId !== null)
|
|
1476
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
1477
1432
|
url_ = url_.replace(/[?&]$/, "");
|
|
1478
1433
|
let options_ = {
|
|
1479
1434
|
observe: "response",
|
|
@@ -1548,17 +1503,14 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1548
1503
|
return of(null);
|
|
1549
1504
|
}
|
|
1550
1505
|
/**
|
|
1551
|
-
*
|
|
1552
|
-
* @param tenantId (optional) Tenant identifier
|
|
1553
|
-
* @param userId (optional) User identifier
|
|
1506
|
+
* Returns a list of all existing project statuses.
|
|
1507
|
+
* @param tenantId (optional) Tenant identifier.
|
|
1554
1508
|
* @return Success
|
|
1555
1509
|
*/
|
|
1556
|
-
getAllStatuses(tenantId
|
|
1510
|
+
getAllStatuses(tenantId) {
|
|
1557
1511
|
let url_ = this.baseUrl + "/api/storefront/v1/projects/statuses?";
|
|
1558
1512
|
if (tenantId !== undefined && tenantId !== null)
|
|
1559
1513
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
1560
|
-
if (userId !== undefined && userId !== null)
|
|
1561
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
1562
1514
|
url_ = url_.replace(/[?&]$/, "");
|
|
1563
1515
|
let options_ = {
|
|
1564
1516
|
observe: "response",
|
|
@@ -1619,17 +1571,14 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1619
1571
|
return of(null);
|
|
1620
1572
|
}
|
|
1621
1573
|
/**
|
|
1622
|
-
*
|
|
1623
|
-
* @param tenantId (optional) Tenant identifier
|
|
1624
|
-
* @param userId (optional) User identifier
|
|
1574
|
+
* Returns a list of all existing project status transitions.
|
|
1575
|
+
* @param tenantId (optional) Tenant identifier.
|
|
1625
1576
|
* @return Success
|
|
1626
1577
|
*/
|
|
1627
|
-
getAllTransitions(tenantId
|
|
1578
|
+
getAllTransitions(tenantId) {
|
|
1628
1579
|
let url_ = this.baseUrl + "/api/storefront/v1/projects/transitions?";
|
|
1629
1580
|
if (tenantId !== undefined && tenantId !== null)
|
|
1630
1581
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
1631
|
-
if (userId !== undefined && userId !== null)
|
|
1632
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
1633
1582
|
url_ = url_.replace(/[?&]$/, "");
|
|
1634
1583
|
let options_ = {
|
|
1635
1584
|
observe: "response",
|
|
@@ -1690,15 +1639,14 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1690
1639
|
return of(null);
|
|
1691
1640
|
}
|
|
1692
1641
|
/**
|
|
1693
|
-
*
|
|
1694
|
-
* @param id Project
|
|
1695
|
-
* @param designUserId
|
|
1696
|
-
* @param designId Design identifier
|
|
1697
|
-
* @param tenantId (optional) Tenant identifier
|
|
1698
|
-
* @param userId (optional) User identifier
|
|
1642
|
+
* Returns an url to download project print file.
|
|
1643
|
+
* @param id Project identifier.
|
|
1644
|
+
* @param designUserId Design owner identifier.
|
|
1645
|
+
* @param designId Design identifier.
|
|
1646
|
+
* @param tenantId (optional) Tenant identifier.
|
|
1699
1647
|
* @return Success
|
|
1700
1648
|
*/
|
|
1701
|
-
getProjectPdfUrl(id, designUserId, designId, tenantId
|
|
1649
|
+
getProjectPdfUrl(id, designUserId, designId, tenantId) {
|
|
1702
1650
|
let url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/project-pdf?";
|
|
1703
1651
|
if (id === undefined || id === null)
|
|
1704
1652
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -1713,8 +1661,6 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1713
1661
|
url_ += "designId=" + encodeURIComponent("" + designId) + "&";
|
|
1714
1662
|
if (tenantId !== undefined && tenantId !== null)
|
|
1715
1663
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
1716
|
-
if (userId !== undefined && userId !== null)
|
|
1717
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
1718
1664
|
url_ = url_.replace(/[?&]$/, "");
|
|
1719
1665
|
let options_ = {
|
|
1720
1666
|
observe: "response",
|
|
@@ -1775,16 +1721,15 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1775
1721
|
return of(null);
|
|
1776
1722
|
}
|
|
1777
1723
|
/**
|
|
1778
|
-
*
|
|
1779
|
-
* @param id Project
|
|
1780
|
-
* @param designUserId
|
|
1781
|
-
* @param designId Design identifier
|
|
1782
|
-
* @param attachment (optional) If set to 'true', file will be provided as an attachment with proper filename supplied (default value is 'false')
|
|
1783
|
-
* @param tenantId (optional) Tenant identifier
|
|
1784
|
-
* @param userId (optional) User identifier
|
|
1724
|
+
* Returns an archive file, which contains all project print files.
|
|
1725
|
+
* @param id Project identifier.
|
|
1726
|
+
* @param designUserId Design owner identifier.
|
|
1727
|
+
* @param designId Design identifier.
|
|
1728
|
+
* @param attachment (optional) If set to 'true', the requested file will be provided as an attachment with proper filename supplied (default value is 'false').
|
|
1729
|
+
* @param tenantId (optional) Tenant identifier.
|
|
1785
1730
|
* @return Success
|
|
1786
1731
|
*/
|
|
1787
|
-
getProjectPdfZip(id, designUserId, designId, attachment, tenantId
|
|
1732
|
+
getProjectPdfZip(id, designUserId, designId, attachment, tenantId) {
|
|
1788
1733
|
let url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/project-pdf-zip?";
|
|
1789
1734
|
if (id === undefined || id === null)
|
|
1790
1735
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -1801,8 +1746,6 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1801
1746
|
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
1802
1747
|
if (tenantId !== undefined && tenantId !== null)
|
|
1803
1748
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
1804
|
-
if (userId !== undefined && userId !== null)
|
|
1805
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
1806
1749
|
url_ = url_.replace(/[?&]$/, "");
|
|
1807
1750
|
let options_ = {
|
|
1808
1751
|
observe: "response",
|
|
@@ -1869,15 +1812,18 @@ class ProjectsApiClient extends ApiClientBase {
|
|
|
1869
1812
|
return of(null);
|
|
1870
1813
|
}
|
|
1871
1814
|
/**
|
|
1872
|
-
*
|
|
1873
|
-
* @param id Project identifier
|
|
1815
|
+
* Returns an order description from the ecommerce system for the specified project.
|
|
1816
|
+
* @param id Project identifier.
|
|
1817
|
+
* @param tenantId (optional) Tenant identifier.
|
|
1874
1818
|
* @return Success
|
|
1875
1819
|
*/
|
|
1876
|
-
getProjectOrder(id) {
|
|
1877
|
-
let url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/order";
|
|
1820
|
+
getProjectOrder(id, tenantId) {
|
|
1821
|
+
let url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/order?";
|
|
1878
1822
|
if (id === undefined || id === null)
|
|
1879
1823
|
throw new Error("The parameter 'id' must be defined.");
|
|
1880
1824
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
1825
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
1826
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
1881
1827
|
url_ = url_.replace(/[?&]$/, "");
|
|
1882
1828
|
let options_ = {
|
|
1883
1829
|
observe: "response",
|
|
@@ -1964,17 +1910,16 @@ class StorefrontsApiClient extends ApiClientBase {
|
|
|
1964
1910
|
this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : this.getBaseUrl("");
|
|
1965
1911
|
}
|
|
1966
1912
|
/**
|
|
1967
|
-
*
|
|
1968
|
-
* @param types (optional) Storefront type filter
|
|
1969
|
-
* @param skip (optional) Defines page start offset from beginning of sorted result list
|
|
1970
|
-
* @param take (optional) Defines page length (how much consequent items of sorted result list should be taken)
|
|
1971
|
-
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC"
|
|
1972
|
-
* @param search (optional) Search string for partial match
|
|
1973
|
-
* @param tenantId (optional) Tenant identifier
|
|
1974
|
-
* @param userId (optional) User identifier
|
|
1913
|
+
* Returns all storefronts, relevant to the specified query parameters.
|
|
1914
|
+
* @param types (optional) Storefront type filter.
|
|
1915
|
+
* @param skip (optional) Defines page start offset from beginning of sorted result list.
|
|
1916
|
+
* @param take (optional) Defines page length (how much consequent items of sorted result list should be taken).
|
|
1917
|
+
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
|
|
1918
|
+
* @param search (optional) Search string for partial match.
|
|
1919
|
+
* @param tenantId (optional) Tenant identifier.
|
|
1975
1920
|
* @return Success
|
|
1976
1921
|
*/
|
|
1977
|
-
getAll(types, skip, take, sorting, search, tenantId
|
|
1922
|
+
getAll(types, skip, take, sorting, search, tenantId) {
|
|
1978
1923
|
let url_ = this.baseUrl + "/api/storefront/v1/storefronts?";
|
|
1979
1924
|
if (types !== undefined && types !== null)
|
|
1980
1925
|
types && types.forEach(item => { url_ += "types=" + encodeURIComponent("" + item) + "&"; });
|
|
@@ -1988,8 +1933,6 @@ class StorefrontsApiClient extends ApiClientBase {
|
|
|
1988
1933
|
url_ += "search=" + encodeURIComponent("" + search) + "&";
|
|
1989
1934
|
if (tenantId !== undefined && tenantId !== null)
|
|
1990
1935
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
1991
|
-
if (userId !== undefined && userId !== null)
|
|
1992
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
1993
1936
|
url_ = url_.replace(/[?&]$/, "");
|
|
1994
1937
|
let options_ = {
|
|
1995
1938
|
observe: "response",
|
|
@@ -2050,21 +1993,18 @@ class StorefrontsApiClient extends ApiClientBase {
|
|
|
2050
1993
|
return of(null);
|
|
2051
1994
|
}
|
|
2052
1995
|
/**
|
|
2053
|
-
*
|
|
2054
|
-
* @param id Storefront identifier
|
|
2055
|
-
* @param tenantId (optional) Tenant identifier
|
|
2056
|
-
* @param userId (optional) User identifier
|
|
1996
|
+
* Returns a storefront by identifier.
|
|
1997
|
+
* @param id Storefront identifier.
|
|
1998
|
+
* @param tenantId (optional) Tenant identifier.
|
|
2057
1999
|
* @return Success
|
|
2058
2000
|
*/
|
|
2059
|
-
get(id, tenantId
|
|
2001
|
+
get(id, tenantId) {
|
|
2060
2002
|
let url_ = this.baseUrl + "/api/storefront/v1/storefronts/{id}?";
|
|
2061
2003
|
if (id === undefined || id === null)
|
|
2062
2004
|
throw new Error("The parameter 'id' must be defined.");
|
|
2063
2005
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2064
2006
|
if (tenantId !== undefined && tenantId !== null)
|
|
2065
2007
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
2066
|
-
if (userId !== undefined && userId !== null)
|
|
2067
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
2068
2008
|
url_ = url_.replace(/[?&]$/, "");
|
|
2069
2009
|
let options_ = {
|
|
2070
2010
|
observe: "response",
|
|
@@ -2151,18 +2091,17 @@ class StorefrontUsersApiClient extends ApiClientBase {
|
|
|
2151
2091
|
this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : this.getBaseUrl("");
|
|
2152
2092
|
}
|
|
2153
2093
|
/**
|
|
2154
|
-
*
|
|
2155
|
-
* @param storefrontId Storefront identifier
|
|
2156
|
-
* @param storefrontUserId (optional) Storefront user identifier
|
|
2157
|
-
* @param skip (optional) Defines page start offset from beginning of sorted result list
|
|
2158
|
-
* @param take (optional) Defines page length (how much consequent items of sorted result list should be taken)
|
|
2159
|
-
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC"
|
|
2160
|
-
* @param search (optional) Search string for partial match
|
|
2161
|
-
* @param tenantId (optional) Tenant identifier
|
|
2162
|
-
* @param userId (optional) User identifier
|
|
2094
|
+
* Returns all storefront users, relevant to the specified query parameters.
|
|
2095
|
+
* @param storefrontId Storefront identifier.
|
|
2096
|
+
* @param storefrontUserId (optional) Storefront user identifier.
|
|
2097
|
+
* @param skip (optional) Defines page start offset from beginning of sorted result list.
|
|
2098
|
+
* @param take (optional) Defines page length (how much consequent items of sorted result list should be taken).
|
|
2099
|
+
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
|
|
2100
|
+
* @param search (optional) Search string for partial match.
|
|
2101
|
+
* @param tenantId (optional) Tenant identifier.
|
|
2163
2102
|
* @return Success
|
|
2164
2103
|
*/
|
|
2165
|
-
getAll(storefrontId, storefrontUserId, skip, take, sorting, search, tenantId
|
|
2104
|
+
getAll(storefrontId, storefrontUserId, skip, take, sorting, search, tenantId) {
|
|
2166
2105
|
let url_ = this.baseUrl + "/api/storefront/v1/storefront-users?";
|
|
2167
2106
|
if (storefrontId === undefined || storefrontId === null)
|
|
2168
2107
|
throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
|
|
@@ -2180,8 +2119,6 @@ class StorefrontUsersApiClient extends ApiClientBase {
|
|
|
2180
2119
|
url_ += "search=" + encodeURIComponent("" + search) + "&";
|
|
2181
2120
|
if (tenantId !== undefined && tenantId !== null)
|
|
2182
2121
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
2183
|
-
if (userId !== undefined && userId !== null)
|
|
2184
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
2185
2122
|
url_ = url_.replace(/[?&]$/, "");
|
|
2186
2123
|
let options_ = {
|
|
2187
2124
|
observe: "response",
|
|
@@ -2242,14 +2179,13 @@ class StorefrontUsersApiClient extends ApiClientBase {
|
|
|
2242
2179
|
return of(null);
|
|
2243
2180
|
}
|
|
2244
2181
|
/**
|
|
2245
|
-
* Creates new storefront user
|
|
2246
|
-
* @param storefrontId Storefront identifier
|
|
2247
|
-
* @param tenantId (optional) Tenant identifier
|
|
2248
|
-
* @param
|
|
2249
|
-
* @param body (optional) Create operation parameters
|
|
2182
|
+
* Creates a new storefront user.
|
|
2183
|
+
* @param storefrontId Storefront identifier.
|
|
2184
|
+
* @param tenantId (optional) Tenant identifier.
|
|
2185
|
+
* @param body (optional) Operation parameters.
|
|
2250
2186
|
* @return Success
|
|
2251
2187
|
*/
|
|
2252
|
-
create(storefrontId, tenantId,
|
|
2188
|
+
create(storefrontId, tenantId, body) {
|
|
2253
2189
|
let url_ = this.baseUrl + "/api/storefront/v1/storefront-users?";
|
|
2254
2190
|
if (storefrontId === undefined || storefrontId === null)
|
|
2255
2191
|
throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
|
|
@@ -2257,8 +2193,6 @@ class StorefrontUsersApiClient extends ApiClientBase {
|
|
|
2257
2193
|
url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
|
|
2258
2194
|
if (tenantId !== undefined && tenantId !== null)
|
|
2259
2195
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
2260
|
-
if (userId !== undefined && userId !== null)
|
|
2261
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
2262
2196
|
url_ = url_.replace(/[?&]$/, "");
|
|
2263
2197
|
const content_ = JSON.stringify(body);
|
|
2264
2198
|
let options_ = {
|
|
@@ -2304,6 +2238,13 @@ class StorefrontUsersApiClient extends ApiClientBase {
|
|
|
2304
2238
|
return of(result201);
|
|
2305
2239
|
}));
|
|
2306
2240
|
}
|
|
2241
|
+
else if (status === 409) {
|
|
2242
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2243
|
+
let result409 = null;
|
|
2244
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2245
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
2246
|
+
}));
|
|
2247
|
+
}
|
|
2307
2248
|
else if (status === 401) {
|
|
2308
2249
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2309
2250
|
return throwException("Unauthorized", status, _responseText, _headers);
|
|
@@ -2322,14 +2263,13 @@ class StorefrontUsersApiClient extends ApiClientBase {
|
|
|
2322
2263
|
return of(null);
|
|
2323
2264
|
}
|
|
2324
2265
|
/**
|
|
2325
|
-
*
|
|
2326
|
-
* @param id Storefront user identifier
|
|
2327
|
-
* @param storefrontId Storefront identifier
|
|
2328
|
-
* @param tenantId (optional) Tenant identifier
|
|
2329
|
-
* @param userId (optional) User identifier
|
|
2266
|
+
* Returns a storefront user by identifier.
|
|
2267
|
+
* @param id Storefront user identifier.
|
|
2268
|
+
* @param storefrontId Storefront identifier.
|
|
2269
|
+
* @param tenantId (optional) Tenant identifier.
|
|
2330
2270
|
* @return Success
|
|
2331
2271
|
*/
|
|
2332
|
-
get(id, storefrontId, tenantId
|
|
2272
|
+
get(id, storefrontId, tenantId) {
|
|
2333
2273
|
let url_ = this.baseUrl + "/api/storefront/v1/storefront-users/{id}?";
|
|
2334
2274
|
if (id === undefined || id === null)
|
|
2335
2275
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -2340,8 +2280,6 @@ class StorefrontUsersApiClient extends ApiClientBase {
|
|
|
2340
2280
|
url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
|
|
2341
2281
|
if (tenantId !== undefined && tenantId !== null)
|
|
2342
2282
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
2343
|
-
if (userId !== undefined && userId !== null)
|
|
2344
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
2345
2283
|
url_ = url_.replace(/[?&]$/, "");
|
|
2346
2284
|
let options_ = {
|
|
2347
2285
|
observe: "response",
|
|
@@ -2409,14 +2347,97 @@ class StorefrontUsersApiClient extends ApiClientBase {
|
|
|
2409
2347
|
return of(null);
|
|
2410
2348
|
}
|
|
2411
2349
|
/**
|
|
2412
|
-
*
|
|
2413
|
-
* @param storefrontId Storefront identifier
|
|
2414
|
-
* @param tenantId (optional) Tenant identifier
|
|
2415
|
-
* @param
|
|
2416
|
-
* @
|
|
2350
|
+
* Registers a storefront user with the specified identifier.
|
|
2351
|
+
* @param storefrontId Storefront identifier.
|
|
2352
|
+
* @param tenantId (optional) Tenant identifier.
|
|
2353
|
+
* @param body (optional) Operation parameters.
|
|
2354
|
+
* @return Success
|
|
2355
|
+
*/
|
|
2356
|
+
register(storefrontId, tenantId, body) {
|
|
2357
|
+
let url_ = this.baseUrl + "/api/storefront/v1/storefront-users/register?";
|
|
2358
|
+
if (storefrontId === undefined || storefrontId === null)
|
|
2359
|
+
throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
|
|
2360
|
+
else
|
|
2361
|
+
url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
|
|
2362
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
2363
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
2364
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
2365
|
+
const content_ = JSON.stringify(body);
|
|
2366
|
+
let options_ = {
|
|
2367
|
+
body: content_,
|
|
2368
|
+
observe: "response",
|
|
2369
|
+
responseType: "blob",
|
|
2370
|
+
headers: new HttpHeaders({
|
|
2371
|
+
"Content-Type": "application/json-patch+json",
|
|
2372
|
+
"Accept": "text/plain"
|
|
2373
|
+
})
|
|
2374
|
+
};
|
|
2375
|
+
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
2376
|
+
return this.http.request("post", url_, transformedOptions_);
|
|
2377
|
+
})).pipe(mergeMap((response_) => {
|
|
2378
|
+
return this.transformResult(url_, response_, (r) => this.processRegister(r));
|
|
2379
|
+
})).pipe(catchError((response_) => {
|
|
2380
|
+
if (response_ instanceof HttpResponseBase) {
|
|
2381
|
+
try {
|
|
2382
|
+
return this.transformResult(url_, response_, (r) => this.processRegister(r));
|
|
2383
|
+
}
|
|
2384
|
+
catch (e) {
|
|
2385
|
+
return throwError(e);
|
|
2386
|
+
}
|
|
2387
|
+
}
|
|
2388
|
+
else
|
|
2389
|
+
return throwError(response_);
|
|
2390
|
+
}));
|
|
2391
|
+
}
|
|
2392
|
+
processRegister(response) {
|
|
2393
|
+
const status = response.status;
|
|
2394
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
2395
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
2396
|
+
let _headers = {};
|
|
2397
|
+
if (response.headers) {
|
|
2398
|
+
for (let key of response.headers.keys()) {
|
|
2399
|
+
_headers[key] = response.headers.get(key);
|
|
2400
|
+
}
|
|
2401
|
+
}
|
|
2402
|
+
if (status === 200) {
|
|
2403
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2404
|
+
let result200 = null;
|
|
2405
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2406
|
+
return of(result200);
|
|
2407
|
+
}));
|
|
2408
|
+
}
|
|
2409
|
+
else if (status === 409) {
|
|
2410
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2411
|
+
let result409 = null;
|
|
2412
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2413
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
2414
|
+
}));
|
|
2415
|
+
}
|
|
2416
|
+
else if (status === 401) {
|
|
2417
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2418
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2419
|
+
}));
|
|
2420
|
+
}
|
|
2421
|
+
else if (status === 403) {
|
|
2422
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2423
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
2424
|
+
}));
|
|
2425
|
+
}
|
|
2426
|
+
else if (status !== 200 && status !== 204) {
|
|
2427
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2428
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2429
|
+
}));
|
|
2430
|
+
}
|
|
2431
|
+
return of(null);
|
|
2432
|
+
}
|
|
2433
|
+
/**
|
|
2434
|
+
* Transfers all existing data for the anonymous storefront user to the selected regular storefront user account.
|
|
2435
|
+
* @param storefrontId Storefront identifier.
|
|
2436
|
+
* @param tenantId (optional) Tenant identifier.
|
|
2437
|
+
* @param body (optional) Operation parameters.
|
|
2417
2438
|
* @return Success
|
|
2418
2439
|
*/
|
|
2419
|
-
mergeAnonymous(storefrontId, tenantId,
|
|
2440
|
+
mergeAnonymous(storefrontId, tenantId, body) {
|
|
2420
2441
|
let url_ = this.baseUrl + "/api/storefront/v1/storefront-users/merge-anonymous?";
|
|
2421
2442
|
if (storefrontId === undefined || storefrontId === null)
|
|
2422
2443
|
throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
|
|
@@ -2424,8 +2445,6 @@ class StorefrontUsersApiClient extends ApiClientBase {
|
|
|
2424
2445
|
url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
|
|
2425
2446
|
if (tenantId !== undefined && tenantId !== null)
|
|
2426
2447
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
2427
|
-
if (userId !== undefined && userId !== null)
|
|
2428
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
2429
2448
|
url_ = url_.replace(/[?&]$/, "");
|
|
2430
2449
|
const content_ = JSON.stringify(body);
|
|
2431
2450
|
let options_ = {
|
|
@@ -2500,14 +2519,13 @@ class StorefrontUsersApiClient extends ApiClientBase {
|
|
|
2500
2519
|
return of(null);
|
|
2501
2520
|
}
|
|
2502
2521
|
/**
|
|
2503
|
-
*
|
|
2504
|
-
* @param storefrontUserId Storefront user identifier
|
|
2505
|
-
* @param storefrontId Storefront identifier
|
|
2506
|
-
* @param tenantId (optional) Tenant identifier
|
|
2507
|
-
* @param userId (optional) User identifier
|
|
2522
|
+
* Returns an API access token for the specified storefront user.
|
|
2523
|
+
* @param storefrontUserId Storefront user identifier.
|
|
2524
|
+
* @param storefrontId Storefront identifier.
|
|
2525
|
+
* @param tenantId (optional) Tenant identifier.
|
|
2508
2526
|
* @return Success
|
|
2509
2527
|
*/
|
|
2510
|
-
getToken(storefrontUserId, storefrontId, tenantId
|
|
2528
|
+
getToken(storefrontUserId, storefrontId, tenantId) {
|
|
2511
2529
|
let url_ = this.baseUrl + "/api/storefront/v1/storefront-users/token?";
|
|
2512
2530
|
if (storefrontUserId === undefined || storefrontUserId === null)
|
|
2513
2531
|
throw new Error("The parameter 'storefrontUserId' must be defined and cannot be null.");
|
|
@@ -2519,13 +2537,13 @@ class StorefrontUsersApiClient extends ApiClientBase {
|
|
|
2519
2537
|
url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
|
|
2520
2538
|
if (tenantId !== undefined && tenantId !== null)
|
|
2521
2539
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
2522
|
-
if (userId !== undefined && userId !== null)
|
|
2523
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
2524
2540
|
url_ = url_.replace(/[?&]$/, "");
|
|
2525
2541
|
let options_ = {
|
|
2526
2542
|
observe: "response",
|
|
2527
2543
|
responseType: "blob",
|
|
2528
|
-
headers: new HttpHeaders({
|
|
2544
|
+
headers: new HttpHeaders({
|
|
2545
|
+
"Accept": "text/plain"
|
|
2546
|
+
})
|
|
2529
2547
|
};
|
|
2530
2548
|
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
2531
2549
|
return this.http.request("get", url_, transformedOptions_);
|
|
@@ -2556,7 +2574,9 @@ class StorefrontUsersApiClient extends ApiClientBase {
|
|
|
2556
2574
|
}
|
|
2557
2575
|
if (status === 201) {
|
|
2558
2576
|
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2559
|
-
|
|
2577
|
+
let result201 = null;
|
|
2578
|
+
result201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2579
|
+
return of(result201);
|
|
2560
2580
|
}));
|
|
2561
2581
|
}
|
|
2562
2582
|
else if (status === 404) {
|
|
@@ -2610,17 +2630,14 @@ class TenantInfoApiClient extends ApiClientBase {
|
|
|
2610
2630
|
this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : this.getBaseUrl("");
|
|
2611
2631
|
}
|
|
2612
2632
|
/**
|
|
2613
|
-
*
|
|
2614
|
-
* @param tenantId (optional) Tenant identifier
|
|
2615
|
-
* @param userId (optional) User identifier
|
|
2633
|
+
* Returns an information about the tenant applications.
|
|
2634
|
+
* @param tenantId (optional) Tenant identifier.
|
|
2616
2635
|
* @return Success
|
|
2617
2636
|
*/
|
|
2618
|
-
getApplicationsInfo(tenantId
|
|
2637
|
+
getApplicationsInfo(tenantId) {
|
|
2619
2638
|
let url_ = this.baseUrl + "/api/storefront/v1/tenant-info/applications?";
|
|
2620
2639
|
if (tenantId !== undefined && tenantId !== null)
|
|
2621
2640
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
2622
|
-
if (userId !== undefined && userId !== null)
|
|
2623
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
2624
2641
|
url_ = url_.replace(/[?&]$/, "");
|
|
2625
2642
|
let options_ = {
|
|
2626
2643
|
observe: "response",
|
|
@@ -2681,17 +2698,14 @@ class TenantInfoApiClient extends ApiClientBase {
|
|
|
2681
2698
|
return of(null);
|
|
2682
2699
|
}
|
|
2683
2700
|
/**
|
|
2684
|
-
*
|
|
2685
|
-
* @param tenantId (optional) Tenant identifier
|
|
2686
|
-
* @param userId (optional) User identifier
|
|
2701
|
+
* Returns an information about the tenant.
|
|
2702
|
+
* @param tenantId (optional) Tenant identifier.
|
|
2687
2703
|
* @return Success
|
|
2688
2704
|
*/
|
|
2689
|
-
getInfo(tenantId
|
|
2705
|
+
getInfo(tenantId) {
|
|
2690
2706
|
let url_ = this.baseUrl + "/api/storefront/v1/tenant-info?";
|
|
2691
2707
|
if (tenantId !== undefined && tenantId !== null)
|
|
2692
2708
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
2693
|
-
if (userId !== undefined && userId !== null)
|
|
2694
|
-
url_ += "userId=" + encodeURIComponent("" + userId) + "&";
|
|
2695
2709
|
url_ = url_.replace(/[?&]$/, "");
|
|
2696
2710
|
let options_ = {
|
|
2697
2711
|
observe: "response",
|
|
@@ -2763,7 +2777,7 @@ TenantInfoApiClient.ctorParameters = () => [
|
|
|
2763
2777
|
{ type: HttpClient, decorators: [{ type: Inject, args: [HttpClient,] }] },
|
|
2764
2778
|
{ type: String, decorators: [{ type: Optional }, { type: Inject, args: [API_BASE_URL,] }] }
|
|
2765
2779
|
];
|
|
2766
|
-
/**
|
|
2780
|
+
/** Defines all available date period filter values for queries. */
|
|
2767
2781
|
var DatePeriod;
|
|
2768
2782
|
(function (DatePeriod) {
|
|
2769
2783
|
DatePeriod["All"] = "All";
|
|
@@ -2771,7 +2785,7 @@ var DatePeriod;
|
|
|
2771
2785
|
DatePeriod["Last7Days"] = "Last7Days";
|
|
2772
2786
|
DatePeriod["Last30Days"] = "Last30Days";
|
|
2773
2787
|
})(DatePeriod || (DatePeriod = {}));
|
|
2774
|
-
/** Storefront types */
|
|
2788
|
+
/** Storefront types. */
|
|
2775
2789
|
var StorefrontType;
|
|
2776
2790
|
(function (StorefrontType) {
|
|
2777
2791
|
StorefrontType["Custom"] = "Custom";
|