@crossly/sdk 0.3.1 → 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.
Files changed (39) hide show
  1. package/dist/create-client-data-sync.d.ts +3 -0
  2. package/dist/create-client-data-sync.d.ts.map +1 -1
  3. package/dist/create-client-data-sync.js +2 -0
  4. package/dist/create-client-data-sync.js.map +1 -1
  5. package/dist/create-client.d.ts +2 -0
  6. package/dist/create-client.d.ts.map +1 -1
  7. package/dist/create-client.js +2 -0
  8. package/dist/create-client.js.map +1 -1
  9. package/dist/generated/api-types.d.ts +476 -53
  10. package/dist/generated/api-types.d.ts.map +1 -1
  11. package/dist/generated/operations.d.ts +120 -0
  12. package/dist/generated/operations.d.ts.map +1 -1
  13. package/dist/generated/operations.js +15 -0
  14. package/dist/generated/operations.js.map +1 -1
  15. package/dist/index.d.ts +2 -0
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +1 -0
  18. package/dist/index.js.map +1 -1
  19. package/dist/resources/discord.d.ts +69 -0
  20. package/dist/resources/discord.d.ts.map +1 -0
  21. package/dist/resources/discord.js +27 -0
  22. package/dist/resources/discord.js.map +1 -0
  23. package/dist/resources/quickbooks.d.ts +152 -0
  24. package/dist/resources/quickbooks.d.ts.map +1 -0
  25. package/dist/resources/quickbooks.js +97 -0
  26. package/dist/resources/quickbooks.js.map +1 -0
  27. package/dist/resources.d.ts +1 -0
  28. package/dist/resources.d.ts.map +1 -1
  29. package/dist/resources.js +1 -0
  30. package/dist/resources.js.map +1 -1
  31. package/dist/settings-exports.d.ts +2 -0
  32. package/dist/settings-exports.d.ts.map +1 -1
  33. package/dist/settings-exports.js +1 -0
  34. package/dist/settings-exports.js.map +1 -1
  35. package/dist/transport/index.d.ts +11 -0
  36. package/dist/transport/index.d.ts.map +1 -1
  37. package/dist/transport/index.js +13 -0
  38. package/dist/transport/index.js.map +1 -1
  39. package/package.json +2 -2
@@ -730,7 +730,7 @@ export type CreateAutomationRuleImportRequestOneOfTrigger = {
730
730
  };
731
731
  };
732
732
  export type CreateAutomationRuleImportResponse = {
733
- created: ListIntegrationLinearTeamProjectsItem[];
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 CreateIntegrationNotionConnectUrlResponse = {
4105
- data: UpdateWorldExperienceGalleryTrailerUrlRequest;
4104
+ export type CreateIntegrationQuickbookDocRepostResponse = {
4105
+ data: ListIntegrationQuickbookDocsItem;
4106
4106
  };
4107
- export type CreateIntegrationNotionSyncResponse = {
4108
- data: CreateIntegrationNotionSyncResponseData;
4107
+ export type CreateIntegrationQuickbookStartResponse = {
4108
+ data: CreateIntegrationQuickbookStartResponseData;
4109
4109
  };
4110
- export type CreateIntegrationNotionSyncResponseData = {
4111
- queued: boolean;
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;
@@ -17350,7 +17415,11 @@ export type ErrorError = {
17350
17415
  code: string;
17351
17416
  /** Human-readable. May change. */
17352
17417
  message: string;
17353
- /** Optional structured context. */
17418
+ /** Whether the same request can succeed if sent again. false: it gets the same answer until the body, the seller's setup or their plan changes. true: retry after Retry-After, or with backoff. */
17419
+ retryable?: boolean;
17420
+ /** Where this error code is documented. */
17421
+ docsUrl?: string;
17422
+ /** Optional structured context. Where the seller must act, `requirements` lists each step as { id, label, url } (url: the absolute link to the page that fixes it). */
17354
17423
  details?: unknown;
17355
17424
  };
17356
17425
  export type EventResponse = {
@@ -21808,6 +21877,50 @@ export type GetDeviceSettingResponseDataSettings = {
21808
21877
  defaultLabelSize?: "4x6" | "letter" | "a4" | "2x2" | "1x1" | "2x3.5" | null;
21809
21878
  updatedAt?: string | null;
21810
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";
21811
21924
  export type GetDiscountCodeResponse = {
21812
21925
  data: ListDiscountCodesItem;
21813
21926
  };
@@ -22048,7 +22161,7 @@ export type GetEventPolicyResponseData = {
22048
22161
  matrix: GetEventPolicyResponseDataMatrix[];
22049
22162
  rules: GetEventPolicyResponseDataRules[];
22050
22163
  platforms: GetEventPolicyResponseDataPlatforms[];
22051
- apps: ListIntegrationLinearTeamProjectsItem[];
22164
+ apps: ListIntegrationQuickbookTaxCodesItem[];
22052
22165
  };
22053
22166
  export type GetEventPolicyResponseDataMatrix = {
22054
22167
  event: "sale" | "message" | "refunded" | "offer" | "order_cancelled" | "return_opened" | "label_ready" | "shipped" | "delivered" | "payout_sent" | "listing_ended";
@@ -22995,6 +23108,54 @@ export type GetIntegrationLinearResponseEventRules = {
22995
23108
  events: string[];
22996
23109
  defaultOn: boolean;
22997
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
+ };
22998
23159
  export type GetIntegrationResponse = {
22999
23160
  storefrontId?: string | null;
23000
23161
  groups: GetIntegrationResponseGroups[];
@@ -27425,7 +27586,7 @@ export type GetSourceSyncLocationResponse = {
27425
27586
  /** 'shop' (Lightspeed R-Series), 'outlet' (X-Series) or 'location' (Square): what the seller calls it. */
27426
27587
  label: "location" | "shop" | "outlet";
27427
27588
  selectedId?: string | null;
27428
- locations: ListIntegrationLinearTeamProjectsItem[];
27589
+ locations: ListIntegrationQuickbookTaxCodesItem[];
27429
27590
  };
27430
27591
  export type GetSourcingReceiptResponse = {
27431
27592
  log: unknown[];
@@ -29052,7 +29213,21 @@ export type GetStorefrontProfileResponseDataProfileShelves = {
29052
29213
  layout: "rail" | "grid";
29053
29214
  };
29054
29215
  export type GetStorefrontRequirementResponse = {
29055
- data: GetStorefrontOnboardingResponseRequirements;
29216
+ data: GetStorefrontRequirementResponseData;
29217
+ };
29218
+ export type GetStorefrontRequirementResponseData = {
29219
+ ok: boolean;
29220
+ missing: GetStorefrontRequirementResponseDataMissingItem[];
29221
+ fix: {
29222
+ [key: string]: unknown;
29223
+ };
29224
+ requirements: GetStorefrontRequirementResponseDataRequirements[];
29225
+ };
29226
+ export type GetStorefrontRequirementResponseDataMissingItem = "payouts" | "return_policy" | "ship_from" | "shipping_policy";
29227
+ export type GetStorefrontRequirementResponseDataRequirements = {
29228
+ id: "payouts" | "return_policy" | "ship_from" | "shipping_policy";
29229
+ label: string;
29230
+ url: string;
29056
29231
  };
29057
29232
  export type GetStorefrontResponse = {
29058
29233
  data: GetStorefrontResponseData;
@@ -42530,6 +42705,21 @@ export type IntegrationNotionResponseDataWorkspace = {
42530
42705
  name?: string | null;
42531
42706
  icon?: string | null;
42532
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
+ };
42533
42723
  export type InventoryItemIdReason = {
42534
42724
  inventoryItemId: string;
42535
42725
  reason: string;
@@ -44242,7 +44432,7 @@ export type ListConnectionHealthItem = {
44242
44432
  /** Why it ends (CONNECTION_LIFETIMES note), when the platform has a typical lifetime. */
44243
44433
  lifetimeNote?: string | null;
44244
44434
  workflows: ListConnectionHealthItemWorkflows[];
44245
- rules: ListIntegrationLinearTeamProjectsItem[];
44435
+ rules: ListIntegrationQuickbookTaxCodesItem[];
44246
44436
  /** Live listings here whose item is also live elsewhere: a sale elsewhere needs this account to delist them. */
44247
44437
  listingsAtRisk: number;
44248
44438
  };
@@ -46763,20 +46953,6 @@ export type ListIntegrationLinearTeamLabelsResponse = {
46763
46953
  [key: string]: unknown;
46764
46954
  };
46765
46955
  };
46766
- export type ListIntegrationLinearTeamProjectsItem = {
46767
- id: string;
46768
- name: string;
46769
- };
46770
- /** The canonical collection envelope. The array is ALWAYS under `data`, never under the noun — so one accessor works for every list endpoint. */
46771
- export type ListIntegrationLinearTeamProjectsResponse = {
46772
- /** The rows. */
46773
- data: ListIntegrationLinearTeamProjectsItem[];
46774
- pagination?: Pagination;
46775
- /** Endpoint-specific extras that are NOT pagination — e.g. `pendingCents`, `basis`. Omitted when empty. */
46776
- meta?: {
46777
- [key: string]: unknown;
46778
- };
46779
- };
46780
46956
  export type ListIntegrationLinearTeamsItem = {
46781
46957
  id: string;
46782
46958
  name: string;
@@ -46809,6 +46985,70 @@ export type ListIntegrationNotionPagesResponse = {
46809
46985
  [key: string]: unknown;
46810
46986
  };
46811
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
+ };
46812
47052
  export type ListIntegrationSentryActionsItem = {
46813
47053
  id: string;
46814
47054
  resource: string;
@@ -52381,7 +52621,7 @@ export type ListToolboxMineResponse = {
52381
52621
  };
52382
52622
  export type ListToolboxSalesItem = {
52383
52623
  purchaseId: string;
52384
- asset: ListIntegrationLinearTeamProjectsItem;
52624
+ asset: ListIntegrationQuickbookTaxCodesItem;
52385
52625
  grossCents: number;
52386
52626
  netCents: number;
52387
52627
  authorCents: number;
@@ -62548,7 +62788,7 @@ export type UpdateDeviceRequest = {
62548
62788
  name: string;
62549
62789
  };
62550
62790
  export type UpdateDeviceResponse = {
62551
- data: ListIntegrationLinearTeamProjectsItem;
62791
+ data: ListIntegrationQuickbookTaxCodesItem;
62552
62792
  };
62553
62793
  export type UpdateDeviceSettingRequest = {
62554
62794
  keepWarmAccountIds?: string[] | null;
@@ -62560,6 +62800,18 @@ export type UpdateDeviceSettingRequest = {
62560
62800
  export type UpdateDeviceSettingResponse = {
62561
62801
  data: GetDeviceSettingResponseDataSettings;
62562
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
+ };
62563
62815
  export type UpdateDiscountCodeRequest = {
62564
62816
  code?: string;
62565
62817
  name?: string | null;
@@ -62840,6 +63092,24 @@ export type UpdateIntegrationNotionPageRequest = {
62840
63092
  export type UpdateIntegrationNotionSettingRequest = {
62841
63093
  listings: boolean;
62842
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
+ };
62843
63113
  export type UpdateIntegrationSlackRequest = {
62844
63114
  channelId?: string | null;
62845
63115
  notify?: {
@@ -63038,15 +63308,10 @@ export type UpdateListingRequest = {
63038
63308
  };
63039
63309
  policies?: UpdateListingRequestPolicies;
63040
63310
  packageWeightAndSize?: unknown;
63041
- PackageWeightAndSize?: unknown;
63042
63311
  listingPolicies?: unknown;
63043
- ListingPolicies?: unknown;
63044
63312
  shippingDetails?: unknown;
63045
- ShippingDetails?: unknown;
63046
63313
  dispatchTimeMax?: unknown;
63047
- DispatchTimeMax?: unknown;
63048
63314
  shippingPackageDetails?: unknown;
63049
- ShippingPackageDetails?: unknown;
63050
63315
  data?: {
63051
63316
  [key: string]: unknown;
63052
63317
  };
@@ -72065,6 +72330,44 @@ export interface ApiOperations {
72065
72330
  body: UpdateDeviceSettingRequest;
72066
72331
  response: UpdateDeviceSettingResponse;
72067
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
+ };
72068
72371
  /** Your discount codes: kind, status (active, scheduled, paused, expired, exhausted, archived), every rule, and usage. */
72069
72372
  listDiscountCodes: {
72070
72373
  method: 'GET';
@@ -73956,7 +74259,7 @@ export interface ApiOperations {
73956
74259
  };
73957
74260
  query: never;
73958
74261
  body: never;
73959
- response: ListIntegrationLinearTeamProjectsResponse;
74262
+ response: ListIntegrationQuickbookTaxCodesResponse;
73960
74263
  };
73961
74264
  /** The store's Notion sync: workspace, parent page, the Crossly databases, last sync, rows per database, the last error. */
73962
74265
  getIntegrationNotion: {
@@ -73974,7 +74277,7 @@ export interface ApiOperations {
73974
74277
  pathParams: never;
73975
74278
  query: never;
73976
74279
  body: never;
73977
- response: DeleteIntegrationNotionResponse;
74280
+ response: IntegrationResponse3;
73978
74281
  };
73979
74282
  /** The Notion consent URL to open in a browser. Share one page in Notion's picker; Crossly makes its databases there. */
73980
74283
  createIntegrationNotionConnectUrl: {
@@ -73983,7 +74286,7 @@ export interface ApiOperations {
73983
74286
  pathParams: never;
73984
74287
  query: never;
73985
74288
  body: never;
73986
- response: CreateIntegrationNotionConnectUrlResponse;
74289
+ response: IntegrationResponse;
73987
74290
  };
73988
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. */
73989
74292
  updateIntegrationNotionPage: {
@@ -74019,7 +74322,112 @@ export interface ApiOperations {
74019
74322
  pathParams: never;
74020
74323
  query: never;
74021
74324
  body: never;
74022
- response: CreateIntegrationNotionSyncResponse;
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;
74023
74431
  };
74024
74432
  /** The store's Sentry integration: configured, install link, linked org and status. */
74025
74433
  getIntegrationSentry: {
@@ -74141,7 +74549,7 @@ export interface ApiOperations {
74141
74549
  pathParams: never;
74142
74550
  query: never;
74143
74551
  body: never;
74144
- response: DeleteIntegrationNotionResponse;
74552
+ response: IntegrationResponse3;
74145
74553
  };
74146
74554
  /** The Supabase consent URL to open in a browser. After consent the seller lands on Settings › Integrations › Supabase to pick a project. */
74147
74555
  createIntegrationSupabaseConnectUrl: {
@@ -74150,7 +74558,7 @@ export interface ApiOperations {
74150
74558
  pathParams: never;
74151
74559
  query: never;
74152
74560
  body: never;
74153
- response: CreateIntegrationNotionConnectUrlResponse;
74561
+ response: IntegrationResponse;
74154
74562
  };
74155
74563
  /** Sync into this Supabase project: creates the crossly schema there now and queues the first full sync. */
74156
74564
  updateIntegrationSupabaseProject: {
@@ -74177,7 +74585,7 @@ export interface ApiOperations {
74177
74585
  pathParams: never;
74178
74586
  query: never;
74179
74587
  body: never;
74180
- response: CreateIntegrationNotionSyncResponse;
74588
+ response: IntegrationResponse2;
74181
74589
  };
74182
74590
  /** List inventory items. */
74183
74591
  listInventory: {
@@ -100842,7 +101250,7 @@ export interface ApiOperations {
100842
101250
  };
100843
101251
  query: never;
100844
101252
  body: CreateWorldParentalChildrenUnlinkRequest;
100845
- response: CreateWorldParentalChildrenUnlinkResponse;
101253
+ response: DeleteDiscordResponse;
100846
101254
  };
100847
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. */
100848
101256
  createWorldParentalInvite: {
@@ -101656,6 +102064,10 @@ export interface ApiRoutes {
101656
102064
  "GET /v1/devices/{id}/activity": ApiOperations["listDeviceActivity"];
101657
102065
  "GET /v1/devices/{id}/settings": ApiOperations["getDeviceSetting"];
101658
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"];
101659
102071
  "GET /v1/discount-codes": ApiOperations["listDiscountCodes"];
101660
102072
  "POST /v1/discount-codes": ApiOperations["createDiscountCode"];
101661
102073
  "POST /v1/discount-codes/pause-all": ApiOperations["createDiscountCodePauseAll"];
@@ -101848,6 +102260,17 @@ export interface ApiRoutes {
101848
102260
  "GET /v1/integrations/notion/pages": ApiOperations["listIntegrationNotionPages"];
101849
102261
  "PATCH /v1/integrations/notion/settings": ApiOperations["updateIntegrationNotionSetting"];
101850
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"];
101851
102274
  "GET /v1/integrations/sentry": ApiOperations["getIntegrationSentry"];
101852
102275
  "DELETE /v1/integrations/sentry": ApiOperations["deleteIntegrationSentry"];
101853
102276
  "GET /v1/integrations/sentry/actions": ApiOperations["listIntegrationSentryActions"];