@forgecart/sdk 1.202607070306.0 → 1.202607091048.0
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/README.md +1 -1
- package/dist/admin-types.generated.d.ts +141 -0
- package/dist/admin.d.ts +3 -0
- package/dist/admin.generated.d.ts +28 -0
- package/dist/admin.generated.js +56 -2
- package/dist/admin.js +49 -43
- package/dist/client.generated.d.ts +3 -0
- package/dist/client.generated.js +9 -0
- package/dist/documents.generated.d.ts +6 -0
- package/dist/documents.generated.js +84 -9
- package/dist/shop-types.generated.d.ts +73 -0
- package/package.json +1 -1
- package/src/admin-types.generated.ts +224 -0
- package/src/admin.generated.ts +53 -1
- package/src/admin.ts +3 -0
- package/src/client.generated.ts +9 -0
- package/src/documents.generated.ts +81 -0
- package/src/shop-types.generated.ts +86 -0
package/README.md
CHANGED
|
@@ -56,7 +56,7 @@ const order = await client.shop.cart.addItemToOrder({ variantId, quantity: 1 });
|
|
|
56
56
|
|
|
57
57
|
## Namespaces
|
|
58
58
|
|
|
59
|
-
- `client.admin` — entry, fieldDefinition, publish, acfSchema, acf, administrator, analyticsGateway, asset, audienceMembership, audienceSegment, auth, settings, channel, chat, collection, country, address, group, customerGroup, customer, deployment, facet, fulfillmentRequest, fulfillment, hookDispatch, hook, market, marketingAttribution, marketingEvent, marketingIdentity, mission, onboarding, coupon, draft, modification, note, orderModification, order, payment, manageable, plugin, optionGroup, option, productOption, productVariant, product, promotion, role, scheduledJob, search, seller, sellingPlan, shipping, stock, subscriptionAnalytics, subscription, tax, transaction, zone
|
|
59
|
+
- `client.admin` — entry, fieldDefinition, publish, acfSchema, acf, administrator, analyticsGateway, asset, audienceMembership, audienceSegment, auth, settings, channel, chat, collection, country, address, group, customerAnalytics, customerGroup, customer, deployment, facet, fulfillmentRequest, fulfillment, hookDispatch, hook, market, marketingAttribution, marketingEvent, marketingIdentity, mission, onboarding, coupon, draft, modification, note, orderAnalytics, orderModification, order, payment, manageable, plugin, optionGroup, option, productOption, productVariant, product, promotion, role, scheduledJob, search, seller, sellingPlan, shipping, stockAnalytics, stock, subscriptionAnalytics, subscription, tax, transaction, zone
|
|
60
60
|
- `client.shop` — acf, auth, cart, channel, checkout, collection, customer, facet, hookDispatch, hook, marketingEvent, marketingIdentity, order, payment, product, search, sellingPlan, shipping, subscription
|
|
61
61
|
|
|
62
62
|
## NestJS Integration
|
|
@@ -1115,6 +1115,10 @@ export type Customer = {
|
|
|
1115
1115
|
title?: Maybe<Scalars['String']['output']>;
|
|
1116
1116
|
updatedAt: Scalars['DateTime']['output'];
|
|
1117
1117
|
};
|
|
1118
|
+
export type CustomerAnalyticsInput = {
|
|
1119
|
+
dateRangeFrom: Scalars['DateTime']['input'];
|
|
1120
|
+
dateRangeTo: Scalars['DateTime']['input'];
|
|
1121
|
+
};
|
|
1118
1122
|
export type CustomerGroup = {
|
|
1119
1123
|
createdAt: Scalars['DateTime']['output'];
|
|
1120
1124
|
customers: Array<Customer>;
|
|
@@ -1130,6 +1134,10 @@ export type CustomerList = {
|
|
|
1130
1134
|
items: Array<Customer>;
|
|
1131
1135
|
totalItems: Scalars['Int']['output'];
|
|
1132
1136
|
};
|
|
1137
|
+
export type CustomerSignupPoint = {
|
|
1138
|
+
count: Scalars['Int']['output'];
|
|
1139
|
+
day: Scalars['String']['output'];
|
|
1140
|
+
};
|
|
1133
1141
|
export type CustomsInput = {
|
|
1134
1142
|
contentsType?: InputMaybe<Scalars['String']['input']>;
|
|
1135
1143
|
hsCode: Scalars['String']['input'];
|
|
@@ -1574,6 +1582,16 @@ export type ListQueryOptions = {
|
|
|
1574
1582
|
sort?: InputMaybe<Scalars['JSON']['input']>;
|
|
1575
1583
|
take?: InputMaybe<Scalars['Int']['input']>;
|
|
1576
1584
|
};
|
|
1585
|
+
export type LowStockVariant = {
|
|
1586
|
+
available: Scalars['Int']['output'];
|
|
1587
|
+
name: Scalars['String']['output'];
|
|
1588
|
+
sku?: Maybe<Scalars['String']['output']>;
|
|
1589
|
+
threshold: Scalars['Int']['output'];
|
|
1590
|
+
variantId: Scalars['ID']['output'];
|
|
1591
|
+
};
|
|
1592
|
+
export type LowStockVariantsInput = {
|
|
1593
|
+
take?: InputMaybe<Scalars['Int']['input']>;
|
|
1594
|
+
};
|
|
1577
1595
|
export type ManageablePlugin = {
|
|
1578
1596
|
channelPlugins: Array<ChannelPlugin>;
|
|
1579
1597
|
code: Scalars['String']['output'];
|
|
@@ -1637,6 +1655,17 @@ export type MarketingAttribution = {
|
|
|
1637
1655
|
touchpoints: Array<MarketingTouchpoint>;
|
|
1638
1656
|
touchpointsWithCredit: Array<MarketingTouchpointWithCredit>;
|
|
1639
1657
|
};
|
|
1658
|
+
export type MarketingEventGeoBucket = {
|
|
1659
|
+
count: Scalars['Int']['output'];
|
|
1660
|
+
country: Scalars['String']['output'];
|
|
1661
|
+
region?: Maybe<Scalars['String']['output']>;
|
|
1662
|
+
uniqueIdentities: Scalars['Int']['output'];
|
|
1663
|
+
};
|
|
1664
|
+
export type MarketingEventGeoRollupInput = {
|
|
1665
|
+
eventType?: InputMaybe<Scalars['String']['input']>;
|
|
1666
|
+
from: Scalars['DateTime']['input'];
|
|
1667
|
+
to: Scalars['DateTime']['input'];
|
|
1668
|
+
};
|
|
1640
1669
|
export type MarketingEventSummary = {
|
|
1641
1670
|
count: Scalars['Int']['output'];
|
|
1642
1671
|
durationMs: Scalars['Int']['output'];
|
|
@@ -1683,6 +1712,23 @@ export type MarketingIdentityIdentifier = {
|
|
|
1683
1712
|
position?: Maybe<Scalars['Int']['output']>;
|
|
1684
1713
|
value: Scalars['String']['output'];
|
|
1685
1714
|
};
|
|
1715
|
+
export type MarketingLiveVisitor = {
|
|
1716
|
+
browser?: Maybe<Scalars['String']['output']>;
|
|
1717
|
+
city?: Maybe<Scalars['String']['output']>;
|
|
1718
|
+
country?: Maybe<Scalars['String']['output']>;
|
|
1719
|
+
deviceType?: Maybe<Scalars['String']['output']>;
|
|
1720
|
+
eventCount: Scalars['Int']['output'];
|
|
1721
|
+
identityId: Scalars['ID']['output'];
|
|
1722
|
+
isCustomer: Scalars['Boolean']['output'];
|
|
1723
|
+
lastEventType: Scalars['String']['output'];
|
|
1724
|
+
lastSeenAt: Scalars['DateTime']['output'];
|
|
1725
|
+
latitude?: Maybe<Scalars['Float']['output']>;
|
|
1726
|
+
longitude?: Maybe<Scalars['Float']['output']>;
|
|
1727
|
+
os?: Maybe<Scalars['String']['output']>;
|
|
1728
|
+
};
|
|
1729
|
+
export type MarketingLiveVisitorsInput = {
|
|
1730
|
+
windowMinutes: Scalars['Int']['input'];
|
|
1731
|
+
};
|
|
1686
1732
|
export type MarketingTouchpoint = {
|
|
1687
1733
|
dedupCount: Scalars['Int']['output'];
|
|
1688
1734
|
eventId: Scalars['ID']['output'];
|
|
@@ -2791,6 +2837,16 @@ export type OrderAddress = {
|
|
|
2791
2837
|
streetLine1: Scalars['String']['output'];
|
|
2792
2838
|
streetLine2?: Maybe<Scalars['String']['output']>;
|
|
2793
2839
|
};
|
|
2840
|
+
export type OrderAnalytics = {
|
|
2841
|
+
averageOrderValueMinor: Scalars['Int']['output'];
|
|
2842
|
+
orderCount: Scalars['Int']['output'];
|
|
2843
|
+
revenueByDay: Array<OrderRevenuePoint>;
|
|
2844
|
+
totalRevenueMinor: Scalars['Int']['output'];
|
|
2845
|
+
};
|
|
2846
|
+
export type OrderAnalyticsInput = {
|
|
2847
|
+
dateRangeFrom: Scalars['DateTime']['input'];
|
|
2848
|
+
dateRangeTo: Scalars['DateTime']['input'];
|
|
2849
|
+
};
|
|
2794
2850
|
export type OrderCouponCodeInput = {
|
|
2795
2851
|
couponCode: Scalars['String']['input'];
|
|
2796
2852
|
orderId: Scalars['ID']['input'];
|
|
@@ -2855,6 +2911,11 @@ export type OrderNotesInput = {
|
|
|
2855
2911
|
options?: InputMaybe<ListQueryOptions>;
|
|
2856
2912
|
orderId: Scalars['ID']['input'];
|
|
2857
2913
|
};
|
|
2914
|
+
export type OrderRevenuePoint = {
|
|
2915
|
+
day: Scalars['String']['output'];
|
|
2916
|
+
orderCount: Scalars['Int']['output'];
|
|
2917
|
+
revenueMinor: Scalars['Int']['output'];
|
|
2918
|
+
};
|
|
2858
2919
|
export type OrderTaxLine = {
|
|
2859
2920
|
description: Scalars['String']['output'];
|
|
2860
2921
|
taxAmount: Scalars['Int']['output'];
|
|
@@ -3139,6 +3200,7 @@ export type Query = {
|
|
|
3139
3200
|
customer?: Maybe<Customer>;
|
|
3140
3201
|
customerGroup?: Maybe<CustomerGroup>;
|
|
3141
3202
|
customerGroups: CustomerGroupList;
|
|
3203
|
+
customerSignupsByDay: Array<CustomerSignupPoint>;
|
|
3142
3204
|
customers: CustomerList;
|
|
3143
3205
|
defaultStockLocation: StockLocation;
|
|
3144
3206
|
deployment?: Maybe<Deployment>;
|
|
@@ -3166,15 +3228,19 @@ export type Query = {
|
|
|
3166
3228
|
getSessionTemplate: PaymentFormTemplate;
|
|
3167
3229
|
getSessionVariables: PaymentFormVariables;
|
|
3168
3230
|
getTokenTemplate: PaymentFormTemplate;
|
|
3231
|
+
lowStockVariants: Array<LowStockVariant>;
|
|
3169
3232
|
manageablePlugin?: Maybe<ManageablePlugin>;
|
|
3170
3233
|
manageablePlugins: Array<ManageablePlugin>;
|
|
3171
3234
|
manageablePluginsByTag: Array<ManageablePlugin>;
|
|
3235
|
+
marketingEventGeoRollup: Array<MarketingEventGeoBucket>;
|
|
3172
3236
|
marketingIdentity?: Maybe<MarketingIdentity>;
|
|
3173
3237
|
marketingIdentityByCustomer?: Maybe<MarketingIdentity>;
|
|
3238
|
+
marketingLiveVisitors: Array<MarketingLiveVisitor>;
|
|
3174
3239
|
markets: MarketList;
|
|
3175
3240
|
mission?: Maybe<Mission>;
|
|
3176
3241
|
missions: MissionList;
|
|
3177
3242
|
order?: Maybe<Order>;
|
|
3243
|
+
orderAnalytics: OrderAnalytics;
|
|
3178
3244
|
orderByCode?: Maybe<Order>;
|
|
3179
3245
|
orderHistory: HistoryEntryList;
|
|
3180
3246
|
orderModifications: Array<OrderModification>;
|
|
@@ -3220,6 +3286,7 @@ export type Query = {
|
|
|
3220
3286
|
taxCategory?: Maybe<TaxCategory>;
|
|
3221
3287
|
taxRate?: Maybe<TaxRate>;
|
|
3222
3288
|
taxRates: TaxRateList;
|
|
3289
|
+
topProducts: Array<TopProduct>;
|
|
3223
3290
|
usageMetrics: Array<UsageMetric>;
|
|
3224
3291
|
usageRecords: UsageRecordList;
|
|
3225
3292
|
validateChannelToken: Scalars['Boolean']['output'];
|
|
@@ -3311,6 +3378,9 @@ export type QuerycustomerGroupArgs = {
|
|
|
3311
3378
|
export type QuerycustomerGroupsArgs = {
|
|
3312
3379
|
options?: InputMaybe<ListQueryOptions>;
|
|
3313
3380
|
};
|
|
3381
|
+
export type QuerycustomerSignupsByDayArgs = {
|
|
3382
|
+
input: CustomerAnalyticsInput;
|
|
3383
|
+
};
|
|
3314
3384
|
export type QuerycustomersArgs = {
|
|
3315
3385
|
options?: InputMaybe<ListQueryOptions>;
|
|
3316
3386
|
};
|
|
@@ -3384,18 +3454,27 @@ export type QuerygetSessionVariablesArgs = {
|
|
|
3384
3454
|
export type QuerygetTokenTemplateArgs = {
|
|
3385
3455
|
providerCode: Scalars['String']['input'];
|
|
3386
3456
|
};
|
|
3457
|
+
export type QuerylowStockVariantsArgs = {
|
|
3458
|
+
input: LowStockVariantsInput;
|
|
3459
|
+
};
|
|
3387
3460
|
export type QuerymanageablePluginArgs = {
|
|
3388
3461
|
code: Scalars['String']['input'];
|
|
3389
3462
|
};
|
|
3390
3463
|
export type QuerymanageablePluginsByTagArgs = {
|
|
3391
3464
|
tag: Scalars['String']['input'];
|
|
3392
3465
|
};
|
|
3466
|
+
export type QuerymarketingEventGeoRollupArgs = {
|
|
3467
|
+
input: MarketingEventGeoRollupInput;
|
|
3468
|
+
};
|
|
3393
3469
|
export type QuerymarketingIdentityArgs = {
|
|
3394
3470
|
id: Scalars['ID']['input'];
|
|
3395
3471
|
};
|
|
3396
3472
|
export type QuerymarketingIdentityByCustomerArgs = {
|
|
3397
3473
|
customerId: Scalars['ID']['input'];
|
|
3398
3474
|
};
|
|
3475
|
+
export type QuerymarketingLiveVisitorsArgs = {
|
|
3476
|
+
input: MarketingLiveVisitorsInput;
|
|
3477
|
+
};
|
|
3399
3478
|
export type QuerymarketsArgs = {
|
|
3400
3479
|
options?: InputMaybe<ListQueryOptions>;
|
|
3401
3480
|
};
|
|
@@ -3408,6 +3487,9 @@ export type QuerymissionsArgs = {
|
|
|
3408
3487
|
export type QueryorderArgs = {
|
|
3409
3488
|
id: Scalars['ID']['input'];
|
|
3410
3489
|
};
|
|
3490
|
+
export type QueryorderAnalyticsArgs = {
|
|
3491
|
+
input: OrderAnalyticsInput;
|
|
3492
|
+
};
|
|
3411
3493
|
export type QueryorderByCodeArgs = {
|
|
3412
3494
|
code: Scalars['String']['input'];
|
|
3413
3495
|
};
|
|
@@ -3531,6 +3613,9 @@ export type QuerytaxRateArgs = {
|
|
|
3531
3613
|
export type QuerytaxRatesArgs = {
|
|
3532
3614
|
options?: InputMaybe<ListQueryOptions>;
|
|
3533
3615
|
};
|
|
3616
|
+
export type QuerytopProductsArgs = {
|
|
3617
|
+
input: TopProductsInput;
|
|
3618
|
+
};
|
|
3534
3619
|
export type QueryusageRecordsArgs = {
|
|
3535
3620
|
options?: InputMaybe<UsageRecordListOptions>;
|
|
3536
3621
|
subscriptionId: Scalars['ID']['input'];
|
|
@@ -4330,6 +4415,17 @@ export type ToolUseDetail = {
|
|
|
4330
4415
|
toolId: Scalars['String']['output'];
|
|
4331
4416
|
toolName: Scalars['String']['output'];
|
|
4332
4417
|
};
|
|
4418
|
+
export type TopProduct = {
|
|
4419
|
+
productId: Scalars['ID']['output'];
|
|
4420
|
+
productName: Scalars['String']['output'];
|
|
4421
|
+
revenueMinor: Scalars['Int']['output'];
|
|
4422
|
+
unitsSold: Scalars['Int']['output'];
|
|
4423
|
+
};
|
|
4424
|
+
export type TopProductsInput = {
|
|
4425
|
+
dateRangeFrom: Scalars['DateTime']['input'];
|
|
4426
|
+
dateRangeTo: Scalars['DateTime']['input'];
|
|
4427
|
+
take?: InputMaybe<Scalars['Int']['input']>;
|
|
4428
|
+
};
|
|
4333
4429
|
export type TrackEventInput = {
|
|
4334
4430
|
eventType: Scalars['String']['input'];
|
|
4335
4431
|
occurredAt?: InputMaybe<Scalars['DateTime']['input']>;
|
|
@@ -4384,6 +4480,7 @@ export type UpdateAddressInput = {
|
|
|
4384
4480
|
streetLine2?: InputMaybe<Scalars['String']['input']>;
|
|
4385
4481
|
};
|
|
4386
4482
|
export type UpdateAdministratorInput = {
|
|
4483
|
+
avatarUrl?: InputMaybe<Scalars['String']['input']>;
|
|
4387
4484
|
emailAddress?: InputMaybe<Scalars['String']['input']>;
|
|
4388
4485
|
firstName?: InputMaybe<Scalars['String']['input']>;
|
|
4389
4486
|
id: Scalars['ID']['input'];
|
|
@@ -5901,6 +5998,13 @@ export type DeleteCountryMutationVariables = Exact<{
|
|
|
5901
5998
|
export type DeleteCountryMutation = {
|
|
5902
5999
|
deleteCountry: Pick<DeletionResponse, 'result' | 'message'>;
|
|
5903
6000
|
};
|
|
6001
|
+
export type CustomerSignupPointFieldFragment = Pick<CustomerSignupPoint, 'day' | 'count'>;
|
|
6002
|
+
export type CustomerSignupsByDayQueryVariables = Exact<{
|
|
6003
|
+
input: CustomerAnalyticsInput;
|
|
6004
|
+
}>;
|
|
6005
|
+
export type CustomerSignupsByDayQuery = {
|
|
6006
|
+
customerSignupsByDay: Array<Pick<CustomerSignupPoint, 'day' | 'count'>>;
|
|
6007
|
+
};
|
|
5904
6008
|
export type CreateCustomerGroupMutationVariables = Exact<{
|
|
5905
6009
|
input: CreateCustomerGroupInput;
|
|
5906
6010
|
}>;
|
|
@@ -6574,6 +6678,18 @@ export type AdminQueryMarketingEventSummaryQueryVariables = Exact<{
|
|
|
6574
6678
|
export type AdminQueryMarketingEventSummaryQuery = {
|
|
6575
6679
|
queryMarketingEventSummary: Pick<MarketingEventSummary, 'count' | 'uniqueIdentities' | 'uniqueCustomers' | 'durationMs'>;
|
|
6576
6680
|
};
|
|
6681
|
+
export type AdminMarketingEventGeoRollupQueryVariables = Exact<{
|
|
6682
|
+
input: MarketingEventGeoRollupInput;
|
|
6683
|
+
}>;
|
|
6684
|
+
export type AdminMarketingEventGeoRollupQuery = {
|
|
6685
|
+
marketingEventGeoRollup: Array<Pick<MarketingEventGeoBucket, 'country' | 'region' | 'count' | 'uniqueIdentities'>>;
|
|
6686
|
+
};
|
|
6687
|
+
export type AdminMarketingLiveVisitorsQueryVariables = Exact<{
|
|
6688
|
+
input: MarketingLiveVisitorsInput;
|
|
6689
|
+
}>;
|
|
6690
|
+
export type AdminMarketingLiveVisitorsQuery = {
|
|
6691
|
+
marketingLiveVisitors: Array<Pick<MarketingLiveVisitor, 'identityId' | 'latitude' | 'longitude' | 'city' | 'country' | 'deviceType' | 'browser' | 'os' | 'isCustomer' | 'lastEventType' | 'lastSeenAt' | 'eventCount'>>;
|
|
6692
|
+
};
|
|
6577
6693
|
export type AdminMarketingIdentityIdentifierFieldsFragment = Pick<MarketingIdentityIdentifier, 'id' | 'key' | 'value' | 'capturedAt' | 'position'>;
|
|
6578
6694
|
export type AdminMarketingIdentityFieldsFragment = (Pick<MarketingIdentity, 'id' | 'sessionToken' | 'customerId' | 'email' | 'emailSha256' | 'phone' | 'phoneSha256' | 'ipAddress' | 'userAgent' | 'country' | 'region' | 'city' | 'postalCode' | 'deviceType' | 'os' | 'browser' | 'firstSeenAt' | 'lastSeenAt' | 'createdAt' | 'updatedAt'> & {
|
|
6579
6695
|
identifiers: Array<Pick<MarketingIdentityIdentifier, 'id' | 'key' | 'value' | 'capturedAt' | 'position'>>;
|
|
@@ -6686,6 +6802,24 @@ export type CompleteShopMutation = {
|
|
|
6686
6802
|
onboarding: Pick<Onboarding, 'id' | 'currentStep' | 'completedAt'>;
|
|
6687
6803
|
};
|
|
6688
6804
|
};
|
|
6805
|
+
export type OrderAnalyticsFieldFragment = (Pick<OrderAnalytics, 'totalRevenueMinor' | 'orderCount' | 'averageOrderValueMinor'> & {
|
|
6806
|
+
revenueByDay: Array<Pick<OrderRevenuePoint, 'day' | 'revenueMinor' | 'orderCount'>>;
|
|
6807
|
+
});
|
|
6808
|
+
export type TopProductFieldFragment = Pick<TopProduct, 'productId' | 'productName' | 'unitsSold' | 'revenueMinor'>;
|
|
6809
|
+
export type OrderAnalyticsQueryVariables = Exact<{
|
|
6810
|
+
input: OrderAnalyticsInput;
|
|
6811
|
+
}>;
|
|
6812
|
+
export type OrderAnalyticsQuery = {
|
|
6813
|
+
orderAnalytics: (Pick<OrderAnalytics, 'totalRevenueMinor' | 'orderCount' | 'averageOrderValueMinor'> & {
|
|
6814
|
+
revenueByDay: Array<Pick<OrderRevenuePoint, 'day' | 'revenueMinor' | 'orderCount'>>;
|
|
6815
|
+
});
|
|
6816
|
+
};
|
|
6817
|
+
export type TopProductsQueryVariables = Exact<{
|
|
6818
|
+
input: TopProductsInput;
|
|
6819
|
+
}>;
|
|
6820
|
+
export type TopProductsQuery = {
|
|
6821
|
+
topProducts: Array<Pick<TopProduct, 'productId' | 'productName' | 'unitsSold' | 'revenueMinor'>>;
|
|
6822
|
+
};
|
|
6689
6823
|
export type ModifyOrderMutationVariables = Exact<{
|
|
6690
6824
|
input: ModifyOrderInput;
|
|
6691
6825
|
}>;
|
|
@@ -10183,6 +10317,13 @@ export type ReorderShippingGatewayRoutingRulesMutation = {
|
|
|
10183
10317
|
flatRates: Array<Pick<ShippingGatewayRoutingFlatRate, 'id' | 'code' | 'name' | 'amount' | 'currencyCode' | 'estimatedDays'>>;
|
|
10184
10318
|
})>;
|
|
10185
10319
|
};
|
|
10320
|
+
export type LowStockVariantFieldFragment = Pick<LowStockVariant, 'variantId' | 'name' | 'sku' | 'available' | 'threshold'>;
|
|
10321
|
+
export type LowStockVariantsQueryVariables = Exact<{
|
|
10322
|
+
input: LowStockVariantsInput;
|
|
10323
|
+
}>;
|
|
10324
|
+
export type LowStockVariantsQuery = {
|
|
10325
|
+
lowStockVariants: Array<Pick<LowStockVariant, 'variantId' | 'name' | 'sku' | 'available' | 'threshold'>>;
|
|
10326
|
+
};
|
|
10186
10327
|
export type StockLocationFieldFragment = (Pick<StockLocation, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'description' | 'locationType'> & {
|
|
10187
10328
|
address?: Maybe<Pick<StockLocationAddress, 'id' | 'createdAt' | 'updatedAt' | 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
|
|
10188
10329
|
});
|
package/dist/admin.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export { CollectionCategory } from './admin.generated';
|
|
|
17
17
|
export { CountryCategory } from './admin.generated';
|
|
18
18
|
export { AddressCategory } from './admin.generated';
|
|
19
19
|
export { GroupCategory } from './admin.generated';
|
|
20
|
+
export { CustomerAnalyticsCategory } from './admin.generated';
|
|
20
21
|
export { CustomerGroupCategory } from './admin.generated';
|
|
21
22
|
export { CustomerCategory } from './admin.generated';
|
|
22
23
|
export { DeploymentCategory } from './admin.generated';
|
|
@@ -35,6 +36,7 @@ export { CouponCategory } from './admin.generated';
|
|
|
35
36
|
export { DraftCategory } from './admin.generated';
|
|
36
37
|
export { ModificationCategory } from './admin.generated';
|
|
37
38
|
export { NoteCategory } from './admin.generated';
|
|
39
|
+
export { OrderAnalyticsCategory } from './admin.generated';
|
|
38
40
|
export { OrderModificationCategory } from './admin.generated';
|
|
39
41
|
export { OrderCategory } from './admin.generated';
|
|
40
42
|
export { PaymentCategory } from './admin.generated';
|
|
@@ -52,6 +54,7 @@ export { SearchCategory } from './admin.generated';
|
|
|
52
54
|
export { SellerCategory } from './admin.generated';
|
|
53
55
|
export { SellingPlanCategory } from './admin.generated';
|
|
54
56
|
export { ShippingCategory } from './admin.generated';
|
|
57
|
+
export { StockAnalyticsCategory } from './admin.generated';
|
|
55
58
|
export { StockCategory } from './admin.generated';
|
|
56
59
|
export { SubscriptionAnalyticsCategory } from './admin.generated';
|
|
57
60
|
export { SubscriptionCategory } from './admin.generated';
|
|
@@ -166,6 +166,11 @@ export declare class CountryCategory {
|
|
|
166
166
|
updateCountry(variables: Types.UpdateCountryMutationVariables): QueryObservable<Types.UpdateCountryMutation>;
|
|
167
167
|
deleteCountry(variables: Types.DeleteCountryMutationVariables): QueryObservable<Types.DeleteCountryMutation>;
|
|
168
168
|
}
|
|
169
|
+
export declare class CustomerAnalyticsCategory {
|
|
170
|
+
private readonly client;
|
|
171
|
+
constructor(client: BaseGraphQLClient);
|
|
172
|
+
customerSignupsByDay(variables: Types.CustomerSignupsByDayQueryVariables): QueryObservable<Types.CustomerSignupsByDayQuery>;
|
|
173
|
+
}
|
|
169
174
|
export declare class CustomerGroupCategory {
|
|
170
175
|
private readonly client;
|
|
171
176
|
constructor(client: BaseGraphQLClient);
|
|
@@ -297,6 +302,8 @@ export declare class MarketingEventCategory {
|
|
|
297
302
|
constructor(client: BaseGraphQLClient);
|
|
298
303
|
adminIngestMarketingEvent(variables: Types.AdminIngestMarketingEventMutationVariables): QueryObservable<Types.AdminIngestMarketingEventMutation>;
|
|
299
304
|
adminQueryMarketingEventSummary(variables: Types.AdminQueryMarketingEventSummaryQueryVariables): QueryObservable<Types.AdminQueryMarketingEventSummaryQuery>;
|
|
305
|
+
adminMarketingEventGeoRollup(variables: Types.AdminMarketingEventGeoRollupQueryVariables): QueryObservable<Types.AdminMarketingEventGeoRollupQuery>;
|
|
306
|
+
adminMarketingLiveVisitors(variables: Types.AdminMarketingLiveVisitorsQueryVariables): QueryObservable<Types.AdminMarketingLiveVisitorsQuery>;
|
|
300
307
|
}
|
|
301
308
|
export declare class MarketingIdentityCategory {
|
|
302
309
|
private readonly client;
|
|
@@ -321,6 +328,12 @@ export declare class OnboardingCategory {
|
|
|
321
328
|
updateProfile(variables: Types.UpdateProfileMutationVariables): QueryObservable<Types.UpdateProfileMutation>;
|
|
322
329
|
completeShop(variables: Types.CompleteShopMutationVariables): QueryObservable<Types.CompleteShopMutation>;
|
|
323
330
|
}
|
|
331
|
+
export declare class OrderAnalyticsCategory {
|
|
332
|
+
private readonly client;
|
|
333
|
+
constructor(client: BaseGraphQLClient);
|
|
334
|
+
orderAnalytics(variables: Types.OrderAnalyticsQueryVariables): QueryObservable<Types.OrderAnalyticsQuery>;
|
|
335
|
+
topProducts(variables: Types.TopProductsQueryVariables): QueryObservable<Types.TopProductsQuery>;
|
|
336
|
+
}
|
|
324
337
|
export declare class OrderModificationCategory {
|
|
325
338
|
private readonly client;
|
|
326
339
|
constructor(client: BaseGraphQLClient);
|
|
@@ -576,6 +589,11 @@ export declare class ShippingCategory {
|
|
|
576
589
|
deleteShippingGatewayRoutingRule(variables: Types.DeleteShippingGatewayRoutingRuleMutationVariables): QueryObservable<Types.DeleteShippingGatewayRoutingRuleMutation>;
|
|
577
590
|
reorderShippingGatewayRoutingRules(variables: Types.ReorderShippingGatewayRoutingRulesMutationVariables): QueryObservable<Types.ReorderShippingGatewayRoutingRulesMutation>;
|
|
578
591
|
}
|
|
592
|
+
export declare class StockAnalyticsCategory {
|
|
593
|
+
private readonly client;
|
|
594
|
+
constructor(client: BaseGraphQLClient);
|
|
595
|
+
lowStockVariants(variables: Types.LowStockVariantsQueryVariables): QueryObservable<Types.LowStockVariantsQuery>;
|
|
596
|
+
}
|
|
579
597
|
export declare class StockCategory {
|
|
580
598
|
private readonly client;
|
|
581
599
|
constructor(client: BaseGraphQLClient);
|
|
@@ -679,6 +697,7 @@ export declare class AdminNamespace {
|
|
|
679
697
|
private readonly _chat;
|
|
680
698
|
private readonly _collection;
|
|
681
699
|
private readonly _country;
|
|
700
|
+
private readonly _customerAnalytics;
|
|
682
701
|
private readonly _customerGroup;
|
|
683
702
|
private readonly _customer;
|
|
684
703
|
private readonly _address;
|
|
@@ -695,6 +714,7 @@ export declare class AdminNamespace {
|
|
|
695
714
|
private readonly _marketingIdentity;
|
|
696
715
|
private readonly _mission;
|
|
697
716
|
private readonly _onboarding;
|
|
717
|
+
private readonly _orderAnalytics;
|
|
698
718
|
private readonly _orderModification;
|
|
699
719
|
private readonly _order;
|
|
700
720
|
private readonly _coupon;
|
|
@@ -716,6 +736,7 @@ export declare class AdminNamespace {
|
|
|
716
736
|
private readonly _seller;
|
|
717
737
|
private readonly _sellingPlan;
|
|
718
738
|
private readonly _shipping;
|
|
739
|
+
private readonly _stockAnalytics;
|
|
719
740
|
private readonly _stock;
|
|
720
741
|
private readonly _subscriptionAnalytics;
|
|
721
742
|
private readonly _subscription;
|
|
@@ -739,6 +760,7 @@ export declare class AdminNamespace {
|
|
|
739
760
|
get chat(): ChatCategory;
|
|
740
761
|
get collection(): CollectionCategory;
|
|
741
762
|
get country(): CountryCategory;
|
|
763
|
+
get customerAnalytics(): CustomerAnalyticsCategory;
|
|
742
764
|
get customerGroup(): CustomerGroupCategory;
|
|
743
765
|
get customer(): CustomerCategory;
|
|
744
766
|
get address(): AddressCategory;
|
|
@@ -755,6 +777,7 @@ export declare class AdminNamespace {
|
|
|
755
777
|
get marketingIdentity(): MarketingIdentityCategory;
|
|
756
778
|
get mission(): MissionCategory;
|
|
757
779
|
get onboarding(): OnboardingCategory;
|
|
780
|
+
get orderAnalytics(): OrderAnalyticsCategory;
|
|
758
781
|
get orderModification(): OrderModificationCategory;
|
|
759
782
|
get order(): OrderCategory;
|
|
760
783
|
get coupon(): CouponCategory;
|
|
@@ -776,6 +799,7 @@ export declare class AdminNamespace {
|
|
|
776
799
|
get seller(): SellerCategory;
|
|
777
800
|
get sellingPlan(): SellingPlanCategory;
|
|
778
801
|
get shipping(): ShippingCategory;
|
|
802
|
+
get stockAnalytics(): StockAnalyticsCategory;
|
|
779
803
|
get stock(): StockCategory;
|
|
780
804
|
get subscriptionAnalytics(): SubscriptionAnalyticsCategory;
|
|
781
805
|
get subscription(): SubscriptionCategory;
|
|
@@ -807,6 +831,7 @@ export type Country = Types.CountryFieldFragment;
|
|
|
807
831
|
export type CountryTranslation = Types.CountryTranslationFieldFragment;
|
|
808
832
|
export type Customer = Types.CustomerFieldFragment;
|
|
809
833
|
export type CustomerGroup = Types.CustomerGroupFieldFragment;
|
|
834
|
+
export type CustomerSignupPoint = Types.CustomerSignupPointFieldFragment;
|
|
810
835
|
export type Deployment = Types.DeploymentFieldFragment;
|
|
811
836
|
export type DunningAttempt = Types.DunningAttemptFieldFragment;
|
|
812
837
|
export type Facet = Types.FacetFieldFragment;
|
|
@@ -820,6 +845,7 @@ export type FulfillmentRequest = Types.FulfillmentRequestFieldFragment;
|
|
|
820
845
|
export type FulfillmentRequestLine = Types.FulfillmentRequestLineFieldFragment;
|
|
821
846
|
export type HistoryEntry = Types.HistoryEntryFieldFragment;
|
|
822
847
|
export type HoldReason = Types.HoldReasonFieldFragment;
|
|
848
|
+
export type LowStockVariant = Types.LowStockVariantFieldFragment;
|
|
823
849
|
export type ManageablePlugin = Types.ManageablePluginFieldsFragment;
|
|
824
850
|
export type Market = Types.MarketFieldFragment;
|
|
825
851
|
export type MarketingIdentity = Types.AdminMarketingIdentityFieldsFragment;
|
|
@@ -828,6 +854,7 @@ export type Mission = Types.MissionFieldFragment;
|
|
|
828
854
|
export type MissionRepoRef = Types.MissionRepoRefFieldFragment;
|
|
829
855
|
export type Order = Types.OrderFieldFragment;
|
|
830
856
|
export type OrderAddress = Types.OrderAddressFieldFragment;
|
|
857
|
+
export type OrderAnalytics = Types.OrderAnalyticsFieldFragment;
|
|
831
858
|
export type OrderDiscount = Types.DiscountFieldFragment;
|
|
832
859
|
export type OrderLine = Types.OrderLineFieldFragment;
|
|
833
860
|
export type OrderModification = Types.OrderModificationFieldFragment;
|
|
@@ -868,6 +895,7 @@ export type SubscriptionCreditBalance = Types.SubscriptionCreditBalanceFieldFrag
|
|
|
868
895
|
export type SubscriptionVariantConfig = Types.SubscriptionVariantConfigFieldFragment;
|
|
869
896
|
export type Surcharge = Types.SurchargeFieldFragment;
|
|
870
897
|
export type TaxRate = Types.TaxRateFieldFragment;
|
|
898
|
+
export type TopProduct = Types.TopProductFieldFragment;
|
|
871
899
|
export type UsageMetric = Types.UsageMetricFieldFragment;
|
|
872
900
|
export type WorkspaceReadiness = Types.WorkspaceReadinessFieldFragment;
|
|
873
901
|
export type Zone = Types.ZoneFieldFragment;
|
package/dist/admin.generated.js
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* Any manual changes will be overwritten on the next generation run.
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
11
|
-
exports.AdminNamespace = exports.ZoneCategory = exports.TransactionCategory = exports.TaxCategory = exports.SubscriptionCategory = exports.SubscriptionAnalyticsCategory = exports.StockCategory = exports.ShippingCategory = exports.SellingPlanCategory = exports.SellerCategory = void 0;
|
|
10
|
+
exports.RoleCategory = exports.PromotionCategory = exports.OptionCategory = exports.OptionGroupCategory = exports.ProductCategory = exports.ProductVariantCategory = exports.ProductOptionCategory = exports.ManageableCategory = exports.PluginCategory = exports.PaymentCategory = exports.NoteCategory = exports.ModificationCategory = exports.DraftCategory = exports.CouponCategory = exports.OrderCategory = exports.OrderModificationCategory = exports.OrderAnalyticsCategory = exports.OnboardingCategory = exports.MissionCategory = exports.MarketingIdentityCategory = exports.MarketingEventCategory = exports.MarketingAttributionCategory = exports.MarketCategory = exports.HookCategory = exports.HookDispatchCategory = exports.FulfillmentCategory = exports.FulfillmentRequestCategory = exports.FacetCategory = exports.DeploymentCategory = exports.GroupCategory = exports.AddressCategory = exports.CustomerCategory = exports.CustomerGroupCategory = exports.CustomerAnalyticsCategory = exports.CountryCategory = exports.CollectionCategory = exports.ChatCategory = exports.SettingsCategory = exports.ChannelCategory = exports.AuthCategory = exports.AudienceSegmentCategory = exports.AudienceMembershipCategory = exports.AssetCategory = exports.AnalyticsGatewayCategory = exports.AdministratorCategory = exports.PublishCategory = exports.FieldDefinitionCategory = exports.EntryCategory = exports.AcfCategory = exports.AcfSchemaCategory = void 0;
|
|
11
|
+
exports.AdminNamespace = exports.ZoneCategory = exports.TransactionCategory = exports.TaxCategory = exports.SubscriptionCategory = exports.SubscriptionAnalyticsCategory = exports.StockCategory = exports.StockAnalyticsCategory = exports.ShippingCategory = exports.SellingPlanCategory = exports.SellerCategory = exports.SearchCategory = exports.ScheduledJobCategory = void 0;
|
|
12
12
|
const documents_generated_1 = require("./documents.generated");
|
|
13
13
|
class AcfSchemaCategory {
|
|
14
14
|
client;
|
|
@@ -404,6 +404,16 @@ class CountryCategory {
|
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
exports.CountryCategory = CountryCategory;
|
|
407
|
+
class CustomerAnalyticsCategory {
|
|
408
|
+
client;
|
|
409
|
+
constructor(client) {
|
|
410
|
+
this.client = client;
|
|
411
|
+
}
|
|
412
|
+
customerSignupsByDay(variables) {
|
|
413
|
+
return this.client.query(documents_generated_1.adminCustomerSignupsByDayDocument, variables);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
exports.CustomerAnalyticsCategory = CustomerAnalyticsCategory;
|
|
407
417
|
class CustomerGroupCategory {
|
|
408
418
|
client;
|
|
409
419
|
constructor(client) {
|
|
@@ -733,6 +743,12 @@ class MarketingEventCategory {
|
|
|
733
743
|
adminQueryMarketingEventSummary(variables) {
|
|
734
744
|
return this.client.query(documents_generated_1.adminAdminQueryMarketingEventSummaryDocument, variables);
|
|
735
745
|
}
|
|
746
|
+
adminMarketingEventGeoRollup(variables) {
|
|
747
|
+
return this.client.query(documents_generated_1.adminAdminMarketingEventGeoRollupDocument, variables);
|
|
748
|
+
}
|
|
749
|
+
adminMarketingLiveVisitors(variables) {
|
|
750
|
+
return this.client.query(documents_generated_1.adminAdminMarketingLiveVisitorsDocument, variables);
|
|
751
|
+
}
|
|
736
752
|
}
|
|
737
753
|
exports.MarketingEventCategory = MarketingEventCategory;
|
|
738
754
|
class MarketingIdentityCategory {
|
|
@@ -789,6 +805,19 @@ class OnboardingCategory {
|
|
|
789
805
|
}
|
|
790
806
|
}
|
|
791
807
|
exports.OnboardingCategory = OnboardingCategory;
|
|
808
|
+
class OrderAnalyticsCategory {
|
|
809
|
+
client;
|
|
810
|
+
constructor(client) {
|
|
811
|
+
this.client = client;
|
|
812
|
+
}
|
|
813
|
+
orderAnalytics(variables) {
|
|
814
|
+
return this.client.query(documents_generated_1.adminOrderAnalyticsDocument, variables);
|
|
815
|
+
}
|
|
816
|
+
topProducts(variables) {
|
|
817
|
+
return this.client.query(documents_generated_1.adminTopProductsDocument, variables);
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
exports.OrderAnalyticsCategory = OrderAnalyticsCategory;
|
|
792
821
|
class OrderModificationCategory {
|
|
793
822
|
client;
|
|
794
823
|
constructor(client) {
|
|
@@ -1449,6 +1478,16 @@ class ShippingCategory {
|
|
|
1449
1478
|
}
|
|
1450
1479
|
}
|
|
1451
1480
|
exports.ShippingCategory = ShippingCategory;
|
|
1481
|
+
class StockAnalyticsCategory {
|
|
1482
|
+
client;
|
|
1483
|
+
constructor(client) {
|
|
1484
|
+
this.client = client;
|
|
1485
|
+
}
|
|
1486
|
+
lowStockVariants(variables) {
|
|
1487
|
+
return this.client.query(documents_generated_1.adminLowStockVariantsDocument, variables);
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
exports.StockAnalyticsCategory = StockAnalyticsCategory;
|
|
1452
1491
|
class StockCategory {
|
|
1453
1492
|
client;
|
|
1454
1493
|
constructor(client) {
|
|
@@ -1692,6 +1731,7 @@ class AdminNamespace {
|
|
|
1692
1731
|
_chat;
|
|
1693
1732
|
_collection;
|
|
1694
1733
|
_country;
|
|
1734
|
+
_customerAnalytics;
|
|
1695
1735
|
_customerGroup;
|
|
1696
1736
|
_customer;
|
|
1697
1737
|
_address;
|
|
@@ -1708,6 +1748,7 @@ class AdminNamespace {
|
|
|
1708
1748
|
_marketingIdentity;
|
|
1709
1749
|
_mission;
|
|
1710
1750
|
_onboarding;
|
|
1751
|
+
_orderAnalytics;
|
|
1711
1752
|
_orderModification;
|
|
1712
1753
|
_order;
|
|
1713
1754
|
_coupon;
|
|
@@ -1729,6 +1770,7 @@ class AdminNamespace {
|
|
|
1729
1770
|
_seller;
|
|
1730
1771
|
_sellingPlan;
|
|
1731
1772
|
_shipping;
|
|
1773
|
+
_stockAnalytics;
|
|
1732
1774
|
_stock;
|
|
1733
1775
|
_subscriptionAnalytics;
|
|
1734
1776
|
_subscription;
|
|
@@ -1753,6 +1795,7 @@ class AdminNamespace {
|
|
|
1753
1795
|
this._chat = new ChatCategory(client);
|
|
1754
1796
|
this._collection = new CollectionCategory(client);
|
|
1755
1797
|
this._country = new CountryCategory(client);
|
|
1798
|
+
this._customerAnalytics = new CustomerAnalyticsCategory(client);
|
|
1756
1799
|
this._customerGroup = new CustomerGroupCategory(client);
|
|
1757
1800
|
this._customer = new CustomerCategory(client);
|
|
1758
1801
|
this._address = new AddressCategory(client);
|
|
@@ -1769,6 +1812,7 @@ class AdminNamespace {
|
|
|
1769
1812
|
this._marketingIdentity = new MarketingIdentityCategory(client);
|
|
1770
1813
|
this._mission = new MissionCategory(client);
|
|
1771
1814
|
this._onboarding = new OnboardingCategory(client);
|
|
1815
|
+
this._orderAnalytics = new OrderAnalyticsCategory(client);
|
|
1772
1816
|
this._orderModification = new OrderModificationCategory(client);
|
|
1773
1817
|
this._order = new OrderCategory(client);
|
|
1774
1818
|
this._coupon = new CouponCategory(client);
|
|
@@ -1790,6 +1834,7 @@ class AdminNamespace {
|
|
|
1790
1834
|
this._seller = new SellerCategory(client);
|
|
1791
1835
|
this._sellingPlan = new SellingPlanCategory(client);
|
|
1792
1836
|
this._shipping = new ShippingCategory(client);
|
|
1837
|
+
this._stockAnalytics = new StockAnalyticsCategory(client);
|
|
1793
1838
|
this._stock = new StockCategory(client);
|
|
1794
1839
|
this._subscriptionAnalytics = new SubscriptionAnalyticsCategory(client);
|
|
1795
1840
|
this._subscription = new SubscriptionCategory(client);
|
|
@@ -1845,6 +1890,9 @@ class AdminNamespace {
|
|
|
1845
1890
|
get country() {
|
|
1846
1891
|
return this._country;
|
|
1847
1892
|
}
|
|
1893
|
+
get customerAnalytics() {
|
|
1894
|
+
return this._customerAnalytics;
|
|
1895
|
+
}
|
|
1848
1896
|
get customerGroup() {
|
|
1849
1897
|
return this._customerGroup;
|
|
1850
1898
|
}
|
|
@@ -1893,6 +1941,9 @@ class AdminNamespace {
|
|
|
1893
1941
|
get onboarding() {
|
|
1894
1942
|
return this._onboarding;
|
|
1895
1943
|
}
|
|
1944
|
+
get orderAnalytics() {
|
|
1945
|
+
return this._orderAnalytics;
|
|
1946
|
+
}
|
|
1896
1947
|
get orderModification() {
|
|
1897
1948
|
return this._orderModification;
|
|
1898
1949
|
}
|
|
@@ -1956,6 +2007,9 @@ class AdminNamespace {
|
|
|
1956
2007
|
get shipping() {
|
|
1957
2008
|
return this._shipping;
|
|
1958
2009
|
}
|
|
2010
|
+
get stockAnalytics() {
|
|
2011
|
+
return this._stockAnalytics;
|
|
2012
|
+
}
|
|
1959
2013
|
get stock() {
|
|
1960
2014
|
return this._stock;
|
|
1961
2015
|
}
|