@crossly/sdk 0.3.2 → 0.3.3
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/dist/create-client-data-sync.d.ts +3 -0
- package/dist/create-client-data-sync.d.ts.map +1 -1
- package/dist/create-client-data-sync.js +2 -0
- package/dist/create-client-data-sync.js.map +1 -1
- package/dist/create-client.d.ts +2 -0
- package/dist/create-client.d.ts.map +1 -1
- package/dist/create-client.js +2 -0
- package/dist/create-client.js.map +1 -1
- package/dist/generated/api-types.d.ts +456 -51
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/generated/operations.d.ts +120 -0
- package/dist/generated/operations.d.ts.map +1 -1
- package/dist/generated/operations.js +15 -0
- package/dist/generated/operations.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/resources/discord.d.ts +69 -0
- package/dist/resources/discord.d.ts.map +1 -0
- package/dist/resources/discord.js +27 -0
- package/dist/resources/discord.js.map +1 -0
- package/dist/resources/quickbooks.d.ts +152 -0
- package/dist/resources/quickbooks.d.ts.map +1 -0
- package/dist/resources/quickbooks.js +97 -0
- package/dist/resources/quickbooks.js.map +1 -0
- package/dist/resources.d.ts +1 -0
- package/dist/resources.d.ts.map +1 -1
- package/dist/resources.js +1 -0
- package/dist/resources.js.map +1 -1
- package/dist/settings-exports.d.ts +2 -0
- package/dist/settings-exports.d.ts.map +1 -1
- package/dist/settings-exports.js +1 -0
- package/dist/settings-exports.js.map +1 -1
- package/package.json +2 -2
|
@@ -730,7 +730,7 @@ export type CreateAutomationRuleImportRequestOneOfTrigger = {
|
|
|
730
730
|
};
|
|
731
731
|
};
|
|
732
732
|
export type CreateAutomationRuleImportResponse = {
|
|
733
|
-
created:
|
|
733
|
+
created: ListIntegrationQuickbookTaxCodesItem[];
|
|
734
734
|
errors: CreateAutomationRuleImportResponseErrors[];
|
|
735
735
|
};
|
|
736
736
|
export type CreateAutomationRuleImportResponseErrors = {
|
|
@@ -4101,14 +4101,85 @@ export type CreateIntegrationLinearIssueRequest = {
|
|
|
4101
4101
|
export type CreateIntegrationLinearIssueResponse = {
|
|
4102
4102
|
issue: ListIntegrationLinearIssuesItem;
|
|
4103
4103
|
};
|
|
4104
|
-
export type
|
|
4105
|
-
data:
|
|
4104
|
+
export type CreateIntegrationQuickbookDocRepostResponse = {
|
|
4105
|
+
data: ListIntegrationQuickbookDocsItem;
|
|
4106
4106
|
};
|
|
4107
|
-
export type
|
|
4108
|
-
data:
|
|
4107
|
+
export type CreateIntegrationQuickbookStartResponse = {
|
|
4108
|
+
data: CreateIntegrationQuickbookStartResponseData;
|
|
4109
4109
|
};
|
|
4110
|
-
export type
|
|
4111
|
-
|
|
4110
|
+
export type CreateIntegrationQuickbookStartResponseData = {
|
|
4111
|
+
/** False when this Crossly has no Intuit app configured: the page says so, Connect is off. */
|
|
4112
|
+
configured: boolean;
|
|
4113
|
+
/** 'sandbox' | 'production': which Intuit environment this Crossly talks to. */
|
|
4114
|
+
environment: "sandbox" | "production";
|
|
4115
|
+
status: "active" | "revoked" | "not_connected" | "setup";
|
|
4116
|
+
storefrontId?: string | null;
|
|
4117
|
+
company?: CreateIntegrationQuickbookStartResponseDataCompany;
|
|
4118
|
+
settings?: CreateIntegrationQuickbookStartResponseDataSettings;
|
|
4119
|
+
connectedAt?: string | null;
|
|
4120
|
+
/** When the refresh token runs out if nothing syncs before then (Intuit: 100 days, renewed on every refresh). */
|
|
4121
|
+
refreshExpiresAt?: string | null;
|
|
4122
|
+
lastSyncAt?: string | null;
|
|
4123
|
+
lastSyncCounts?: CreateIntegrationQuickbookStartResponseDataLastSyncCounts;
|
|
4124
|
+
/** One sanitized line, never upstream text. */
|
|
4125
|
+
lastError?: string | null;
|
|
4126
|
+
lastErrorAt?: string | null;
|
|
4127
|
+
/** Documents that failed to post (they retry on the next sync). */
|
|
4128
|
+
failedCount: number;
|
|
4129
|
+
/** Documents deleted or voided in QuickBooks after Crossly posted them (out of sync until posted again). */
|
|
4130
|
+
outOfSyncCount: number;
|
|
4131
|
+
};
|
|
4132
|
+
export type CreateIntegrationQuickbookStartResponseDataCompany = {
|
|
4133
|
+
realmId: string;
|
|
4134
|
+
name?: string | null;
|
|
4135
|
+
/** ISO country of the company ("US", "CA", "GB", "AU"). */
|
|
4136
|
+
country?: string | null;
|
|
4137
|
+
homeCurrency?: string | null;
|
|
4138
|
+
multiCurrency: boolean;
|
|
4139
|
+
} | null;
|
|
4140
|
+
export type CreateIntegrationQuickbookStartResponseDataLastSyncCounts = {
|
|
4141
|
+
posted: number;
|
|
4142
|
+
updated: number;
|
|
4143
|
+
failed: number;
|
|
4144
|
+
/** Sales newly assigned to a document in this run. */
|
|
4145
|
+
salesAssigned: number;
|
|
4146
|
+
} | null;
|
|
4147
|
+
export type CreateIntegrationQuickbookStartResponseDataSettings = {
|
|
4148
|
+
mode: "summary" | "per_order";
|
|
4149
|
+
/** YYYY-MM-DD in `timezone`: sales detected before it are never posted. */
|
|
4150
|
+
startDate: string;
|
|
4151
|
+
/** IANA zone the daily summaries are cut in. */
|
|
4152
|
+
timezone: string;
|
|
4153
|
+
clearing: "single" | "per_marketplace";
|
|
4154
|
+
/** Post a COGS journal entry from the item cost Crossly recorded at sale time. */
|
|
4155
|
+
postCogs: boolean;
|
|
4156
|
+
accounts: CreateIntegrationQuickbookStartResponseDataSettingsAccounts;
|
|
4157
|
+
/** Companies outside the US: the tax code every line carries (an exempt / out-of-scope code). Null in the US. */
|
|
4158
|
+
taxCodeId?: string | null;
|
|
4159
|
+
} | null;
|
|
4160
|
+
/** Role → account. Null = not chosen yet (the role's default is made or found on connect). */
|
|
4161
|
+
export type CreateIntegrationQuickbookStartResponseDataSettingsAccounts = {
|
|
4162
|
+
sales?: {
|
|
4163
|
+
[key: string]: unknown;
|
|
4164
|
+
} | null;
|
|
4165
|
+
fees?: {
|
|
4166
|
+
[key: string]: unknown;
|
|
4167
|
+
} | null;
|
|
4168
|
+
cogs?: {
|
|
4169
|
+
[key: string]: unknown;
|
|
4170
|
+
} | null;
|
|
4171
|
+
shippingIncome?: {
|
|
4172
|
+
[key: string]: unknown;
|
|
4173
|
+
} | null;
|
|
4174
|
+
shippingExpense?: {
|
|
4175
|
+
[key: string]: unknown;
|
|
4176
|
+
} | null;
|
|
4177
|
+
clearing?: {
|
|
4178
|
+
[key: string]: unknown;
|
|
4179
|
+
} | null;
|
|
4180
|
+
inventoryAsset?: {
|
|
4181
|
+
[key: string]: unknown;
|
|
4182
|
+
} | null;
|
|
4112
4183
|
};
|
|
4113
4184
|
export type CreateIntegrationSlackTestResponse = {
|
|
4114
4185
|
ok: boolean;
|
|
@@ -16330,12 +16401,6 @@ export type CreateWorldParentalChildrenPinResponseData = {
|
|
|
16330
16401
|
export type CreateWorldParentalChildrenUnlinkRequest = {
|
|
16331
16402
|
pin: string;
|
|
16332
16403
|
};
|
|
16333
|
-
export type CreateWorldParentalChildrenUnlinkResponse = {
|
|
16334
|
-
data: CreateWorldParentalChildrenUnlinkResponseData;
|
|
16335
|
-
};
|
|
16336
|
-
export type CreateWorldParentalChildrenUnlinkResponseData = {
|
|
16337
|
-
unlinked: boolean;
|
|
16338
|
-
};
|
|
16339
16404
|
export type CreateWorldParentalInviteResponse = {
|
|
16340
16405
|
data: CreateWorldParentalInviteResponseData;
|
|
16341
16406
|
};
|
|
@@ -16898,6 +16963,12 @@ export type DeleteDeviceResponseData = {
|
|
|
16898
16963
|
id: string;
|
|
16899
16964
|
unpaired: boolean;
|
|
16900
16965
|
};
|
|
16966
|
+
export type DeleteDiscordResponse = {
|
|
16967
|
+
data: DeleteDiscordResponseData;
|
|
16968
|
+
};
|
|
16969
|
+
export type DeleteDiscordResponseData = {
|
|
16970
|
+
unlinked: boolean;
|
|
16971
|
+
};
|
|
16901
16972
|
export type DeleteDropResponse = {
|
|
16902
16973
|
cancelled: boolean;
|
|
16903
16974
|
};
|
|
@@ -16955,12 +17026,6 @@ export type DeleteIntegrationLinearResponse = {
|
|
|
16955
17026
|
disconnected: boolean;
|
|
16956
17027
|
revokedAtLinear: boolean;
|
|
16957
17028
|
};
|
|
16958
|
-
export type DeleteIntegrationNotionResponse = {
|
|
16959
|
-
data: DeleteIntegrationNotionResponseData;
|
|
16960
|
-
};
|
|
16961
|
-
export type DeleteIntegrationNotionResponseData = {
|
|
16962
|
-
disconnected: boolean;
|
|
16963
|
-
};
|
|
16964
17029
|
export type DeleteIntegrationSentryResponse = {
|
|
16965
17030
|
success: boolean;
|
|
16966
17031
|
orgSlug: string;
|
|
@@ -21812,6 +21877,50 @@ export type GetDeviceSettingResponseDataSettings = {
|
|
|
21812
21877
|
defaultLabelSize?: "4x6" | "letter" | "a4" | "2x2" | "1x1" | "2x3.5" | null;
|
|
21813
21878
|
updatedAt?: string | null;
|
|
21814
21879
|
};
|
|
21880
|
+
export type GetDiscordResponse = {
|
|
21881
|
+
data: GetDiscordResponseData;
|
|
21882
|
+
};
|
|
21883
|
+
export type GetDiscordResponseData = {
|
|
21884
|
+
/** The deployment has the Discord app configured. */
|
|
21885
|
+
available: boolean;
|
|
21886
|
+
linked: boolean;
|
|
21887
|
+
discordUserId?: string | null;
|
|
21888
|
+
username?: string | null;
|
|
21889
|
+
/** Discord refused a DM (they block DMs from apps); alerts resume after their next command. */
|
|
21890
|
+
dmBlocked: boolean;
|
|
21891
|
+
userInstalled: boolean;
|
|
21892
|
+
linkedAt?: string | null;
|
|
21893
|
+
/** The deployment has a community server set up: the connect pages show "Join the Crossly community server". */
|
|
21894
|
+
communityAvailable: boolean;
|
|
21895
|
+
/** Linked with the community-join box ticked and Discord added them (they may have left since). */
|
|
21896
|
+
communityJoined: boolean;
|
|
21897
|
+
/** Linked Roles are live for this link (Discord shows the Crossly connection on their profile). */
|
|
21898
|
+
roleConnection: boolean;
|
|
21899
|
+
/** Add the app to your Discord account (user install). */
|
|
21900
|
+
installUrl?: string | null;
|
|
21901
|
+
/** Add the app to a server (for a channel feed). */
|
|
21902
|
+
serverInstallUrl?: string | null;
|
|
21903
|
+
alerts: GetDiscordResponseDataAlerts;
|
|
21904
|
+
feeds: GetDiscordResponseDataFeeds[];
|
|
21905
|
+
};
|
|
21906
|
+
export type GetDiscordResponseDataAlerts = {
|
|
21907
|
+
/** Alert keys turned off for Discord (the phone's own switches apply first). */
|
|
21908
|
+
muted: GetDiscordResponseDataAlertsMutedItem[];
|
|
21909
|
+
/** instant: each alert as it happens; daily: one summary a day at `dailyHour`. */
|
|
21910
|
+
mode: "daily" | "instant";
|
|
21911
|
+
/** 0-23, in the account's notification time zone. */
|
|
21912
|
+
dailyHour: number;
|
|
21913
|
+
};
|
|
21914
|
+
export type GetDiscordResponseDataAlertsMutedItem = "sale" | "message" | "other" | "ship_by" | "offer" | "disconnected" | "publish_failed" | "delist_failed" | "stale_listing";
|
|
21915
|
+
export type GetDiscordResponseDataFeeds = {
|
|
21916
|
+
id: string;
|
|
21917
|
+
guildId: string;
|
|
21918
|
+
channelId: string;
|
|
21919
|
+
storefrontId?: string | null;
|
|
21920
|
+
events: GetDiscordResponseDataFeedsEventsItem[];
|
|
21921
|
+
createdAt: string;
|
|
21922
|
+
};
|
|
21923
|
+
export type GetDiscordResponseDataFeedsEventsItem = "sales" | "listings";
|
|
21815
21924
|
export type GetDiscountCodeResponse = {
|
|
21816
21925
|
data: ListDiscountCodesItem;
|
|
21817
21926
|
};
|
|
@@ -22052,7 +22161,7 @@ export type GetEventPolicyResponseData = {
|
|
|
22052
22161
|
matrix: GetEventPolicyResponseDataMatrix[];
|
|
22053
22162
|
rules: GetEventPolicyResponseDataRules[];
|
|
22054
22163
|
platforms: GetEventPolicyResponseDataPlatforms[];
|
|
22055
|
-
apps:
|
|
22164
|
+
apps: ListIntegrationQuickbookTaxCodesItem[];
|
|
22056
22165
|
};
|
|
22057
22166
|
export type GetEventPolicyResponseDataMatrix = {
|
|
22058
22167
|
event: "sale" | "message" | "refunded" | "offer" | "order_cancelled" | "return_opened" | "label_ready" | "shipped" | "delivered" | "payout_sent" | "listing_ended";
|
|
@@ -22999,6 +23108,54 @@ export type GetIntegrationLinearResponseEventRules = {
|
|
|
22999
23108
|
events: string[];
|
|
23000
23109
|
defaultOn: boolean;
|
|
23001
23110
|
};
|
|
23111
|
+
export type GetIntegrationQuickbookResponse = {
|
|
23112
|
+
data: GetIntegrationQuickbookResponseData;
|
|
23113
|
+
};
|
|
23114
|
+
export type GetIntegrationQuickbookResponseData = {
|
|
23115
|
+
/** False when this Crossly has no Intuit app configured: the page says so, Connect is off. */
|
|
23116
|
+
configured: boolean;
|
|
23117
|
+
/** 'sandbox' | 'production': which Intuit environment this Crossly talks to. */
|
|
23118
|
+
environment: "sandbox" | "production";
|
|
23119
|
+
status: "active" | "revoked" | "not_connected" | "setup";
|
|
23120
|
+
storefrontId?: string | null;
|
|
23121
|
+
company?: CreateIntegrationQuickbookStartResponseDataCompany;
|
|
23122
|
+
settings?: GetIntegrationQuickbookResponseDataSettings;
|
|
23123
|
+
connectedAt?: string | null;
|
|
23124
|
+
/** When the refresh token runs out if nothing syncs before then (Intuit: 100 days, renewed on every refresh). */
|
|
23125
|
+
refreshExpiresAt?: string | null;
|
|
23126
|
+
lastSyncAt?: string | null;
|
|
23127
|
+
lastSyncCounts?: CreateIntegrationQuickbookStartResponseDataLastSyncCounts;
|
|
23128
|
+
/** One sanitized line, never upstream text. */
|
|
23129
|
+
lastError?: string | null;
|
|
23130
|
+
lastErrorAt?: string | null;
|
|
23131
|
+
/** Documents that failed to post (they retry on the next sync). */
|
|
23132
|
+
failedCount: number;
|
|
23133
|
+
/** Documents deleted or voided in QuickBooks after Crossly posted them (out of sync until posted again). */
|
|
23134
|
+
outOfSyncCount: number;
|
|
23135
|
+
};
|
|
23136
|
+
export type GetIntegrationQuickbookResponseDataSettings = {
|
|
23137
|
+
mode: "summary" | "per_order";
|
|
23138
|
+
/** YYYY-MM-DD in `timezone`: sales detected before it are never posted. */
|
|
23139
|
+
startDate: string;
|
|
23140
|
+
/** IANA zone the daily summaries are cut in. */
|
|
23141
|
+
timezone: string;
|
|
23142
|
+
clearing: "single" | "per_marketplace";
|
|
23143
|
+
/** Post a COGS journal entry from the item cost Crossly recorded at sale time. */
|
|
23144
|
+
postCogs: boolean;
|
|
23145
|
+
accounts: GetIntegrationQuickbookResponseDataSettingsAccounts;
|
|
23146
|
+
/** Companies outside the US: the tax code every line carries (an exempt / out-of-scope code). Null in the US. */
|
|
23147
|
+
taxCodeId?: string | null;
|
|
23148
|
+
} | null;
|
|
23149
|
+
/** Role → account. Null = not chosen yet (the role's default is made or found on connect). */
|
|
23150
|
+
export type GetIntegrationQuickbookResponseDataSettingsAccounts = {
|
|
23151
|
+
sales?: IdName;
|
|
23152
|
+
fees?: IdName;
|
|
23153
|
+
cogs?: IdName;
|
|
23154
|
+
shippingIncome?: IdName;
|
|
23155
|
+
shippingExpense?: IdName;
|
|
23156
|
+
clearing?: IdName;
|
|
23157
|
+
inventoryAsset?: IdName;
|
|
23158
|
+
};
|
|
23002
23159
|
export type GetIntegrationResponse = {
|
|
23003
23160
|
storefrontId?: string | null;
|
|
23004
23161
|
groups: GetIntegrationResponseGroups[];
|
|
@@ -27429,7 +27586,7 @@ export type GetSourceSyncLocationResponse = {
|
|
|
27429
27586
|
/** 'shop' (Lightspeed R-Series), 'outlet' (X-Series) or 'location' (Square): what the seller calls it. */
|
|
27430
27587
|
label: "location" | "shop" | "outlet";
|
|
27431
27588
|
selectedId?: string | null;
|
|
27432
|
-
locations:
|
|
27589
|
+
locations: ListIntegrationQuickbookTaxCodesItem[];
|
|
27433
27590
|
};
|
|
27434
27591
|
export type GetSourcingReceiptResponse = {
|
|
27435
27592
|
log: unknown[];
|
|
@@ -42548,6 +42705,21 @@ export type IntegrationNotionResponseDataWorkspace = {
|
|
|
42548
42705
|
name?: string | null;
|
|
42549
42706
|
icon?: string | null;
|
|
42550
42707
|
} | null;
|
|
42708
|
+
export type IntegrationResponse = {
|
|
42709
|
+
data: UpdateWorldExperienceGalleryTrailerUrlRequest;
|
|
42710
|
+
};
|
|
42711
|
+
export type IntegrationResponse2 = {
|
|
42712
|
+
data: IntegrationResponse2Data;
|
|
42713
|
+
};
|
|
42714
|
+
export type IntegrationResponse2Data = {
|
|
42715
|
+
queued: boolean;
|
|
42716
|
+
};
|
|
42717
|
+
export type IntegrationResponse3 = {
|
|
42718
|
+
data: IntegrationResponse3Data;
|
|
42719
|
+
};
|
|
42720
|
+
export type IntegrationResponse3Data = {
|
|
42721
|
+
disconnected: boolean;
|
|
42722
|
+
};
|
|
42551
42723
|
export type InventoryItemIdReason = {
|
|
42552
42724
|
inventoryItemId: string;
|
|
42553
42725
|
reason: string;
|
|
@@ -44260,7 +44432,7 @@ export type ListConnectionHealthItem = {
|
|
|
44260
44432
|
/** Why it ends (CONNECTION_LIFETIMES note), when the platform has a typical lifetime. */
|
|
44261
44433
|
lifetimeNote?: string | null;
|
|
44262
44434
|
workflows: ListConnectionHealthItemWorkflows[];
|
|
44263
|
-
rules:
|
|
44435
|
+
rules: ListIntegrationQuickbookTaxCodesItem[];
|
|
44264
44436
|
/** Live listings here whose item is also live elsewhere: a sale elsewhere needs this account to delist them. */
|
|
44265
44437
|
listingsAtRisk: number;
|
|
44266
44438
|
};
|
|
@@ -46781,20 +46953,6 @@ export type ListIntegrationLinearTeamLabelsResponse = {
|
|
|
46781
46953
|
[key: string]: unknown;
|
|
46782
46954
|
};
|
|
46783
46955
|
};
|
|
46784
|
-
export type ListIntegrationLinearTeamProjectsItem = {
|
|
46785
|
-
id: string;
|
|
46786
|
-
name: string;
|
|
46787
|
-
};
|
|
46788
|
-
/** The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint. */
|
|
46789
|
-
export type ListIntegrationLinearTeamProjectsResponse = {
|
|
46790
|
-
/** The rows. */
|
|
46791
|
-
data: ListIntegrationLinearTeamProjectsItem[];
|
|
46792
|
-
pagination?: Pagination;
|
|
46793
|
-
/** Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty. */
|
|
46794
|
-
meta?: {
|
|
46795
|
-
[key: string]: unknown;
|
|
46796
|
-
};
|
|
46797
|
-
};
|
|
46798
46956
|
export type ListIntegrationLinearTeamsItem = {
|
|
46799
46957
|
id: string;
|
|
46800
46958
|
name: string;
|
|
@@ -46827,6 +46985,70 @@ export type ListIntegrationNotionPagesResponse = {
|
|
|
46827
46985
|
[key: string]: unknown;
|
|
46828
46986
|
};
|
|
46829
46987
|
};
|
|
46988
|
+
export type ListIntegrationQuickbookAccountsItem = {
|
|
46989
|
+
id: string;
|
|
46990
|
+
name: string;
|
|
46991
|
+
/** Fully qualified ("Parent:Child"). */
|
|
46992
|
+
fullName: string;
|
|
46993
|
+
accountType: string;
|
|
46994
|
+
accountSubType?: string | null;
|
|
46995
|
+
currency?: string | null;
|
|
46996
|
+
};
|
|
46997
|
+
/** The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint. */
|
|
46998
|
+
export type ListIntegrationQuickbookAccountsResponse = {
|
|
46999
|
+
/** The rows. */
|
|
47000
|
+
data: ListIntegrationQuickbookAccountsItem[];
|
|
47001
|
+
pagination?: Pagination;
|
|
47002
|
+
/** Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty. */
|
|
47003
|
+
meta?: {
|
|
47004
|
+
[key: string]: unknown;
|
|
47005
|
+
};
|
|
47006
|
+
};
|
|
47007
|
+
export type ListIntegrationQuickbookDocsItem = {
|
|
47008
|
+
id: string;
|
|
47009
|
+
kind: "sales_receipt" | "expense" | "refund_receipt" | "fee_refund" | "journal_entry";
|
|
47010
|
+
/** The marketplace (platform id), or null for a COGS journal entry covering every marketplace. */
|
|
47011
|
+
marketplace?: string | null;
|
|
47012
|
+
currency: string;
|
|
47013
|
+
/** YYYY-MM-DD: the transaction date in QuickBooks. */
|
|
47014
|
+
txnDate: string;
|
|
47015
|
+
status: "pending" | "failed" | "posted" | "deleted_in_qbo";
|
|
47016
|
+
/** Signed dollars as posted (a Deposit / refund is the amount returned). */
|
|
47017
|
+
total: number;
|
|
47018
|
+
saleCount: number;
|
|
47019
|
+
docNumber?: string | null;
|
|
47020
|
+
qboId?: string | null;
|
|
47021
|
+
/** Opens the transaction in QuickBooks (null until posted). */
|
|
47022
|
+
qboUrl?: string | null;
|
|
47023
|
+
error?: string | null;
|
|
47024
|
+
attempts: number;
|
|
47025
|
+
postedAt?: string | null;
|
|
47026
|
+
updatedAt: string;
|
|
47027
|
+
};
|
|
47028
|
+
/** The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint. */
|
|
47029
|
+
export type ListIntegrationQuickbookDocsResponse = {
|
|
47030
|
+
/** The rows. */
|
|
47031
|
+
data: ListIntegrationQuickbookDocsItem[];
|
|
47032
|
+
pagination?: Pagination;
|
|
47033
|
+
/** Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty. */
|
|
47034
|
+
meta?: {
|
|
47035
|
+
[key: string]: unknown;
|
|
47036
|
+
};
|
|
47037
|
+
};
|
|
47038
|
+
export type ListIntegrationQuickbookTaxCodesItem = {
|
|
47039
|
+
id: string;
|
|
47040
|
+
name: string;
|
|
47041
|
+
};
|
|
47042
|
+
/** The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint. */
|
|
47043
|
+
export type ListIntegrationQuickbookTaxCodesResponse = {
|
|
47044
|
+
/** The rows. */
|
|
47045
|
+
data: ListIntegrationQuickbookTaxCodesItem[];
|
|
47046
|
+
pagination?: Pagination;
|
|
47047
|
+
/** Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty. */
|
|
47048
|
+
meta?: {
|
|
47049
|
+
[key: string]: unknown;
|
|
47050
|
+
};
|
|
47051
|
+
};
|
|
46830
47052
|
export type ListIntegrationSentryActionsItem = {
|
|
46831
47053
|
id: string;
|
|
46832
47054
|
resource: string;
|
|
@@ -52399,7 +52621,7 @@ export type ListToolboxMineResponse = {
|
|
|
52399
52621
|
};
|
|
52400
52622
|
export type ListToolboxSalesItem = {
|
|
52401
52623
|
purchaseId: string;
|
|
52402
|
-
asset:
|
|
52624
|
+
asset: ListIntegrationQuickbookTaxCodesItem;
|
|
52403
52625
|
grossCents: number;
|
|
52404
52626
|
netCents: number;
|
|
52405
52627
|
authorCents: number;
|
|
@@ -62566,7 +62788,7 @@ export type UpdateDeviceRequest = {
|
|
|
62566
62788
|
name: string;
|
|
62567
62789
|
};
|
|
62568
62790
|
export type UpdateDeviceResponse = {
|
|
62569
|
-
data:
|
|
62791
|
+
data: ListIntegrationQuickbookTaxCodesItem;
|
|
62570
62792
|
};
|
|
62571
62793
|
export type UpdateDeviceSettingRequest = {
|
|
62572
62794
|
keepWarmAccountIds?: string[] | null;
|
|
@@ -62578,6 +62800,18 @@ export type UpdateDeviceSettingRequest = {
|
|
|
62578
62800
|
export type UpdateDeviceSettingResponse = {
|
|
62579
62801
|
data: GetDeviceSettingResponseDataSettings;
|
|
62580
62802
|
};
|
|
62803
|
+
export type UpdateDiscordAlertRequest = {
|
|
62804
|
+
muted?: UpdateDiscordAlertRequestMutedItem[];
|
|
62805
|
+
mode?: "daily" | "instant";
|
|
62806
|
+
dailyHour?: number;
|
|
62807
|
+
};
|
|
62808
|
+
export type UpdateDiscordAlertRequestMutedItem = "sale" | "message" | "other" | "ship_by" | "offer" | "disconnected" | "publish_failed" | "delist_failed" | "stale_listing";
|
|
62809
|
+
export type UpdateDiscordAlertResponse = {
|
|
62810
|
+
data: UpdateDiscordAlertResponseData;
|
|
62811
|
+
};
|
|
62812
|
+
export type UpdateDiscordAlertResponseData = {
|
|
62813
|
+
alerts: GetDiscordResponseDataAlerts;
|
|
62814
|
+
};
|
|
62581
62815
|
export type UpdateDiscountCodeRequest = {
|
|
62582
62816
|
code?: string;
|
|
62583
62817
|
name?: string | null;
|
|
@@ -62858,6 +63092,24 @@ export type UpdateIntegrationNotionPageRequest = {
|
|
|
62858
63092
|
export type UpdateIntegrationNotionSettingRequest = {
|
|
62859
63093
|
listings: boolean;
|
|
62860
63094
|
};
|
|
63095
|
+
export type UpdateIntegrationQuickbookSettingRequest = {
|
|
63096
|
+
mode?: "summary" | "per_order";
|
|
63097
|
+
startDate?: string;
|
|
63098
|
+
timezone?: string;
|
|
63099
|
+
clearing?: "single" | "per_marketplace";
|
|
63100
|
+
postCogs?: boolean;
|
|
63101
|
+
accounts?: UpdateIntegrationQuickbookSettingRequestAccounts;
|
|
63102
|
+
taxCodeId?: string | null;
|
|
63103
|
+
};
|
|
63104
|
+
export type UpdateIntegrationQuickbookSettingRequestAccounts = {
|
|
63105
|
+
sales?: string | null;
|
|
63106
|
+
shippingIncome?: string | null;
|
|
63107
|
+
fees?: string | null;
|
|
63108
|
+
shippingExpense?: string | null;
|
|
63109
|
+
clearing?: string | null;
|
|
63110
|
+
cogs?: string | null;
|
|
63111
|
+
inventoryAsset?: string | null;
|
|
63112
|
+
};
|
|
62861
63113
|
export type UpdateIntegrationSlackRequest = {
|
|
62862
63114
|
channelId?: string | null;
|
|
62863
63115
|
notify?: {
|
|
@@ -63056,15 +63308,10 @@ export type UpdateListingRequest = {
|
|
|
63056
63308
|
};
|
|
63057
63309
|
policies?: UpdateListingRequestPolicies;
|
|
63058
63310
|
packageWeightAndSize?: unknown;
|
|
63059
|
-
PackageWeightAndSize?: unknown;
|
|
63060
63311
|
listingPolicies?: unknown;
|
|
63061
|
-
ListingPolicies?: unknown;
|
|
63062
63312
|
shippingDetails?: unknown;
|
|
63063
|
-
ShippingDetails?: unknown;
|
|
63064
63313
|
dispatchTimeMax?: unknown;
|
|
63065
|
-
DispatchTimeMax?: unknown;
|
|
63066
63314
|
shippingPackageDetails?: unknown;
|
|
63067
|
-
ShippingPackageDetails?: unknown;
|
|
63068
63315
|
data?: {
|
|
63069
63316
|
[key: string]: unknown;
|
|
63070
63317
|
};
|
|
@@ -72083,6 +72330,44 @@ export interface ApiOperations {
|
|
|
72083
72330
|
body: UpdateDeviceSettingRequest;
|
|
72084
72331
|
response: UpdateDeviceSettingResponse;
|
|
72085
72332
|
};
|
|
72333
|
+
/** Your Crossly Discord app link: Discord account, whether DMs reach you, install links, alert settings and channel feeds. */
|
|
72334
|
+
getDiscord: {
|
|
72335
|
+
method: 'GET';
|
|
72336
|
+
path: "/v1/discord";
|
|
72337
|
+
pathParams: never;
|
|
72338
|
+
query: never;
|
|
72339
|
+
body: never;
|
|
72340
|
+
response: GetDiscordResponse;
|
|
72341
|
+
};
|
|
72342
|
+
/** Disconnect your Discord account: alerts and store commands stop. */
|
|
72343
|
+
deleteDiscord: {
|
|
72344
|
+
method: 'DELETE';
|
|
72345
|
+
path: "/v1/discord";
|
|
72346
|
+
pathParams: never;
|
|
72347
|
+
query: never;
|
|
72348
|
+
body: never;
|
|
72349
|
+
response: DeleteDiscordResponse;
|
|
72350
|
+
};
|
|
72351
|
+
/** Which alerts reach you in Discord, and instant or one daily summary at an hour of your timezone. */
|
|
72352
|
+
updateDiscordAlert: {
|
|
72353
|
+
method: 'PATCH';
|
|
72354
|
+
path: "/v1/discord/alerts";
|
|
72355
|
+
pathParams: never;
|
|
72356
|
+
query: never;
|
|
72357
|
+
body: UpdateDiscordAlertRequest;
|
|
72358
|
+
response: UpdateDiscordAlertResponse;
|
|
72359
|
+
};
|
|
72360
|
+
/** Turn off a store feed you set up in a Discord channel. */
|
|
72361
|
+
deleteDiscordFeed: {
|
|
72362
|
+
method: 'DELETE';
|
|
72363
|
+
path: "/v1/discord/feeds/{id}";
|
|
72364
|
+
pathParams: {
|
|
72365
|
+
id: string;
|
|
72366
|
+
};
|
|
72367
|
+
query: never;
|
|
72368
|
+
body: never;
|
|
72369
|
+
response: DeleteLiveClipResponse;
|
|
72370
|
+
};
|
|
72086
72371
|
/** Your discount codes: kind, status (active, scheduled, paused, expired, exhausted, archived), every rule, and usage. */
|
|
72087
72372
|
listDiscountCodes: {
|
|
72088
72373
|
method: 'GET';
|
|
@@ -73974,7 +74259,7 @@ export interface ApiOperations {
|
|
|
73974
74259
|
};
|
|
73975
74260
|
query: never;
|
|
73976
74261
|
body: never;
|
|
73977
|
-
response:
|
|
74262
|
+
response: ListIntegrationQuickbookTaxCodesResponse;
|
|
73978
74263
|
};
|
|
73979
74264
|
/** The store's Notion sync: workspace, parent page, the Crossly databases, last sync, rows per database, the last error. */
|
|
73980
74265
|
getIntegrationNotion: {
|
|
@@ -73992,7 +74277,7 @@ export interface ApiOperations {
|
|
|
73992
74277
|
pathParams: never;
|
|
73993
74278
|
query: never;
|
|
73994
74279
|
body: never;
|
|
73995
|
-
response:
|
|
74280
|
+
response: IntegrationResponse3;
|
|
73996
74281
|
};
|
|
73997
74282
|
/** The Notion consent URL to open in a browser. Share one page in Notion's picker; Crossly makes its databases there. */
|
|
73998
74283
|
createIntegrationNotionConnectUrl: {
|
|
@@ -74001,7 +74286,7 @@ export interface ApiOperations {
|
|
|
74001
74286
|
pathParams: never;
|
|
74002
74287
|
query: never;
|
|
74003
74288
|
body: never;
|
|
74004
|
-
response:
|
|
74289
|
+
response: IntegrationResponse;
|
|
74005
74290
|
};
|
|
74006
74291
|
/** Sync under this Notion page: makes the Crossly Sales and Inventory databases (and Listings, when on) there now and queues the first full sync. */
|
|
74007
74292
|
updateIntegrationNotionPage: {
|
|
@@ -74037,7 +74322,112 @@ export interface ApiOperations {
|
|
|
74037
74322
|
pathParams: never;
|
|
74038
74323
|
query: never;
|
|
74039
74324
|
body: never;
|
|
74040
|
-
response:
|
|
74325
|
+
response: IntegrationResponse2;
|
|
74326
|
+
};
|
|
74327
|
+
/** The store's QuickBooks Online connection: company, settings, last sync, failed and out-of-sync documents, the last error. */
|
|
74328
|
+
getIntegrationQuickbook: {
|
|
74329
|
+
method: 'GET';
|
|
74330
|
+
path: "/v1/integrations/quickbooks";
|
|
74331
|
+
pathParams: never;
|
|
74332
|
+
query: never;
|
|
74333
|
+
body: never;
|
|
74334
|
+
response: GetIntegrationQuickbookResponse;
|
|
74335
|
+
};
|
|
74336
|
+
/** Disconnect QuickBooks for this store: Crossly revokes and forgets its tokens and stops posting. Posted documents stay in QuickBooks. */
|
|
74337
|
+
deleteIntegrationQuickbook: {
|
|
74338
|
+
method: 'DELETE';
|
|
74339
|
+
path: "/v1/integrations/quickbooks";
|
|
74340
|
+
pathParams: never;
|
|
74341
|
+
query: never;
|
|
74342
|
+
body: never;
|
|
74343
|
+
response: IntegrationResponse3;
|
|
74344
|
+
};
|
|
74345
|
+
/** The QuickBooks company's active accounts (id, name, type), for the account mapping. */
|
|
74346
|
+
listIntegrationQuickbookAccounts: {
|
|
74347
|
+
method: 'GET';
|
|
74348
|
+
path: "/v1/integrations/quickbooks/accounts";
|
|
74349
|
+
pathParams: never;
|
|
74350
|
+
query: never;
|
|
74351
|
+
body: never;
|
|
74352
|
+
response: ListIntegrationQuickbookAccountsResponse;
|
|
74353
|
+
};
|
|
74354
|
+
/** Create the default accounts and items the company is missing (Marketplace Sales, Marketplace Fees, …) and map them. */
|
|
74355
|
+
createIntegrationQuickbookAccountDefault: {
|
|
74356
|
+
method: 'POST';
|
|
74357
|
+
path: "/v1/integrations/quickbooks/accounts/defaults";
|
|
74358
|
+
pathParams: never;
|
|
74359
|
+
query: never;
|
|
74360
|
+
body: never;
|
|
74361
|
+
response: CreateIntegrationQuickbookStartResponse;
|
|
74362
|
+
};
|
|
74363
|
+
/** Intuit's consent URL to open in a browser. Connecting lands on the QuickBooks settings page. */
|
|
74364
|
+
createIntegrationQuickbookConnectUrl: {
|
|
74365
|
+
method: 'POST';
|
|
74366
|
+
path: "/v1/integrations/quickbooks/connect-url";
|
|
74367
|
+
pathParams: never;
|
|
74368
|
+
query: never;
|
|
74369
|
+
body: never;
|
|
74370
|
+
response: IntegrationResponse;
|
|
74371
|
+
};
|
|
74372
|
+
/** Sync history: the QuickBooks documents Crossly posted or will post, newest first, with status and error. Page with `cursor`. */
|
|
74373
|
+
listIntegrationQuickbookDocs: {
|
|
74374
|
+
method: 'GET';
|
|
74375
|
+
path: "/v1/integrations/quickbooks/docs";
|
|
74376
|
+
pathParams: never;
|
|
74377
|
+
query: {
|
|
74378
|
+
status?: "pending" | "failed" | "posted" | "deleted_in_qbo";
|
|
74379
|
+
limit?: number;
|
|
74380
|
+
cursor?: string;
|
|
74381
|
+
};
|
|
74382
|
+
body: never;
|
|
74383
|
+
response: ListIntegrationQuickbookDocsResponse;
|
|
74384
|
+
};
|
|
74385
|
+
/** Post a failed document, or one deleted or voided in QuickBooks, again (queued with the next sync). */
|
|
74386
|
+
createIntegrationQuickbookDocRepost: {
|
|
74387
|
+
method: 'POST';
|
|
74388
|
+
path: "/v1/integrations/quickbooks/docs/{id}/repost";
|
|
74389
|
+
pathParams: {
|
|
74390
|
+
id: string;
|
|
74391
|
+
};
|
|
74392
|
+
query: never;
|
|
74393
|
+
body: never;
|
|
74394
|
+
response: CreateIntegrationQuickbookDocRepostResponse;
|
|
74395
|
+
};
|
|
74396
|
+
/** Change the sync settings: summary or per-order mode, start date, time zone, clearing account mode, COGS posting, the account mapping (role → QuickBooks account id) and the tax code. */
|
|
74397
|
+
updateIntegrationQuickbookSetting: {
|
|
74398
|
+
method: 'PATCH';
|
|
74399
|
+
path: "/v1/integrations/quickbooks/settings";
|
|
74400
|
+
pathParams: never;
|
|
74401
|
+
query: never;
|
|
74402
|
+
body: UpdateIntegrationQuickbookSettingRequest;
|
|
74403
|
+
response: GetIntegrationQuickbookResponse;
|
|
74404
|
+
};
|
|
74405
|
+
/** Start syncing with the current settings: posts every sale since the start date, then keeps posting daily. */
|
|
74406
|
+
createIntegrationQuickbookStart: {
|
|
74407
|
+
method: 'POST';
|
|
74408
|
+
path: "/v1/integrations/quickbooks/start";
|
|
74409
|
+
pathParams: never;
|
|
74410
|
+
query: never;
|
|
74411
|
+
body: never;
|
|
74412
|
+
response: CreateIntegrationQuickbookStartResponse;
|
|
74413
|
+
};
|
|
74414
|
+
/** Sync now: queue a sync (new sales and refunds assigned and posted, failed documents retried). */
|
|
74415
|
+
createIntegrationQuickbookSync: {
|
|
74416
|
+
method: 'POST';
|
|
74417
|
+
path: "/v1/integrations/quickbooks/sync";
|
|
74418
|
+
pathParams: never;
|
|
74419
|
+
query: never;
|
|
74420
|
+
body: never;
|
|
74421
|
+
response: IntegrationResponse2;
|
|
74422
|
+
};
|
|
74423
|
+
/** The QuickBooks company's tax codes (companies outside the US pick the exempt one every line carries). */
|
|
74424
|
+
listIntegrationQuickbookTaxCodes: {
|
|
74425
|
+
method: 'GET';
|
|
74426
|
+
path: "/v1/integrations/quickbooks/tax-codes";
|
|
74427
|
+
pathParams: never;
|
|
74428
|
+
query: never;
|
|
74429
|
+
body: never;
|
|
74430
|
+
response: ListIntegrationQuickbookTaxCodesResponse;
|
|
74041
74431
|
};
|
|
74042
74432
|
/** The store's Sentry integration: configured, install link, linked org and status. */
|
|
74043
74433
|
getIntegrationSentry: {
|
|
@@ -74159,7 +74549,7 @@ export interface ApiOperations {
|
|
|
74159
74549
|
pathParams: never;
|
|
74160
74550
|
query: never;
|
|
74161
74551
|
body: never;
|
|
74162
|
-
response:
|
|
74552
|
+
response: IntegrationResponse3;
|
|
74163
74553
|
};
|
|
74164
74554
|
/** The Supabase consent URL to open in a browser. After consent the seller lands on Settings › Integrations › Supabase to pick a project. */
|
|
74165
74555
|
createIntegrationSupabaseConnectUrl: {
|
|
@@ -74168,7 +74558,7 @@ export interface ApiOperations {
|
|
|
74168
74558
|
pathParams: never;
|
|
74169
74559
|
query: never;
|
|
74170
74560
|
body: never;
|
|
74171
|
-
response:
|
|
74561
|
+
response: IntegrationResponse;
|
|
74172
74562
|
};
|
|
74173
74563
|
/** Sync into this Supabase project: creates the crossly schema there now and queues the first full sync. */
|
|
74174
74564
|
updateIntegrationSupabaseProject: {
|
|
@@ -74195,7 +74585,7 @@ export interface ApiOperations {
|
|
|
74195
74585
|
pathParams: never;
|
|
74196
74586
|
query: never;
|
|
74197
74587
|
body: never;
|
|
74198
|
-
response:
|
|
74588
|
+
response: IntegrationResponse2;
|
|
74199
74589
|
};
|
|
74200
74590
|
/** List inventory items. */
|
|
74201
74591
|
listInventory: {
|
|
@@ -100860,7 +101250,7 @@ export interface ApiOperations {
|
|
|
100860
101250
|
};
|
|
100861
101251
|
query: never;
|
|
100862
101252
|
body: CreateWorldParentalChildrenUnlinkRequest;
|
|
100863
|
-
response:
|
|
101253
|
+
response: DeleteDiscordResponse;
|
|
100864
101254
|
};
|
|
100865
101255
|
/** An under-18 account asks for a parent: a one-time code (72 hours) the parent enters while signed in to their own account. Replaces any pending code. */
|
|
100866
101256
|
createWorldParentalInvite: {
|
|
@@ -101674,6 +102064,10 @@ export interface ApiRoutes {
|
|
|
101674
102064
|
"GET /v1/devices/{id}/activity": ApiOperations["listDeviceActivity"];
|
|
101675
102065
|
"GET /v1/devices/{id}/settings": ApiOperations["getDeviceSetting"];
|
|
101676
102066
|
"PATCH /v1/devices/{id}/settings": ApiOperations["updateDeviceSetting"];
|
|
102067
|
+
"GET /v1/discord": ApiOperations["getDiscord"];
|
|
102068
|
+
"DELETE /v1/discord": ApiOperations["deleteDiscord"];
|
|
102069
|
+
"PATCH /v1/discord/alerts": ApiOperations["updateDiscordAlert"];
|
|
102070
|
+
"DELETE /v1/discord/feeds/{id}": ApiOperations["deleteDiscordFeed"];
|
|
101677
102071
|
"GET /v1/discount-codes": ApiOperations["listDiscountCodes"];
|
|
101678
102072
|
"POST /v1/discount-codes": ApiOperations["createDiscountCode"];
|
|
101679
102073
|
"POST /v1/discount-codes/pause-all": ApiOperations["createDiscountCodePauseAll"];
|
|
@@ -101866,6 +102260,17 @@ export interface ApiRoutes {
|
|
|
101866
102260
|
"GET /v1/integrations/notion/pages": ApiOperations["listIntegrationNotionPages"];
|
|
101867
102261
|
"PATCH /v1/integrations/notion/settings": ApiOperations["updateIntegrationNotionSetting"];
|
|
101868
102262
|
"POST /v1/integrations/notion/sync": ApiOperations["createIntegrationNotionSync"];
|
|
102263
|
+
"GET /v1/integrations/quickbooks": ApiOperations["getIntegrationQuickbook"];
|
|
102264
|
+
"DELETE /v1/integrations/quickbooks": ApiOperations["deleteIntegrationQuickbook"];
|
|
102265
|
+
"GET /v1/integrations/quickbooks/accounts": ApiOperations["listIntegrationQuickbookAccounts"];
|
|
102266
|
+
"POST /v1/integrations/quickbooks/accounts/defaults": ApiOperations["createIntegrationQuickbookAccountDefault"];
|
|
102267
|
+
"POST /v1/integrations/quickbooks/connect-url": ApiOperations["createIntegrationQuickbookConnectUrl"];
|
|
102268
|
+
"GET /v1/integrations/quickbooks/docs": ApiOperations["listIntegrationQuickbookDocs"];
|
|
102269
|
+
"POST /v1/integrations/quickbooks/docs/{id}/repost": ApiOperations["createIntegrationQuickbookDocRepost"];
|
|
102270
|
+
"PATCH /v1/integrations/quickbooks/settings": ApiOperations["updateIntegrationQuickbookSetting"];
|
|
102271
|
+
"POST /v1/integrations/quickbooks/start": ApiOperations["createIntegrationQuickbookStart"];
|
|
102272
|
+
"POST /v1/integrations/quickbooks/sync": ApiOperations["createIntegrationQuickbookSync"];
|
|
102273
|
+
"GET /v1/integrations/quickbooks/tax-codes": ApiOperations["listIntegrationQuickbookTaxCodes"];
|
|
101869
102274
|
"GET /v1/integrations/sentry": ApiOperations["getIntegrationSentry"];
|
|
101870
102275
|
"DELETE /v1/integrations/sentry": ApiOperations["deleteIntegrationSentry"];
|
|
101871
102276
|
"GET /v1/integrations/sentry/actions": ApiOperations["listIntegrationSentryActions"];
|