@artaio/node-api 1.6.0 → 1.8.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/dist/lib/arta.d.ts +6 -0
- package/dist/lib/arta.js +7 -0
- package/dist/lib/endpoint/addressVerifications.d.ts +30 -0
- package/dist/lib/endpoint/addressVerifications.js +27 -0
- package/dist/lib/endpoint/selfShipCollectionAvailabilityChecks.d.ts +28 -0
- package/dist/lib/endpoint/selfShipCollectionAvailabilityChecks.js +54 -0
- package/dist/lib/endpoint/selfShipCollections.d.ts +41 -0
- package/dist/lib/endpoint/selfShipCollections.js +27 -0
- package/dist/lib/index.d.ts +3 -0
- package/dist/lib/types.d.ts +82 -0
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/lib/arta.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Logger, LoggerVerbosity } from './logging';
|
|
2
|
+
import { AddressVerificationsEndpoint } from './endpoint/addressVerifications';
|
|
2
3
|
import { AttachmentsEndpoint } from './endpoint/attachment';
|
|
3
4
|
import { EmailRulesEndpoint } from './endpoint/emailRules';
|
|
4
5
|
import { EmailSubscriptionsEndpoint } from './endpoint/emailSubscriptions';
|
|
@@ -15,6 +16,8 @@ import { WebhookDeliveriesEndpoint } from './endpoint/webhookDeliveries';
|
|
|
15
16
|
import { WebhooksEndpoint } from './endpoint/webhooks';
|
|
16
17
|
import { TrackingsEndpoint } from './endpoint/trackings';
|
|
17
18
|
import { QuoteRequestsEndpoint } from './endpoint/requests';
|
|
19
|
+
import { SelfShipCollectionAvailabilityChecksEndpoint } from './endpoint/selfShipCollectionAvailabilityChecks';
|
|
20
|
+
import { SelfShipCollectionsEndpoint } from './endpoint/selfShipCollections';
|
|
18
21
|
import { ShipmentsEndpoint } from './endpoint/shipments';
|
|
19
22
|
import { TagsEndpoint } from './endpoint/tags';
|
|
20
23
|
export interface ArtaConfig {
|
|
@@ -25,6 +28,7 @@ export interface ArtaConfig {
|
|
|
25
28
|
export declare class Arta {
|
|
26
29
|
private readonly artaClient;
|
|
27
30
|
private readonly config;
|
|
31
|
+
address_verifications: AddressVerificationsEndpoint;
|
|
28
32
|
attachments: AttachmentsEndpoint;
|
|
29
33
|
email_rules: EmailRulesEndpoint;
|
|
30
34
|
email_subscriptions: EmailSubscriptionsEndpoint;
|
|
@@ -37,6 +41,8 @@ export declare class Arta {
|
|
|
37
41
|
organizations: OrganizationsEndpoint;
|
|
38
42
|
payments: PaymentsEndpoint;
|
|
39
43
|
requests: QuoteRequestsEndpoint;
|
|
44
|
+
self_ship_collection_availability_checks: SelfShipCollectionAvailabilityChecksEndpoint;
|
|
45
|
+
self_ship_collections: SelfShipCollectionsEndpoint;
|
|
40
46
|
shipments: ShipmentsEndpoint;
|
|
41
47
|
tags: TagsEndpoint;
|
|
42
48
|
trackings: TrackingsEndpoint;
|
package/dist/lib/arta.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.Arta = void 0;
|
|
|
4
4
|
var ArtaClient_1 = require("./ArtaClient");
|
|
5
5
|
var logging_1 = require("./logging");
|
|
6
6
|
var FetchHttpClient_1 = require("./net/FetchHttpClient");
|
|
7
|
+
var addressVerifications_1 = require("./endpoint/addressVerifications");
|
|
7
8
|
var attachment_1 = require("./endpoint/attachment");
|
|
8
9
|
var emailRules_1 = require("./endpoint/emailRules");
|
|
9
10
|
var emailSubscriptions_1 = require("./endpoint/emailSubscriptions");
|
|
@@ -20,6 +21,8 @@ var webhookDeliveries_1 = require("./endpoint/webhookDeliveries");
|
|
|
20
21
|
var webhooks_1 = require("./endpoint/webhooks");
|
|
21
22
|
var trackings_1 = require("./endpoint/trackings");
|
|
22
23
|
var requests_1 = require("./endpoint/requests");
|
|
24
|
+
var selfShipCollectionAvailabilityChecks_1 = require("./endpoint/selfShipCollectionAvailabilityChecks");
|
|
25
|
+
var selfShipCollections_1 = require("./endpoint/selfShipCollections");
|
|
23
26
|
var shipments_1 = require("./endpoint/shipments");
|
|
24
27
|
var tags_1 = require("./endpoint/tags");
|
|
25
28
|
var defaultConfig = {
|
|
@@ -35,6 +38,7 @@ var Arta = /** @class */ (function () {
|
|
|
35
38
|
apiKey: apiKey,
|
|
36
39
|
host: this.config.host,
|
|
37
40
|
});
|
|
41
|
+
this.address_verifications = new addressVerifications_1.AddressVerificationsEndpoint(this.artaClient);
|
|
38
42
|
this.attachments = new attachment_1.AttachmentsEndpoint(this.artaClient);
|
|
39
43
|
this.email_rules = new emailRules_1.EmailRulesEndpoint(this.artaClient);
|
|
40
44
|
this.email_subscriptions = new emailSubscriptions_1.EmailSubscriptionsEndpoint(this.artaClient);
|
|
@@ -47,6 +51,9 @@ var Arta = /** @class */ (function () {
|
|
|
47
51
|
this.organizations = new organization_1.OrganizationsEndpoint(this.artaClient);
|
|
48
52
|
this.payments = new payments_1.PaymentsEndpoint(this.artaClient);
|
|
49
53
|
this.requests = new requests_1.QuoteRequestsEndpoint(this.artaClient);
|
|
54
|
+
this.self_ship_collection_availability_checks =
|
|
55
|
+
new selfShipCollectionAvailabilityChecks_1.SelfShipCollectionAvailabilityChecksEndpoint(this.artaClient);
|
|
56
|
+
this.self_ship_collections = new selfShipCollections_1.SelfShipCollectionsEndpoint(this.artaClient);
|
|
50
57
|
this.shipments = new shipments_1.ShipmentsEndpoint(this.artaClient);
|
|
51
58
|
this.tags = new tags_1.TagsEndpoint(this.artaClient);
|
|
52
59
|
this.trackings = new trackings_1.TrackingsEndpoint(this.artaClient);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ArtaID } from '../ArtaClient';
|
|
2
|
+
import type { RestClient } from '../net/RestClient';
|
|
3
|
+
import type { Page } from '../pagination';
|
|
4
|
+
import type { AddressVerification } from '../types';
|
|
5
|
+
export interface AddressVerificationCreateBodyInput {
|
|
6
|
+
address_line_1: string;
|
|
7
|
+
address_line_2?: string | null;
|
|
8
|
+
address_line_3?: string | null;
|
|
9
|
+
city?: string | null;
|
|
10
|
+
region?: string | null;
|
|
11
|
+
postal_code?: string | null;
|
|
12
|
+
country: string;
|
|
13
|
+
}
|
|
14
|
+
export interface AddressVerificationCreateBody {
|
|
15
|
+
input: AddressVerificationCreateBodyInput;
|
|
16
|
+
reference?: string | null;
|
|
17
|
+
}
|
|
18
|
+
export interface AddressVerificationCreate {
|
|
19
|
+
address_verification: AddressVerificationCreateBody;
|
|
20
|
+
}
|
|
21
|
+
export declare class AddressVerificationsEndpoint {
|
|
22
|
+
private readonly artaClient;
|
|
23
|
+
private readonly defaultEndpoint;
|
|
24
|
+
private readonly path;
|
|
25
|
+
constructor(artaClient: RestClient);
|
|
26
|
+
getById(id: ArtaID, auth?: string): Promise<AddressVerification>;
|
|
27
|
+
list(page?: number, pageSize?: number, auth?: string): Promise<Page<AddressVerification>>;
|
|
28
|
+
listAll(auth?: string): AsyncGenerator<AddressVerification>;
|
|
29
|
+
create(payload: AddressVerificationCreateBody, auth?: string): Promise<AddressVerification>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddressVerificationsEndpoint = void 0;
|
|
4
|
+
var endpoint_1 = require("./endpoint");
|
|
5
|
+
var AddressVerificationsEndpoint = /** @class */ (function () {
|
|
6
|
+
function AddressVerificationsEndpoint(artaClient) {
|
|
7
|
+
this.artaClient = artaClient;
|
|
8
|
+
this.path = '/address_verifications';
|
|
9
|
+
this.defaultEndpoint = new endpoint_1.DefaultEndpoint(this.path, this.artaClient);
|
|
10
|
+
}
|
|
11
|
+
AddressVerificationsEndpoint.prototype.getById = function (id, auth) {
|
|
12
|
+
return this.defaultEndpoint.getById(id, auth);
|
|
13
|
+
};
|
|
14
|
+
AddressVerificationsEndpoint.prototype.list = function (page, pageSize, auth) {
|
|
15
|
+
if (page === void 0) { page = 1; }
|
|
16
|
+
if (pageSize === void 0) { pageSize = 20; }
|
|
17
|
+
return this.defaultEndpoint.list({ page: page, page_size: pageSize }, auth);
|
|
18
|
+
};
|
|
19
|
+
AddressVerificationsEndpoint.prototype.listAll = function (auth) {
|
|
20
|
+
return this.defaultEndpoint.listAll(auth);
|
|
21
|
+
};
|
|
22
|
+
AddressVerificationsEndpoint.prototype.create = function (payload, auth) {
|
|
23
|
+
return this.defaultEndpoint.create({ address_verification: payload }, auth);
|
|
24
|
+
};
|
|
25
|
+
return AddressVerificationsEndpoint;
|
|
26
|
+
}());
|
|
27
|
+
exports.AddressVerificationsEndpoint = AddressVerificationsEndpoint;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { RestClient } from '../net/RestClient';
|
|
2
|
+
import type { SelfShipCollectionAvailabilityCheck } from '../types';
|
|
3
|
+
export interface SelfShipCollectionAvailabilityCheckCreateBody {
|
|
4
|
+
location: {
|
|
5
|
+
address_line_1: string;
|
|
6
|
+
address_line_2?: string | null;
|
|
7
|
+
city: string;
|
|
8
|
+
region: string;
|
|
9
|
+
postal_code: string;
|
|
10
|
+
country: string;
|
|
11
|
+
close_time: string;
|
|
12
|
+
};
|
|
13
|
+
service: {
|
|
14
|
+
carrier: 'fedex';
|
|
15
|
+
code: 'express' | 'ground';
|
|
16
|
+
route: 'domestic' | 'international';
|
|
17
|
+
};
|
|
18
|
+
collection_date: string;
|
|
19
|
+
}
|
|
20
|
+
export interface SelfShipCollectionAvailabilityCheckCreate {
|
|
21
|
+
self_ship_collection_availability_check: SelfShipCollectionAvailabilityCheckCreateBody;
|
|
22
|
+
}
|
|
23
|
+
export declare class SelfShipCollectionAvailabilityChecksEndpoint {
|
|
24
|
+
private readonly artaClient;
|
|
25
|
+
private readonly path;
|
|
26
|
+
constructor(artaClient: RestClient);
|
|
27
|
+
create(payload: SelfShipCollectionAvailabilityCheckCreateBody, auth?: string): Promise<SelfShipCollectionAvailabilityCheck>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.SelfShipCollectionAvailabilityChecksEndpoint = void 0;
|
|
40
|
+
var SelfShipCollectionAvailabilityChecksEndpoint = /** @class */ (function () {
|
|
41
|
+
function SelfShipCollectionAvailabilityChecksEndpoint(artaClient) {
|
|
42
|
+
this.artaClient = artaClient;
|
|
43
|
+
this.path = '/self_ship_collection_availability_checks';
|
|
44
|
+
}
|
|
45
|
+
SelfShipCollectionAvailabilityChecksEndpoint.prototype.create = function (payload, auth) {
|
|
46
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
47
|
+
return __generator(this, function (_a) {
|
|
48
|
+
return [2 /*return*/, this.artaClient.post(this.path, { self_ship_collection_availability_check: payload }, auth)];
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
return SelfShipCollectionAvailabilityChecksEndpoint;
|
|
53
|
+
}());
|
|
54
|
+
exports.SelfShipCollectionAvailabilityChecksEndpoint = SelfShipCollectionAvailabilityChecksEndpoint;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ArtaID } from '../ArtaClient';
|
|
2
|
+
import type { RestClient } from '../net/RestClient';
|
|
3
|
+
import type { Page } from '../pagination';
|
|
4
|
+
import type { SelfShipCollection } from '../types';
|
|
5
|
+
export interface SelfShipCollectionCreateBody {
|
|
6
|
+
location: {
|
|
7
|
+
address_line_1: string;
|
|
8
|
+
address_line_2?: string | null;
|
|
9
|
+
city: string;
|
|
10
|
+
region: string;
|
|
11
|
+
postal_code: string;
|
|
12
|
+
country: string;
|
|
13
|
+
close_time: string;
|
|
14
|
+
package_location: 'front' | 'none' | 'rear' | 'side';
|
|
15
|
+
contact: {
|
|
16
|
+
name: string;
|
|
17
|
+
phone_number: string;
|
|
18
|
+
email_address: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
service: {
|
|
22
|
+
carrier: 'fedex';
|
|
23
|
+
code: 'express' | 'ground';
|
|
24
|
+
route: 'domestic' | 'international';
|
|
25
|
+
};
|
|
26
|
+
collection_date: string;
|
|
27
|
+
collection_time: string;
|
|
28
|
+
}
|
|
29
|
+
export interface SelfShipCollectionCreate {
|
|
30
|
+
self_ship_collection: SelfShipCollectionCreateBody;
|
|
31
|
+
}
|
|
32
|
+
export declare class SelfShipCollectionsEndpoint {
|
|
33
|
+
private readonly artaClient;
|
|
34
|
+
private readonly defaultEndpoint;
|
|
35
|
+
private readonly path;
|
|
36
|
+
constructor(artaClient: RestClient);
|
|
37
|
+
getById(id: ArtaID, auth?: string): Promise<SelfShipCollection>;
|
|
38
|
+
list(page?: number, pageSize?: number, auth?: string): Promise<Page<SelfShipCollection>>;
|
|
39
|
+
listAll(auth?: string): AsyncGenerator<SelfShipCollection>;
|
|
40
|
+
create(payload: SelfShipCollectionCreateBody, auth?: string): Promise<SelfShipCollection>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SelfShipCollectionsEndpoint = void 0;
|
|
4
|
+
var endpoint_1 = require("./endpoint");
|
|
5
|
+
var SelfShipCollectionsEndpoint = /** @class */ (function () {
|
|
6
|
+
function SelfShipCollectionsEndpoint(artaClient) {
|
|
7
|
+
this.artaClient = artaClient;
|
|
8
|
+
this.path = '/self_ship_collections';
|
|
9
|
+
this.defaultEndpoint = new endpoint_1.DefaultEndpoint(this.path, this.artaClient);
|
|
10
|
+
}
|
|
11
|
+
SelfShipCollectionsEndpoint.prototype.getById = function (id, auth) {
|
|
12
|
+
return this.defaultEndpoint.getById(id, auth);
|
|
13
|
+
};
|
|
14
|
+
SelfShipCollectionsEndpoint.prototype.list = function (page, pageSize, auth) {
|
|
15
|
+
if (page === void 0) { page = 1; }
|
|
16
|
+
if (pageSize === void 0) { pageSize = 20; }
|
|
17
|
+
return this.defaultEndpoint.list({ page: page, page_size: pageSize }, auth);
|
|
18
|
+
};
|
|
19
|
+
SelfShipCollectionsEndpoint.prototype.listAll = function (auth) {
|
|
20
|
+
return this.defaultEndpoint.listAll(auth);
|
|
21
|
+
};
|
|
22
|
+
SelfShipCollectionsEndpoint.prototype.create = function (payload, auth) {
|
|
23
|
+
return this.defaultEndpoint.create({ self_ship_collection: payload }, auth);
|
|
24
|
+
};
|
|
25
|
+
return SelfShipCollectionsEndpoint;
|
|
26
|
+
}());
|
|
27
|
+
exports.SelfShipCollectionsEndpoint = SelfShipCollectionsEndpoint;
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { Arta } from './arta';
|
|
2
2
|
export { Logger, LoggerVerbosity } from './logging';
|
|
3
|
+
export { AddressVerificationCreateBody } from './endpoint/addressVerifications';
|
|
3
4
|
export { AttachmentCreateBodyRequest, AttachmentCreateBodyShipment, AttachmentCreateBody, } from './endpoint/attachment';
|
|
4
5
|
export { EmailRuleCreateBody } from './endpoint/emailRules';
|
|
5
6
|
export { EmailSubscriptionCreateBody } from './endpoint/emailSubscriptions';
|
|
@@ -9,4 +10,6 @@ export * from './MetadataTypes';
|
|
|
9
10
|
export { UploadCreateBody } from './endpoint/uploads';
|
|
10
11
|
export { ExtendedWebhook as Webhook, WebhookCreate } from './endpoint/webhooks';
|
|
11
12
|
export { QuoteRequestCreateBody, UpdateRequestsContactsBody, CustomQuotePayload, } from './endpoint/requests';
|
|
13
|
+
export { SelfShipCollectionAvailabilityCheckCreateBody } from './endpoint/selfShipCollectionAvailabilityChecks';
|
|
14
|
+
export { SelfShipCollectionCreateBody } from './endpoint/selfShipCollections';
|
|
12
15
|
export { ShipmentCreateBody } from './endpoint/shipments';
|
package/dist/lib/types.d.ts
CHANGED
|
@@ -1100,3 +1100,85 @@ export type ArtaInboundObject = {
|
|
|
1100
1100
|
value_currency?: (("CAD" | "CHF" | "EUR" | "GBP" | "HKD" | "USD") | null) | undefined;
|
|
1101
1101
|
}[] | null) | undefined;
|
|
1102
1102
|
};
|
|
1103
|
+
export type AddressVerification = {
|
|
1104
|
+
updated_at: Date;
|
|
1105
|
+
created_at: Date;
|
|
1106
|
+
id: string;
|
|
1107
|
+
shortcode: string;
|
|
1108
|
+
status: "success" | "partial" | "failed";
|
|
1109
|
+
match_level: "delivery_point" | "premise" | "thoroughfare" | "locality" | "administrative_area" | "none";
|
|
1110
|
+
reference: string | null;
|
|
1111
|
+
input: {
|
|
1112
|
+
address_line_1: string;
|
|
1113
|
+
address_line_2: string | null;
|
|
1114
|
+
address_line_3: string | null;
|
|
1115
|
+
city: string | null;
|
|
1116
|
+
region: string | null;
|
|
1117
|
+
postal_code: string | null;
|
|
1118
|
+
country: string;
|
|
1119
|
+
};
|
|
1120
|
+
recommendation: {
|
|
1121
|
+
address_line_1: string | null;
|
|
1122
|
+
address_line_2: string | null;
|
|
1123
|
+
address_line_3: string | null;
|
|
1124
|
+
city: string | null;
|
|
1125
|
+
region: string | null;
|
|
1126
|
+
postal_code: string | null;
|
|
1127
|
+
country: string | null;
|
|
1128
|
+
latitude: number | null;
|
|
1129
|
+
longitude: number | null;
|
|
1130
|
+
is_residential: boolean | null;
|
|
1131
|
+
};
|
|
1132
|
+
};
|
|
1133
|
+
export type SelfShipCollection = {
|
|
1134
|
+
updated_at: Date;
|
|
1135
|
+
created_at: Date;
|
|
1136
|
+
id: string;
|
|
1137
|
+
status: "scheduled" | "closed" | "cancelled" | "incomplete";
|
|
1138
|
+
shortcode: string;
|
|
1139
|
+
closed_at: string | null;
|
|
1140
|
+
collection_date: string;
|
|
1141
|
+
collection_time: string;
|
|
1142
|
+
location: {
|
|
1143
|
+
address_line_1: string;
|
|
1144
|
+
address_line_2: string | null;
|
|
1145
|
+
city: string;
|
|
1146
|
+
region: string;
|
|
1147
|
+
postal_code: string;
|
|
1148
|
+
country: string;
|
|
1149
|
+
close_time: string;
|
|
1150
|
+
package_location: "front" | "none" | "rear" | "side";
|
|
1151
|
+
contact: {
|
|
1152
|
+
name: string;
|
|
1153
|
+
phone_number: string;
|
|
1154
|
+
email_address: string;
|
|
1155
|
+
};
|
|
1156
|
+
};
|
|
1157
|
+
service: {
|
|
1158
|
+
carrier: "fedex";
|
|
1159
|
+
code: "express" | "ground";
|
|
1160
|
+
route: "domestic" | "international";
|
|
1161
|
+
};
|
|
1162
|
+
};
|
|
1163
|
+
export type SelfShipCollectionAvailabilityCheck = {
|
|
1164
|
+
location: {
|
|
1165
|
+
address_line_1: string;
|
|
1166
|
+
address_line_2: string | null;
|
|
1167
|
+
city: string;
|
|
1168
|
+
region: string;
|
|
1169
|
+
postal_code: string;
|
|
1170
|
+
country: string;
|
|
1171
|
+
close_time: string;
|
|
1172
|
+
};
|
|
1173
|
+
service: {
|
|
1174
|
+
carrier: "fedex";
|
|
1175
|
+
code: "express" | "ground";
|
|
1176
|
+
route: "domestic" | "international";
|
|
1177
|
+
};
|
|
1178
|
+
collection_date: string;
|
|
1179
|
+
availabilities: {
|
|
1180
|
+
collection_date: string;
|
|
1181
|
+
collection_times: string[];
|
|
1182
|
+
residential_available: boolean;
|
|
1183
|
+
}[];
|
|
1184
|
+
};
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artaio/node-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "The Arta Node library provides a seamless integration to Arta API for backend applications using both Typescript or Javascript.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "npm run build:types && tsc -p tsconfig-build.json",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artaio/node-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "The Arta Node library provides a seamless integration to Arta API for backend applications using both Typescript or Javascript.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "npm run build:types && tsc -p tsconfig-build.json",
|