@lana-commerce/core 14.0.0-alpha.27 → 14.0.0-alpha.28
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/package.json
CHANGED
|
@@ -2422,6 +2422,10 @@ export interface InfoTimezone {
|
|
|
2422
2422
|
/** Formatted offset from GMT of the given timezone */
|
|
2423
2423
|
offset: string;
|
|
2424
2424
|
}
|
|
2425
|
+
export interface InfoVersion {
|
|
2426
|
+
/** Backend API version */
|
|
2427
|
+
version: string;
|
|
2428
|
+
}
|
|
2425
2429
|
export interface InfoWebhook {
|
|
2426
2430
|
event_type: string;
|
|
2427
2431
|
fields: Array<string>;
|
|
@@ -4281,6 +4285,10 @@ export interface Organization {
|
|
|
4281
4285
|
owner?: {
|
|
4282
4286
|
id: string;
|
|
4283
4287
|
} | User | null;
|
|
4288
|
+
/** Organization is being transferred to this user */
|
|
4289
|
+
pending_transfer_user?: {
|
|
4290
|
+
id: string;
|
|
4291
|
+
} | User | null;
|
|
4284
4292
|
subscription: ShopSettingsSubscription;
|
|
4285
4293
|
/** Whether organization is in test mode or not */
|
|
4286
4294
|
test: boolean;
|
|
@@ -8576,6 +8584,15 @@ export interface UsageStat {
|
|
|
8576
8584
|
/** Price per item in USD cents */
|
|
8577
8585
|
price_per_item: number;
|
|
8578
8586
|
}
|
|
8587
|
+
export interface UsageStatHistory {
|
|
8588
|
+
/** The date and time when plan period ends */
|
|
8589
|
+
period_end: string;
|
|
8590
|
+
/** The date and time when plan period started */
|
|
8591
|
+
period_start: string;
|
|
8592
|
+
/** Unique shop identifier */
|
|
8593
|
+
shop_id: string;
|
|
8594
|
+
usage_stats: Array<UsageStat>;
|
|
8595
|
+
}
|
|
8579
8596
|
export interface User {
|
|
8580
8597
|
/** Raw content with user's bio */
|
|
8581
8598
|
bio_raw_content: string;
|
|
@@ -9627,6 +9644,7 @@ export interface OrganizationExpansionMap {
|
|
|
9627
9644
|
"billing_address.province"?: true;
|
|
9628
9645
|
default_payment_method?: true | PaymentMethodExpansionMap;
|
|
9629
9646
|
owner?: true | UserExpansionMap;
|
|
9647
|
+
pending_transfer_user?: true | UserExpansionMap;
|
|
9630
9648
|
}
|
|
9631
9649
|
export interface OrganizationInvitationExpansionMap {
|
|
9632
9650
|
roles?: true;
|
|
@@ -9636,6 +9654,7 @@ export interface OrganizationPageExpansionMap {
|
|
|
9636
9654
|
"items.billing_address.province"?: true;
|
|
9637
9655
|
"items.default_payment_method"?: true | PaymentMethodExpansionMap;
|
|
9638
9656
|
"items.owner"?: true | UserExpansionMap;
|
|
9657
|
+
"items.pending_transfer_user"?: true | UserExpansionMap;
|
|
9639
9658
|
}
|
|
9640
9659
|
export interface OrganizationUserExpansionMap {
|
|
9641
9660
|
roles?: true;
|
|
@@ -9646,6 +9665,7 @@ export interface OrganizationsHierarchyExpansionMap {
|
|
|
9646
9665
|
"organizations.billing_address.province"?: true;
|
|
9647
9666
|
"organizations.default_payment_method"?: true | PaymentMethodExpansionMap;
|
|
9648
9667
|
"organizations.owner"?: true | UserExpansionMap;
|
|
9668
|
+
"organizations.pending_transfer_user"?: true | UserExpansionMap;
|
|
9649
9669
|
"shops.entity"?: true | EntityExpansionMap;
|
|
9650
9670
|
"shops.organization"?: true | OrganizationExpansionMap;
|
|
9651
9671
|
"shops.pending_transfer_organization"?: true | OrganizationExpansionMap;
|
|
@@ -11530,6 +11550,9 @@ export interface EndpointInfoShippingProviders extends Endpoint<EndpointInfoShip
|
|
|
11530
11550
|
export interface EndpointInfoTimezones extends Endpoint<EndpointInfoTimezones, Array<InfoTimezone>> {
|
|
11531
11551
|
extract(v: Extractor<Array<InfoTimezone>>): EndpointInfoTimezones;
|
|
11532
11552
|
}
|
|
11553
|
+
export interface EndpointInfoVersion extends Endpoint<EndpointInfoVersion, InfoVersion> {
|
|
11554
|
+
extract(v: Extractor<InfoVersion>): EndpointInfoVersion;
|
|
11555
|
+
}
|
|
11533
11556
|
export interface EndpointInfoWebhooks extends Endpoint<EndpointInfoWebhooks, Array<InfoWebhook>> {
|
|
11534
11557
|
/** Output filtering */
|
|
11535
11558
|
fields(v: Array<string>): EndpointInfoWebhooks;
|
|
@@ -12365,6 +12388,10 @@ export interface EndpointOrganizationsModify extends Endpoint<EndpointOrganizati
|
|
|
12365
12388
|
expand(v: OrganizationExpansionMap): EndpointOrganizationsModify;
|
|
12366
12389
|
extract(v: Extractor<Array<Organization>>): EndpointOrganizationsModify;
|
|
12367
12390
|
}
|
|
12391
|
+
export interface EndpointOrganizationsAcceptOwnership extends Endpoint<EndpointOrganizationsAcceptOwnership, void> {
|
|
12392
|
+
/** Unique organization identifier. See also: [Unique Identifiers](/overview/concepts/unique-identifiers) */
|
|
12393
|
+
accept_organization_id(v: string): EndpointOrganizationsAcceptOwnership;
|
|
12394
|
+
}
|
|
12368
12395
|
export interface EndpointOrganizationsDeleteInit extends Endpoint<EndpointOrganizationsDeleteInit, void> {
|
|
12369
12396
|
/** Unique organization identifier. See also: [Unique Identifiers](/overview/concepts/unique-identifiers) */
|
|
12370
12397
|
organization_id(v: string): EndpointOrganizationsDeleteInit;
|
|
@@ -12409,6 +12436,8 @@ export interface EndpointOrganizationsInvitationsAccept extends Endpoint<Endpoin
|
|
|
12409
12436
|
fields(v: Array<string>): EndpointOrganizationsInvitationsAccept;
|
|
12410
12437
|
/** List of invitation ids. See also: [Unique Identifiers](/overview/concepts/unique-identifiers) */
|
|
12411
12438
|
ids(v: Array<string>): EndpointOrganizationsInvitationsAccept;
|
|
12439
|
+
/** Unique organization identifier. See also: [Unique Identifiers](/overview/concepts/unique-identifiers) */
|
|
12440
|
+
organization_id(v: string): EndpointOrganizationsInvitationsAccept;
|
|
12412
12441
|
expand(v: OrganizationInvitationExpansionMap): EndpointOrganizationsInvitationsAccept;
|
|
12413
12442
|
extract(v: Extractor<Array<OrganizationInvitation>>): EndpointOrganizationsInvitationsAccept;
|
|
12414
12443
|
}
|
|
@@ -12537,6 +12566,18 @@ export interface EndpointOrganizationsRolesModify extends Endpoint<EndpointOrgan
|
|
|
12537
12566
|
data(v: Array<RoleModify>): EndpointOrganizationsRolesModify;
|
|
12538
12567
|
extract(v: Extractor<Array<Role>>): EndpointOrganizationsRolesModify;
|
|
12539
12568
|
}
|
|
12569
|
+
export interface EndpointOrganizationsTransferOwnership extends Endpoint<EndpointOrganizationsTransferOwnership, void> {
|
|
12570
|
+
/** Verification code */
|
|
12571
|
+
code(v: string): EndpointOrganizationsTransferOwnership;
|
|
12572
|
+
/** Unique organization identifier. See also: [Unique Identifiers](/overview/concepts/unique-identifiers) */
|
|
12573
|
+
organization_id(v: string): EndpointOrganizationsTransferOwnership;
|
|
12574
|
+
/** Unique user identifier. See also: [Unique Identifiers](/overview/concepts/unique-identifiers) */
|
|
12575
|
+
user_id(v: string): EndpointOrganizationsTransferOwnership;
|
|
12576
|
+
}
|
|
12577
|
+
export interface EndpointOrganizationsTransferOwnershipInit extends Endpoint<EndpointOrganizationsTransferOwnershipInit, void> {
|
|
12578
|
+
/** Unique organization identifier. See also: [Unique Identifiers](/overview/concepts/unique-identifiers) */
|
|
12579
|
+
organization_id(v: string): EndpointOrganizationsTransferOwnershipInit;
|
|
12580
|
+
}
|
|
12540
12581
|
export interface EndpointOrganizationsUsage extends Endpoint<EndpointOrganizationsUsage, Array<UsageStat>> {
|
|
12541
12582
|
/** Upper boundary */
|
|
12542
12583
|
max(v: string): EndpointOrganizationsUsage;
|
|
@@ -12546,6 +12587,11 @@ export interface EndpointOrganizationsUsage extends Endpoint<EndpointOrganizatio
|
|
|
12546
12587
|
organization_id(v: string): EndpointOrganizationsUsage;
|
|
12547
12588
|
extract(v: Extractor<Array<UsageStat>>): EndpointOrganizationsUsage;
|
|
12548
12589
|
}
|
|
12590
|
+
export interface EndpointOrganizationsUsageHistory extends Endpoint<EndpointOrganizationsUsageHistory, Array<UsageStatHistory>> {
|
|
12591
|
+
/** Unique organization identifier. See also: [Unique Identifiers](/overview/concepts/unique-identifiers) */
|
|
12592
|
+
organization_id(v: string): EndpointOrganizationsUsageHistory;
|
|
12593
|
+
extract(v: Extractor<Array<UsageStatHistory>>): EndpointOrganizationsUsageHistory;
|
|
12594
|
+
}
|
|
12549
12595
|
export interface EndpointOrganizationsUsersDelete extends Endpoint<EndpointOrganizationsUsersDelete, void> {
|
|
12550
12596
|
/** List of user ids. See also: [Unique Identifiers](/overview/concepts/unique-identifiers) */
|
|
12551
12597
|
ids(v: Array<string>): EndpointOrganizationsUsersDelete;
|
|
@@ -15355,7 +15401,7 @@ export interface EndpointUsersWebauthn extends Endpoint<EndpointUsersWebauthn, v
|
|
|
15355
15401
|
export interface EndpointVariantInventory extends Endpoint<EndpointVariantInventory, Array<VariantInventory>> {
|
|
15356
15402
|
/** Output filtering */
|
|
15357
15403
|
fields(v: Array<string>): EndpointVariantInventory;
|
|
15358
|
-
/** List of variant ids. See also: [Unique Identifiers](/overview/concepts/unique-identifiers) */
|
|
15404
|
+
/** List of product variant ids. See also: [Unique Identifiers](/overview/concepts/unique-identifiers) */
|
|
15359
15405
|
ids(v: Array<string>): EndpointVariantInventory;
|
|
15360
15406
|
/** When asking for multiple items, allow returning less than was asked (in case some are missing) */
|
|
15361
15407
|
loose(v: boolean): EndpointVariantInventory;
|
|
@@ -15758,6 +15804,7 @@ export interface ReqFunction {
|
|
|
15758
15804
|
(ctx: Context, v: "GET:info/roles.json"): EndpointInfoRoles;
|
|
15759
15805
|
(ctx: Context, v: "GET:info/shipping_providers.json"): EndpointInfoShippingProviders;
|
|
15760
15806
|
(ctx: Context, v: "GET:info/timezones.json"): EndpointInfoTimezones;
|
|
15807
|
+
(ctx: Context, v: "GET:info/version.json"): EndpointInfoVersion;
|
|
15761
15808
|
(ctx: Context, v: "GET:info/webhooks.json"): EndpointInfoWebhooks;
|
|
15762
15809
|
(ctx: Context, v: "GET:inventory_locations.json"): EndpointInventoryLocations;
|
|
15763
15810
|
(ctx: Context, v: "POST:inventory_locations.json"): EndpointInventoryLocationsCreate;
|
|
@@ -15830,6 +15877,7 @@ export interface ReqFunction {
|
|
|
15830
15877
|
(ctx: Context, v: "DELETE:organizations.json"): EndpointOrganizationsDelete;
|
|
15831
15878
|
(ctx: Context, v: "GET:organizations.json"): EndpointOrganizations;
|
|
15832
15879
|
(ctx: Context, v: "POST:organizations.json"): EndpointOrganizationsCreate;
|
|
15880
|
+
(ctx: Context, v: "POST:organizations/accept_ownership.json"): EndpointOrganizationsAcceptOwnership;
|
|
15833
15881
|
(ctx: Context, v: "POST:organizations/delete_init.json"): EndpointOrganizationsDeleteInit;
|
|
15834
15882
|
(ctx: Context, v: "GET:organizations/hierarchy.json"): EndpointOrganizationsHierarchy;
|
|
15835
15883
|
(ctx: Context, v: "DELETE:organizations/invitations.json"): EndpointOrganizationsInvitationsDelete;
|
|
@@ -15848,7 +15896,10 @@ export interface ReqFunction {
|
|
|
15848
15896
|
(ctx: Context, v: "DELETE:organizations/roles.json"): EndpointOrganizationsRolesDelete;
|
|
15849
15897
|
(ctx: Context, v: "GET:organizations/roles.json"): EndpointOrganizationsRoles;
|
|
15850
15898
|
(ctx: Context, v: "POST:organizations/roles.json"): EndpointOrganizationsRolesCreate;
|
|
15899
|
+
(ctx: Context, v: "POST:organizations/transfer_ownership.json"): EndpointOrganizationsTransferOwnership;
|
|
15900
|
+
(ctx: Context, v: "POST:organizations/transfer_ownership_init.json"): EndpointOrganizationsTransferOwnershipInit;
|
|
15851
15901
|
(ctx: Context, v: "GET:organizations/usage.json"): EndpointOrganizationsUsage;
|
|
15902
|
+
(ctx: Context, v: "GET:organizations/usage_history.json"): EndpointOrganizationsUsageHistory;
|
|
15852
15903
|
(ctx: Context, v: "DELETE:organizations/users.json"): EndpointOrganizationsUsersDelete;
|
|
15853
15904
|
(ctx: Context, v: "GET:organizations/users.json"): EndpointOrganizationsUsers;
|
|
15854
15905
|
(ctx: Context, v: "POST:organizations/users.json"): EndpointOrganizationsUsers;
|
|
@@ -4952,7 +4952,7 @@ export interface EndpointStorefrontUsers extends Endpoint<EndpointStorefrontUser
|
|
|
4952
4952
|
export interface EndpointStorefrontVariantInventory extends Endpoint<EndpointStorefrontVariantInventory, Array<StorefrontVariantInventory>> {
|
|
4953
4953
|
/** Output filtering */
|
|
4954
4954
|
fields(v: Array<string>): EndpointStorefrontVariantInventory;
|
|
4955
|
-
/** List of variant ids. See also: [Unique Identifiers](/overview/concepts/unique-identifiers) */
|
|
4955
|
+
/** List of product variant ids. See also: [Unique Identifiers](/overview/concepts/unique-identifiers) */
|
|
4956
4956
|
ids(v: Array<string>): EndpointStorefrontVariantInventory;
|
|
4957
4957
|
/** When asking for multiple items, allow returning less than was asked (in case some are missing) */
|
|
4958
4958
|
loose(v: boolean): EndpointStorefrontVariantInventory;
|