@aimee.shop/sdk 0.31.0 → 0.32.0-dev.326
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/generated/core-api.d.ts +89 -63
- package/dist/generated/core-api.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/services/core/taxes/providers.client.d.ts +10 -10
- package/dist/services/core/taxes/providers.client.d.ts.map +1 -1
- package/dist/services/core/taxes/providers.client.js +30 -27
- package/dist/services/core/taxes/providers.client.js.map +1 -1
- package/dist/services/core/taxes/types.d.ts +35 -43
- package/dist/services/core/taxes/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4383,15 +4383,18 @@ export interface paths {
|
|
|
4383
4383
|
patch?: never;
|
|
4384
4384
|
trace?: never;
|
|
4385
4385
|
};
|
|
4386
|
-
'/v1/taxes/providers/import/jobs
|
|
4386
|
+
'/v1/taxes/providers/import/jobs': {
|
|
4387
4387
|
parameters: {
|
|
4388
4388
|
query?: never;
|
|
4389
4389
|
header?: never;
|
|
4390
4390
|
path?: never;
|
|
4391
4391
|
cookie?: never;
|
|
4392
4392
|
};
|
|
4393
|
-
/**
|
|
4394
|
-
|
|
4393
|
+
/**
|
|
4394
|
+
* List tax import jobs, newest first
|
|
4395
|
+
* @description The tenant has at most one active job (uploading, pending or running); when there is one it is the first item.
|
|
4396
|
+
*/
|
|
4397
|
+
get: operations['TaxProvidersController_listImportJobs'];
|
|
4395
4398
|
put?: never;
|
|
4396
4399
|
post?: never;
|
|
4397
4400
|
delete?: never;
|
|
@@ -4400,15 +4403,15 @@ export interface paths {
|
|
|
4400
4403
|
patch?: never;
|
|
4401
4404
|
trace?: never;
|
|
4402
4405
|
};
|
|
4403
|
-
'/v1/taxes/providers/import/jobs/{jobId}
|
|
4406
|
+
'/v1/taxes/providers/import/jobs/{jobId}': {
|
|
4404
4407
|
parameters: {
|
|
4405
4408
|
query?: never;
|
|
4406
4409
|
header?: never;
|
|
4407
4410
|
path?: never;
|
|
4408
4411
|
cookie?: never;
|
|
4409
4412
|
};
|
|
4410
|
-
/** Get
|
|
4411
|
-
get: operations['
|
|
4413
|
+
/** Get tax import job status */
|
|
4414
|
+
get: operations['TaxProvidersController_getImportJob'];
|
|
4412
4415
|
put?: never;
|
|
4413
4416
|
post?: never;
|
|
4414
4417
|
delete?: never;
|
|
@@ -4417,17 +4420,17 @@ export interface paths {
|
|
|
4417
4420
|
patch?: never;
|
|
4418
4421
|
trace?: never;
|
|
4419
4422
|
};
|
|
4420
|
-
'/v1/taxes/providers/import': {
|
|
4423
|
+
'/v1/taxes/providers/import/jobs/{jobId}/report': {
|
|
4421
4424
|
parameters: {
|
|
4422
4425
|
query?: never;
|
|
4423
4426
|
header?: never;
|
|
4424
4427
|
path?: never;
|
|
4425
4428
|
cookie?: never;
|
|
4426
4429
|
};
|
|
4427
|
-
|
|
4430
|
+
/** Get signed URL for import row report */
|
|
4431
|
+
get: operations['TaxProvidersController_getImportJobReport'];
|
|
4428
4432
|
put?: never;
|
|
4429
|
-
|
|
4430
|
-
post: operations['TaxProvidersController_importFromCSV'];
|
|
4433
|
+
post?: never;
|
|
4431
4434
|
delete?: never;
|
|
4432
4435
|
options?: never;
|
|
4433
4436
|
head?: never;
|
|
@@ -22293,6 +22296,12 @@ export interface components {
|
|
|
22293
22296
|
minLinePrice?: number;
|
|
22294
22297
|
/** @description Override applies to lines priced at or below this amount */
|
|
22295
22298
|
maxLinePrice?: number;
|
|
22299
|
+
/** @description State or province name, when the file gives one */
|
|
22300
|
+
stateName?: string;
|
|
22301
|
+
/** @description Label kept on the rate, e.g. the name of the source row the rate came from */
|
|
22302
|
+
displayName?: string;
|
|
22303
|
+
/** @description Line of the CSV file this row came from (the header is 1) */
|
|
22304
|
+
sourceRow?: number;
|
|
22296
22305
|
};
|
|
22297
22306
|
TaxImportErrorItemDto: {
|
|
22298
22307
|
/**
|
|
@@ -22354,8 +22363,12 @@ export interface components {
|
|
|
22354
22363
|
ratesCreated: number;
|
|
22355
22364
|
/** @description Number of existing tax rates updated */
|
|
22356
22365
|
ratesUpdated: number;
|
|
22366
|
+
/** @description Rates removed by a replace import (rates the file did not list); in a dry run, how many would be removed. 0 without replace, and 0 when any row had an error */
|
|
22367
|
+
ratesDeleted: number;
|
|
22357
22368
|
/** @description Preview of what each row would do on actual import */
|
|
22358
22369
|
preview: components['schemas']['TaxImportPreviewItemDto'][];
|
|
22370
|
+
/** @description True when the file has more rows than preview lists (first 500); the counts cover the whole file */
|
|
22371
|
+
previewTruncated: boolean;
|
|
22359
22372
|
};
|
|
22360
22373
|
TaxImportCommitResponseDto: {
|
|
22361
22374
|
jobId: string;
|
|
@@ -22372,33 +22385,21 @@ export interface components {
|
|
|
22372
22385
|
jurisdictionsCreated: number;
|
|
22373
22386
|
ratesCreated: number;
|
|
22374
22387
|
ratesUpdated: number;
|
|
22388
|
+
/** @description Rates removed by a replace import */
|
|
22389
|
+
ratesDeleted: number;
|
|
22375
22390
|
errorMessage?: string | null;
|
|
22376
22391
|
reportS3Key?: string | null;
|
|
22377
22392
|
createdAt: string;
|
|
22378
22393
|
completedAt?: string | null;
|
|
22379
22394
|
};
|
|
22395
|
+
TaxImportJobListResponseDto: {
|
|
22396
|
+
data: components['schemas']['TaxImportJobResponseDto'][];
|
|
22397
|
+
meta: components['schemas']['PaginationMetaDto'];
|
|
22398
|
+
};
|
|
22380
22399
|
TaxImportJobReportDto: {
|
|
22381
22400
|
downloadUrl: string;
|
|
22382
22401
|
expiresAt: string;
|
|
22383
22402
|
};
|
|
22384
|
-
TaxImportResultDto: {
|
|
22385
|
-
/** @description Whether the operation was successful */
|
|
22386
|
-
success: boolean;
|
|
22387
|
-
/** @description Total rows parsed from CSV */
|
|
22388
|
-
totalRows: number;
|
|
22389
|
-
/** @description Number of rows successfully imported */
|
|
22390
|
-
imported: number;
|
|
22391
|
-
/** @description Number of rows skipped (already exist) */
|
|
22392
|
-
skipped: number;
|
|
22393
|
-
/** @description Rows that failed validation or import */
|
|
22394
|
-
errors: components['schemas']['TaxImportErrorItemDto'][];
|
|
22395
|
-
/** @description Number of new jurisdictions created */
|
|
22396
|
-
jurisdictionsCreated: number;
|
|
22397
|
-
/** @description Number of new tax rates created */
|
|
22398
|
-
ratesCreated: number;
|
|
22399
|
-
/** @description Number of existing tax rates updated */
|
|
22400
|
-
ratesUpdated: number;
|
|
22401
|
-
};
|
|
22402
22403
|
TaxProviderSummaryDto: {
|
|
22403
22404
|
/** @description Provider ID */
|
|
22404
22405
|
id: string;
|
|
@@ -22871,6 +22872,8 @@ export interface components {
|
|
|
22871
22872
|
productCategory?: string;
|
|
22872
22873
|
/** @description Postal code(s) the rate is limited to, separated by "," or ";" (trailing * is a prefix wildcard); blank or * means any ZIP */
|
|
22873
22874
|
zip: string;
|
|
22875
|
+
/** @description Label for the rate, e.g. the source row name of an imported rate */
|
|
22876
|
+
displayName?: string;
|
|
22874
22877
|
};
|
|
22875
22878
|
CombinedTaxRateResponseDto: {
|
|
22876
22879
|
/** @description Combined rate as decimal */
|
|
@@ -23021,6 +23024,26 @@ export interface components {
|
|
|
23021
23024
|
version: string;
|
|
23022
23025
|
preview: components['schemas']['TaxImportDryRunResultDto'];
|
|
23023
23026
|
};
|
|
23027
|
+
TaxImportResultDto: {
|
|
23028
|
+
/** @description Whether the operation was successful */
|
|
23029
|
+
success: boolean;
|
|
23030
|
+
/** @description Total rows parsed from CSV */
|
|
23031
|
+
totalRows: number;
|
|
23032
|
+
/** @description Number of rows successfully imported */
|
|
23033
|
+
imported: number;
|
|
23034
|
+
/** @description Number of rows skipped (already exist) */
|
|
23035
|
+
skipped: number;
|
|
23036
|
+
/** @description Rows that failed validation or import */
|
|
23037
|
+
errors: components['schemas']['TaxImportErrorItemDto'][];
|
|
23038
|
+
/** @description Number of new jurisdictions created */
|
|
23039
|
+
jurisdictionsCreated: number;
|
|
23040
|
+
/** @description Number of new tax rates created */
|
|
23041
|
+
ratesCreated: number;
|
|
23042
|
+
/** @description Number of existing tax rates updated */
|
|
23043
|
+
ratesUpdated: number;
|
|
23044
|
+
/** @description Rates removed by a replace import (rates the file did not list); in a dry run, how many would be removed. 0 without replace, and 0 when any row had an error */
|
|
23045
|
+
ratesDeleted: number;
|
|
23046
|
+
};
|
|
23024
23047
|
StarterOptInResponseDto: {
|
|
23025
23048
|
/** @example Starter rates (statewide base only, last updated 2026-10-22). Local taxes not included. Review before going live. */
|
|
23026
23049
|
label: string;
|
|
@@ -25192,14 +25215,6 @@ export interface components {
|
|
|
25192
25215
|
* ]
|
|
25193
25216
|
*/
|
|
25194
25217
|
countries?: string[];
|
|
25195
|
-
/**
|
|
25196
|
-
* @description Only these states or provinces. [] clears.
|
|
25197
|
-
* @example [
|
|
25198
|
-
* "CA",
|
|
25199
|
-
* "NY"
|
|
25200
|
-
* ]
|
|
25201
|
-
*/
|
|
25202
|
-
states?: string[];
|
|
25203
25218
|
/**
|
|
25204
25219
|
* @description Offered only when the cart total is at least this many cents. null clears it.
|
|
25205
25220
|
* @example 2500
|
|
@@ -25210,8 +25225,6 @@ export interface components {
|
|
|
25210
25225
|
* @example 5000
|
|
25211
25226
|
*/
|
|
25212
25227
|
freeShippingThreshold?: number | null;
|
|
25213
|
-
/** @description Offered only when the cart has a product in one of these shipping classes. [] clears. */
|
|
25214
|
-
shippingClassIds?: string[];
|
|
25215
25228
|
/**
|
|
25216
25229
|
* @description Offered at checkout
|
|
25217
25230
|
* @default true
|
|
@@ -25222,6 +25235,16 @@ export interface components {
|
|
|
25222
25235
|
* @default 0
|
|
25223
25236
|
*/
|
|
25224
25237
|
priority?: number;
|
|
25238
|
+
/**
|
|
25239
|
+
* @description Only these states or provinces. [] clears.
|
|
25240
|
+
* @example [
|
|
25241
|
+
* "CA",
|
|
25242
|
+
* "NY"
|
|
25243
|
+
* ]
|
|
25244
|
+
*/
|
|
25245
|
+
states?: string[];
|
|
25246
|
+
/** @description Offered only when the cart has a product in one of these shipping classes. [] clears. */
|
|
25247
|
+
shippingClassIds?: string[];
|
|
25225
25248
|
};
|
|
25226
25249
|
ShippingStoreStatusDto: {
|
|
25227
25250
|
storeId: string;
|
|
@@ -49478,6 +49501,10 @@ export interface operations {
|
|
|
49478
49501
|
format?: 'standard';
|
|
49479
49502
|
/** @description Update matching rates on re-import (default: true). Set to false to skip existing rates. */
|
|
49480
49503
|
updateExisting?: boolean;
|
|
49504
|
+
/** @description For a format with no shipping column: whether imported rates also apply to the shipping charge (default: true). Ignored by the standard format, which has is_shipping_taxable. */
|
|
49505
|
+
shippingTaxable?: boolean;
|
|
49506
|
+
/** @description Replace mode (default: false): after every row is written, delete the internal rates the file does not list, including hand-made, starter, category and override rates. Nothing is deleted when any row has an error. */
|
|
49507
|
+
replace?: boolean;
|
|
49481
49508
|
};
|
|
49482
49509
|
header?: never;
|
|
49483
49510
|
path?: never;
|
|
@@ -49507,6 +49534,10 @@ export interface operations {
|
|
|
49507
49534
|
updateExisting?: boolean;
|
|
49508
49535
|
/** @description CSV format (auto-detected if not specified) */
|
|
49509
49536
|
format?: 'standard';
|
|
49537
|
+
/** @description For a format with no shipping column: whether imported rates also apply to the shipping charge (default: true). Ignored by the standard format, which has is_shipping_taxable. */
|
|
49538
|
+
shippingTaxable?: boolean;
|
|
49539
|
+
/** @description Replace mode (default: false): after every row is written, delete the internal rates the file does not list, including hand-made, starter, category and override rates. Nothing is deleted when any row has an error. */
|
|
49540
|
+
replace?: boolean;
|
|
49510
49541
|
};
|
|
49511
49542
|
header: {
|
|
49512
49543
|
'idempotency-key': string;
|
|
@@ -49532,13 +49563,16 @@ export interface operations {
|
|
|
49532
49563
|
};
|
|
49533
49564
|
};
|
|
49534
49565
|
};
|
|
49535
|
-
|
|
49566
|
+
TaxProvidersController_listImportJobs: {
|
|
49536
49567
|
parameters: {
|
|
49537
|
-
query?:
|
|
49538
|
-
|
|
49539
|
-
|
|
49540
|
-
|
|
49568
|
+
query?: {
|
|
49569
|
+
/** @description Page number (1-indexed) */
|
|
49570
|
+
page?: number;
|
|
49571
|
+
/** @description Number of jobs per page */
|
|
49572
|
+
limit?: number;
|
|
49541
49573
|
};
|
|
49574
|
+
header?: never;
|
|
49575
|
+
path?: never;
|
|
49542
49576
|
cookie?: never;
|
|
49543
49577
|
};
|
|
49544
49578
|
requestBody?: never;
|
|
@@ -49548,12 +49582,12 @@ export interface operations {
|
|
|
49548
49582
|
[name: string]: unknown;
|
|
49549
49583
|
};
|
|
49550
49584
|
content: {
|
|
49551
|
-
'application/json': components['schemas']['
|
|
49585
|
+
'application/json': components['schemas']['TaxImportJobListResponseDto'];
|
|
49552
49586
|
};
|
|
49553
49587
|
};
|
|
49554
49588
|
};
|
|
49555
49589
|
};
|
|
49556
|
-
|
|
49590
|
+
TaxProvidersController_getImportJob: {
|
|
49557
49591
|
parameters: {
|
|
49558
49592
|
query?: never;
|
|
49559
49593
|
header?: never;
|
|
@@ -49569,36 +49603,28 @@ export interface operations {
|
|
|
49569
49603
|
[name: string]: unknown;
|
|
49570
49604
|
};
|
|
49571
49605
|
content: {
|
|
49572
|
-
'application/json': components['schemas']['
|
|
49606
|
+
'application/json': components['schemas']['TaxImportJobResponseDto'];
|
|
49573
49607
|
};
|
|
49574
49608
|
};
|
|
49575
49609
|
};
|
|
49576
49610
|
};
|
|
49577
|
-
|
|
49611
|
+
TaxProvidersController_getImportJobReport: {
|
|
49578
49612
|
parameters: {
|
|
49579
|
-
query?:
|
|
49580
|
-
/** @description Update matching rates on re-import (default: true). Set to false to skip existing rates. */
|
|
49581
|
-
updateExisting?: boolean;
|
|
49582
|
-
/** @description CSV format (auto-detected if not specified) */
|
|
49583
|
-
format?: 'standard';
|
|
49584
|
-
};
|
|
49613
|
+
query?: never;
|
|
49585
49614
|
header?: never;
|
|
49586
|
-
path
|
|
49587
|
-
|
|
49588
|
-
};
|
|
49589
|
-
requestBody: {
|
|
49590
|
-
content: {
|
|
49591
|
-
'application/json': components['schemas']['TaxImportBodyDto'];
|
|
49615
|
+
path: {
|
|
49616
|
+
jobId: string;
|
|
49592
49617
|
};
|
|
49618
|
+
cookie?: never;
|
|
49593
49619
|
};
|
|
49620
|
+
requestBody?: never;
|
|
49594
49621
|
responses: {
|
|
49595
|
-
|
|
49596
|
-
201: {
|
|
49622
|
+
200: {
|
|
49597
49623
|
headers: {
|
|
49598
49624
|
[name: string]: unknown;
|
|
49599
49625
|
};
|
|
49600
49626
|
content: {
|
|
49601
|
-
'application/json': components['schemas']['
|
|
49627
|
+
'application/json': components['schemas']['TaxImportJobReportDto'];
|
|
49602
49628
|
};
|
|
49603
49629
|
};
|
|
49604
49630
|
};
|
|
@@ -50335,7 +50361,7 @@ export interface operations {
|
|
|
50335
50361
|
query?: {
|
|
50336
50362
|
/** @description Number of rules to skip */
|
|
50337
50363
|
skip?: number;
|
|
50338
|
-
/** @description Number of rules to return */
|
|
50364
|
+
/** @description Number of rules to return, 1 to 100 (default 10; 0 uses the default). More is a 400. */
|
|
50339
50365
|
take?: number;
|
|
50340
50366
|
/** @description Filter by rule type */
|
|
50341
50367
|
ruleType?: string;
|