@aurigma/ng-storefront-api-client 2.2.736 → 2.2.836
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 +615 -3
- 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/aurigma-ng-storefront-api-client.js +1 -1
- package/esm2015/lib/storefront-api-client.js +531 -1
- package/esm2015/lib/storefront.module.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/fesm2015/aurigma-ng-storefront-api-client.js +531 -1
- package/fesm2015/aurigma-ng-storefront-api-client.js.map +1 -1
- package/lib/storefront-api-client.d.ts +169 -0
- package/package.json +1 -1
|
@@ -508,6 +508,117 @@ export declare class StorefrontsApiClient extends ApiClientBase implements IStor
|
|
|
508
508
|
get(id: number, tenantId?: number | null | undefined, userId?: number | null | undefined): Observable<StorefrontDto>;
|
|
509
509
|
protected processGet(response: HttpResponseBase): Observable<StorefrontDto>;
|
|
510
510
|
}
|
|
511
|
+
export interface IStorefrontUsersApiClient {
|
|
512
|
+
/**
|
|
513
|
+
* Gets all storefront users relevant to specified query parameters
|
|
514
|
+
* @param storefrontId Storefront identifier
|
|
515
|
+
* @param storefrontUserId (optional) Storefront user identifier
|
|
516
|
+
* @param skip (optional) Defines page start offset from beginning of sorted result list
|
|
517
|
+
* @param take (optional) Defines page length (how much consequent items of sorted result list should be taken)
|
|
518
|
+
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC"
|
|
519
|
+
* @param search (optional) Search string for partial match
|
|
520
|
+
* @param tenantId (optional) Tenant identifier
|
|
521
|
+
* @param userId (optional) User identifier
|
|
522
|
+
* @return Success
|
|
523
|
+
*/
|
|
524
|
+
getAll(storefrontId: number, storefrontUserId?: string | null | undefined, skip?: number | null | undefined, take?: number | null | undefined, sorting?: string | null | undefined, search?: string | null | undefined, tenantId?: number | null | undefined, userId?: number | null | undefined): Observable<PagedOfStorefrontUserDto>;
|
|
525
|
+
/**
|
|
526
|
+
* Creates new storefront user
|
|
527
|
+
* @param storefrontId Storefront identifier
|
|
528
|
+
* @param tenantId (optional) Tenant identifier
|
|
529
|
+
* @param userId (optional) User identifier
|
|
530
|
+
* @param body (optional) Create operation parameters
|
|
531
|
+
* @return Success
|
|
532
|
+
*/
|
|
533
|
+
create(storefrontId: number, tenantId?: number | null | undefined, userId?: number | null | undefined, body?: CreateStorefrontUserDto | undefined): Observable<StorefrontUserDto>;
|
|
534
|
+
/**
|
|
535
|
+
* Gets storefront user by id
|
|
536
|
+
* @param id Storefront user identifier
|
|
537
|
+
* @param storefrontId Storefront identifier
|
|
538
|
+
* @param tenantId (optional) Tenant identifier
|
|
539
|
+
* @param userId (optional) User identifier
|
|
540
|
+
* @return Success
|
|
541
|
+
*/
|
|
542
|
+
get(id: string | null, storefrontId: number, tenantId?: number | null | undefined, userId?: number | null | undefined): Observable<StorefrontUserDto>;
|
|
543
|
+
/**
|
|
544
|
+
* Merges anonymous storefront user data to regular storefront user account
|
|
545
|
+
* @param storefrontId Storefront identifier
|
|
546
|
+
* @param tenantId (optional) Tenant identifier
|
|
547
|
+
* @param userId (optional) User identifier
|
|
548
|
+
* @param body (optional) Merge operation parameters
|
|
549
|
+
* @return Success
|
|
550
|
+
*/
|
|
551
|
+
mergeAnonymous(storefrontId: number, tenantId?: number | null | undefined, userId?: number | null | undefined, body?: MergeAnonymousUserDataInput | undefined): Observable<void>;
|
|
552
|
+
/**
|
|
553
|
+
* Gets storefront user token
|
|
554
|
+
* @param storefrontUserId Storefront user identifier
|
|
555
|
+
* @param storefrontId Storefront identifier
|
|
556
|
+
* @param tenantId (optional) Tenant identifier
|
|
557
|
+
* @param userId (optional) User identifier
|
|
558
|
+
* @return Success
|
|
559
|
+
*/
|
|
560
|
+
getToken(storefrontUserId: string, storefrontId: number, tenantId?: number | null | undefined, userId?: number | null | undefined): Observable<void>;
|
|
561
|
+
}
|
|
562
|
+
export declare class StorefrontUsersApiClient extends ApiClientBase implements IStorefrontUsersApiClient {
|
|
563
|
+
private http;
|
|
564
|
+
private baseUrl;
|
|
565
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
566
|
+
constructor(configuration: ApiClientConfiguration, http: HttpClient, baseUrl?: string);
|
|
567
|
+
/**
|
|
568
|
+
* Gets all storefront users relevant to specified query parameters
|
|
569
|
+
* @param storefrontId Storefront identifier
|
|
570
|
+
* @param storefrontUserId (optional) Storefront user identifier
|
|
571
|
+
* @param skip (optional) Defines page start offset from beginning of sorted result list
|
|
572
|
+
* @param take (optional) Defines page length (how much consequent items of sorted result list should be taken)
|
|
573
|
+
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC"
|
|
574
|
+
* @param search (optional) Search string for partial match
|
|
575
|
+
* @param tenantId (optional) Tenant identifier
|
|
576
|
+
* @param userId (optional) User identifier
|
|
577
|
+
* @return Success
|
|
578
|
+
*/
|
|
579
|
+
getAll(storefrontId: number, storefrontUserId?: string | null | undefined, skip?: number | null | undefined, take?: number | null | undefined, sorting?: string | null | undefined, search?: string | null | undefined, tenantId?: number | null | undefined, userId?: number | null | undefined): Observable<PagedOfStorefrontUserDto>;
|
|
580
|
+
protected processGetAll(response: HttpResponseBase): Observable<PagedOfStorefrontUserDto>;
|
|
581
|
+
/**
|
|
582
|
+
* Creates new storefront user
|
|
583
|
+
* @param storefrontId Storefront identifier
|
|
584
|
+
* @param tenantId (optional) Tenant identifier
|
|
585
|
+
* @param userId (optional) User identifier
|
|
586
|
+
* @param body (optional) Create operation parameters
|
|
587
|
+
* @return Success
|
|
588
|
+
*/
|
|
589
|
+
create(storefrontId: number, tenantId?: number | null | undefined, userId?: number | null | undefined, body?: CreateStorefrontUserDto | undefined): Observable<StorefrontUserDto>;
|
|
590
|
+
protected processCreate(response: HttpResponseBase): Observable<StorefrontUserDto>;
|
|
591
|
+
/**
|
|
592
|
+
* Gets storefront user by id
|
|
593
|
+
* @param id Storefront user identifier
|
|
594
|
+
* @param storefrontId Storefront identifier
|
|
595
|
+
* @param tenantId (optional) Tenant identifier
|
|
596
|
+
* @param userId (optional) User identifier
|
|
597
|
+
* @return Success
|
|
598
|
+
*/
|
|
599
|
+
get(id: string | null, storefrontId: number, tenantId?: number | null | undefined, userId?: number | null | undefined): Observable<StorefrontUserDto>;
|
|
600
|
+
protected processGet(response: HttpResponseBase): Observable<StorefrontUserDto>;
|
|
601
|
+
/**
|
|
602
|
+
* Merges anonymous storefront user data to regular storefront user account
|
|
603
|
+
* @param storefrontId Storefront identifier
|
|
604
|
+
* @param tenantId (optional) Tenant identifier
|
|
605
|
+
* @param userId (optional) User identifier
|
|
606
|
+
* @param body (optional) Merge operation parameters
|
|
607
|
+
* @return Success
|
|
608
|
+
*/
|
|
609
|
+
mergeAnonymous(storefrontId: number, tenantId?: number | null | undefined, userId?: number | null | undefined, body?: MergeAnonymousUserDataInput | undefined): Observable<void>;
|
|
610
|
+
protected processMergeAnonymous(response: HttpResponseBase): Observable<void>;
|
|
611
|
+
/**
|
|
612
|
+
* Gets storefront user token
|
|
613
|
+
* @param storefrontUserId Storefront user identifier
|
|
614
|
+
* @param storefrontId Storefront identifier
|
|
615
|
+
* @param tenantId (optional) Tenant identifier
|
|
616
|
+
* @param userId (optional) User identifier
|
|
617
|
+
* @return Success
|
|
618
|
+
*/
|
|
619
|
+
getToken(storefrontUserId: string, storefrontId: number, tenantId?: number | null | undefined, userId?: number | null | undefined): Observable<void>;
|
|
620
|
+
protected processGetToken(response: HttpResponseBase): Observable<void>;
|
|
621
|
+
}
|
|
511
622
|
export interface ITenantInfoApiClient {
|
|
512
623
|
/**
|
|
513
624
|
* Gets information about tenant applications
|
|
@@ -516,6 +627,13 @@ export interface ITenantInfoApiClient {
|
|
|
516
627
|
* @return Success
|
|
517
628
|
*/
|
|
518
629
|
getApplicationsInfo(tenantId?: number | null | undefined, userId?: number | null | undefined): Observable<TenantApplicationsInfoDto>;
|
|
630
|
+
/**
|
|
631
|
+
* Gets information about tenant
|
|
632
|
+
* @param tenantId (optional) Tenant identifier
|
|
633
|
+
* @param userId (optional) User identifier
|
|
634
|
+
* @return Success
|
|
635
|
+
*/
|
|
636
|
+
getInfo(tenantId?: number | null | undefined, userId?: number | null | undefined): Observable<TenantInfoDto>;
|
|
519
637
|
}
|
|
520
638
|
export declare class TenantInfoApiClient extends ApiClientBase implements ITenantInfoApiClient {
|
|
521
639
|
private http;
|
|
@@ -530,6 +648,14 @@ export declare class TenantInfoApiClient extends ApiClientBase implements ITenan
|
|
|
530
648
|
*/
|
|
531
649
|
getApplicationsInfo(tenantId?: number | null | undefined, userId?: number | null | undefined): Observable<TenantApplicationsInfoDto>;
|
|
532
650
|
protected processGetApplicationsInfo(response: HttpResponseBase): Observable<TenantApplicationsInfoDto>;
|
|
651
|
+
/**
|
|
652
|
+
* Gets information about tenant
|
|
653
|
+
* @param tenantId (optional) Tenant identifier
|
|
654
|
+
* @param userId (optional) User identifier
|
|
655
|
+
* @return Success
|
|
656
|
+
*/
|
|
657
|
+
getInfo(tenantId?: number | null | undefined, userId?: number | null | undefined): Observable<TenantInfoDto>;
|
|
658
|
+
protected processGetInfo(response: HttpResponseBase): Observable<TenantInfoDto>;
|
|
533
659
|
}
|
|
534
660
|
/** Information about a service */
|
|
535
661
|
export interface BuildInfoModel {
|
|
@@ -618,6 +744,8 @@ export declare enum DatePeriod {
|
|
|
618
744
|
export interface ProjectItemDto {
|
|
619
745
|
/** Item name */
|
|
620
746
|
name?: string | null;
|
|
747
|
+
/** Item quantity information */
|
|
748
|
+
quantity?: number | null;
|
|
621
749
|
/** Item information */
|
|
622
750
|
fields?: {
|
|
623
751
|
[key: string]: any;
|
|
@@ -756,6 +884,38 @@ export interface PagedOfStorefrontDto {
|
|
|
756
884
|
/** Items list */
|
|
757
885
|
items?: StorefrontDto[] | null;
|
|
758
886
|
}
|
|
887
|
+
/** Storefront user dto class */
|
|
888
|
+
export interface StorefrontUserDto {
|
|
889
|
+
/** Storefront user identifier */
|
|
890
|
+
userId?: string | null;
|
|
891
|
+
/** Storefront tenant indentifier */
|
|
892
|
+
tenantId?: number;
|
|
893
|
+
/** Storefront identifier */
|
|
894
|
+
storefrontId?: number | null;
|
|
895
|
+
/** Indicates whether user is an anonymous */
|
|
896
|
+
isAnonymous?: boolean;
|
|
897
|
+
}
|
|
898
|
+
/** Paged list of items */
|
|
899
|
+
export interface PagedOfStorefrontUserDto {
|
|
900
|
+
/** Items count */
|
|
901
|
+
total?: number;
|
|
902
|
+
/** Items list */
|
|
903
|
+
items?: StorefrontUserDto[] | null;
|
|
904
|
+
}
|
|
905
|
+
/** Dto class, containing create operation parameters for storefront user entity */
|
|
906
|
+
export interface CreateStorefrontUserDto {
|
|
907
|
+
/** Storefront user identifier */
|
|
908
|
+
storefrontUserId?: string | null;
|
|
909
|
+
/** Indicates whether user is an anonymous */
|
|
910
|
+
isAnonymous?: boolean;
|
|
911
|
+
}
|
|
912
|
+
/** Dto class, containing parameters for merge anonymous user operation */
|
|
913
|
+
export interface MergeAnonymousUserDataInput {
|
|
914
|
+
/** Anonymous storefront user identifier */
|
|
915
|
+
anonymousStorefrontUserId?: string | null;
|
|
916
|
+
/** Regular storefront user identifier */
|
|
917
|
+
regularStorefrontUserId?: string | null;
|
|
918
|
+
}
|
|
759
919
|
/** Dto class, containing information about tenant applications */
|
|
760
920
|
export interface TenantApplicationsInfoDto {
|
|
761
921
|
designEditorUrl?: string | null;
|
|
@@ -764,6 +924,15 @@ export interface TenantApplicationsInfoDto {
|
|
|
764
924
|
dynamicImageUrl?: string | null;
|
|
765
925
|
tenantId?: number;
|
|
766
926
|
}
|
|
927
|
+
/** Dto class, containing information about tenant */
|
|
928
|
+
export interface TenantInfoDto {
|
|
929
|
+
/** Tenant identifier */
|
|
930
|
+
tenantId?: number;
|
|
931
|
+
/** Tenancy name */
|
|
932
|
+
tenancyName?: string | null;
|
|
933
|
+
/** Tenant creation time */
|
|
934
|
+
tenantCreationTime?: string;
|
|
935
|
+
}
|
|
767
936
|
export interface FileResponse {
|
|
768
937
|
data: Blob;
|
|
769
938
|
status: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aurigma/ng-storefront-api-client",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.836",
|
|
4
4
|
"license": "SEE LICENSE IN License.md",
|
|
5
5
|
"description": "Angular API Client for Storefront API service of Customer's Canvas web-to-print system.",
|
|
6
6
|
"author": "Aurigma Inc <info@aurigma.com> (https://customerscanvas.com)",
|