@nodrel-dev/n8n-nodes-fedex 0.2.2 → 0.2.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/README.md +5 -3
- package/dist/credentials/FedexShippingOAuth2Api.credentials.js +11 -2
- package/dist/credentials/FedexShippingOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/FedexTrackOAuth2Api.credentials.js +4 -1
- package/dist/credentials/FedexTrackOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/fedexOAuth2Shared.d.ts +1 -0
- package/dist/credentials/fedexOAuth2Shared.js +11 -1
- package/dist/credentials/fedexOAuth2Shared.js.map +1 -1
- package/dist/nodes/Fedex/fields.d.ts +3 -5
- package/dist/nodes/Fedex/fields.js +117 -85
- package/dist/nodes/Fedex/fields.js.map +1 -1
- package/dist/nodes/Fedex/resources/shared.d.ts +4 -3
- package/dist/nodes/Fedex/resources/shared.js +23 -10
- package/dist/nodes/Fedex/resources/shared.js.map +1 -1
- package/dist/nodes/Fedex/resources/shipping/create.js +15 -19
- package/dist/nodes/Fedex/resources/shipping/create.js.map +1 -1
- package/dist/nodes/Fedex/resources/shipping/getRates.js +11 -6
- package/dist/nodes/Fedex/resources/shipping/getRates.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -77,8 +77,8 @@ flowchart TD
|
|
|
77
77
|
### Shipment
|
|
78
78
|
|
|
79
79
|
- **Track** — Get the status and scan history for one or more tracking numbers (`POST /track/v1/trackingnumbers`). Toggle **Track Multiple Numbers** to pass a comma-separated list, and **Include Detailed Scans** for the full scan event history.
|
|
80
|
-
- **Get Rates** — Quote negotiated and list rates for available services (`POST /rate/v1/rates/quotes`). Leave **Service Type** as _All Available Services_ to compare every eligible service, or pin a single one. Requires a **Shipping Account Number**.
|
|
81
|
-
- **Create** — Buy a shipment and get a printable label plus tracking number (`POST /ship/v1/shipments`). The label is returned as **n8n binary data** (see [Usage](#usage)). Requires a **Shipping Account Number**.
|
|
80
|
+
- **Get Rates** — Quote negotiated and list rates for available services (`POST /rate/v1/rates/quotes`). Leave **Service Type** as _All Available Services_ to compare every eligible service, or pin a single one. Requires a **Shipping Account Number**. The panel shows a short required core (addresses, weight); optional inputs live under **Additional Fields**.
|
|
81
|
+
- **Create** — Buy a shipment and get a printable label plus tracking number (`POST /ship/v1/shipments`). The label is returned as **n8n binary data** (see [Usage](#usage)). Requires a **Shipping Account Number**. **Service Type** defaults to **FedEx Ground**; optional inputs (company, email, packaging, label stock, dimensions, …) live under **Additional Fields**.
|
|
82
82
|
|
|
83
83
|
### Address
|
|
84
84
|
|
|
@@ -135,7 +135,9 @@ Every release is published to npm with a signed **[provenance](https://docs.npmj
|
|
|
135
135
|
|
|
136
136
|
### Get Rates and Create
|
|
137
137
|
|
|
138
|
-
Both operations share the same **Shipper** and **Recipient** address/contact fields, so values carry over when you switch between them.
|
|
138
|
+
Both operations share the same **Shipper** and **Recipient** address/contact fields, so values carry over when you switch between them.
|
|
139
|
+
|
|
140
|
+
Only the fields a shipment genuinely needs sit flat at the top of the panel — addresses, contact name and phone, weight, and (for Create) service and label format. Everything optional is grouped under a single **Additional Fields** collection: company name, email, the **Recipient Is Residential** flag, **Pickup Type**, **Packaging Type**, **Label Stock Type**, and parcel dimensions. Add only what you need; anything you leave out falls back to the same FedEx default it always used. Package dimensions (length/width/height) are still only sent to FedEx when all three are greater than zero.
|
|
139
141
|
|
|
140
142
|
### The label binary (Create)
|
|
141
143
|
|
|
@@ -9,7 +9,10 @@ class FedexShippingOAuth2Api {
|
|
|
9
9
|
this.displayName = 'FedEx Shipping OAuth2 API';
|
|
10
10
|
this.documentationUrl = 'https://github.com/nodrel-dev/n8n-fedex-node#credentials';
|
|
11
11
|
this.icon = { light: 'file:fedex.svg', dark: 'file:fedex.dark.svg' };
|
|
12
|
-
this.properties =
|
|
12
|
+
this.properties = [
|
|
13
|
+
(0, fedexOAuth2Shared_1.fedexCredentialNotice)('Rate / Ship / Address Validation', 'FedEx Track OAuth2 API'),
|
|
14
|
+
...fedexOAuth2Shared_1.FEDEX_OAUTH2_PROPERTIES,
|
|
15
|
+
];
|
|
13
16
|
this.test = {
|
|
14
17
|
request: {
|
|
15
18
|
baseURL: fedexOAuth2Shared_1.FEDEX_TEST_BASE_URL,
|
|
@@ -18,7 +21,13 @@ class FedexShippingOAuth2Api {
|
|
|
18
21
|
headers: { 'Content-Type': 'application/json', 'X-locale': 'en_US' },
|
|
19
22
|
body: {
|
|
20
23
|
addressesToValidate: [
|
|
21
|
-
{
|
|
24
|
+
{
|
|
25
|
+
address: {
|
|
26
|
+
streetLines: ['7372 PARKRIDGE BLVD'],
|
|
27
|
+
postalCode: '75063',
|
|
28
|
+
countryCode: 'US',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
22
31
|
],
|
|
23
32
|
},
|
|
24
33
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FedexShippingOAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/FedexShippingOAuth2Api.credentials.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"FedexShippingOAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/FedexShippingOAuth2Api.credentials.ts"],"names":[],"mappings":";;;AACA,2DAI6B;AAQ7B,MAAa,sBAAsB;IAAnC;QACC,SAAI,GAAG,wBAAwB,CAAC;QAEhC,YAAO,GAAG,CAAC,WAAW,CAAC,CAAC;QAExB,gBAAW,GAAG,2BAA2B,CAAC;QAE1C,qBAAgB,GAAG,0DAA0D,CAAC;QAE9E,SAAI,GAAS,EAAE,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;QAEtE,eAAU,GAAsB;YAC/B,IAAA,yCAAqB,EAAC,kCAAkC,EAAE,wBAAwB,CAAC;YACnF,GAAG,2CAAuB;SAC1B,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,uCAAmB;gBAC5B,GAAG,EAAE,+BAA+B;gBACpC,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE,UAAU,EAAE,OAAO,EAAE;gBACpE,IAAI,EAAE;oBACL,mBAAmB,EAAE;wBACpB;4BACC,OAAO,EAAE;gCACR,WAAW,EAAE,CAAC,qBAAqB,CAAC;gCACpC,UAAU,EAAE,OAAO;gCACnB,WAAW,EAAE,IAAI;6BACjB;yBACD;qBACD;iBACD;aACD;SACD,CAAC;IACH,CAAC;CAAA;AAnCD,wDAmCC"}
|
|
@@ -9,7 +9,10 @@ class FedexTrackOAuth2Api {
|
|
|
9
9
|
this.displayName = 'FedEx Track OAuth2 API';
|
|
10
10
|
this.documentationUrl = 'https://github.com/nodrel-dev/n8n-fedex-node#credentials';
|
|
11
11
|
this.icon = { light: 'file:fedex.svg', dark: 'file:fedex.dark.svg' };
|
|
12
|
-
this.properties =
|
|
12
|
+
this.properties = [
|
|
13
|
+
(0, fedexOAuth2Shared_1.fedexCredentialNotice)('the Track API', 'FedEx Shipping OAuth2 API'),
|
|
14
|
+
...fedexOAuth2Shared_1.FEDEX_OAUTH2_PROPERTIES,
|
|
15
|
+
];
|
|
13
16
|
this.test = {
|
|
14
17
|
request: {
|
|
15
18
|
baseURL: fedexOAuth2Shared_1.FEDEX_TEST_BASE_URL,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FedexTrackOAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/FedexTrackOAuth2Api.credentials.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"FedexTrackOAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/FedexTrackOAuth2Api.credentials.ts"],"names":[],"mappings":";;;AACA,2DAI6B;AAO7B,MAAa,mBAAmB;IAAhC;QACC,SAAI,GAAG,qBAAqB,CAAC;QAE7B,YAAO,GAAG,CAAC,WAAW,CAAC,CAAC;QAExB,gBAAW,GAAG,wBAAwB,CAAC;QAEvC,qBAAgB,GAAG,0DAA0D,CAAC;QAE9E,SAAI,GAAS,EAAE,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;QAEtE,eAAU,GAAsB;YAC/B,IAAA,yCAAqB,EAAC,eAAe,EAAE,2BAA2B,CAAC;YACnE,GAAG,2CAAuB;SAC1B,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,uCAAmB;gBAC5B,GAAG,EAAE,2BAA2B;gBAChC,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE,UAAU,EAAE,OAAO,EAAE;gBACpE,IAAI,EAAE;oBACL,oBAAoB,EAAE,KAAK;oBAC3B,YAAY,EAAE,CAAC,EAAE,kBAAkB,EAAE,EAAE,cAAc,EAAE,cAAc,EAAE,EAAE,CAAC;iBAC1E;aACD;SACD,CAAC;IACH,CAAC;CAAA;AA5BD,kDA4BC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { INodeProperties } from 'n8n-workflow';
|
|
2
2
|
export declare const FEDEX_OAUTH2_PROPERTIES: INodeProperties[];
|
|
3
3
|
export declare const FEDEX_TEST_BASE_URL = "={{ $credentials.environment === \"production\" ? \"https://apis.fedex.com\" : \"https://apis-sandbox.fedex.com\" }}";
|
|
4
|
+
export declare function fedexCredentialNotice(project: string, otherCredential: string): INodeProperties;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FEDEX_TEST_BASE_URL = exports.FEDEX_OAUTH2_PROPERTIES = void 0;
|
|
4
|
+
exports.fedexCredentialNotice = fedexCredentialNotice;
|
|
4
5
|
exports.FEDEX_OAUTH2_PROPERTIES = [
|
|
5
6
|
{
|
|
6
7
|
displayName: 'Environment',
|
|
@@ -11,7 +12,7 @@ exports.FEDEX_OAUTH2_PROPERTIES = [
|
|
|
11
12
|
{ name: 'Production (Live)', value: 'production' },
|
|
12
13
|
],
|
|
13
14
|
default: 'sandbox',
|
|
14
|
-
description: '
|
|
15
|
+
description: 'Defaults to Sandbox for safe testing. Switch to Production to bill your live FedEx account.',
|
|
15
16
|
},
|
|
16
17
|
{
|
|
17
18
|
displayName: 'Grant Type',
|
|
@@ -45,4 +46,13 @@ exports.FEDEX_OAUTH2_PROPERTIES = [
|
|
|
45
46
|
},
|
|
46
47
|
];
|
|
47
48
|
exports.FEDEX_TEST_BASE_URL = '={{ $credentials.environment === "production" ? "https://apis.fedex.com" : "https://apis-sandbox.fedex.com" }}';
|
|
49
|
+
function fedexCredentialNotice(project, otherCredential) {
|
|
50
|
+
return {
|
|
51
|
+
displayName: `Enter your FedEx <b>API Key</b> as Client ID and <b>Secret Key</b> as Client Secret (those are the FedEx portal's names for the same values). ` +
|
|
52
|
+
`Use the keys from the FedEx project that has <b>${project}</b> — the ${otherCredential} credential needs its own separate keys.`,
|
|
53
|
+
name: 'fedexKeyMappingNotice',
|
|
54
|
+
type: 'notice',
|
|
55
|
+
default: '',
|
|
56
|
+
};
|
|
57
|
+
}
|
|
48
58
|
//# sourceMappingURL=fedexOAuth2Shared.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fedexOAuth2Shared.js","sourceRoot":"","sources":["../../credentials/fedexOAuth2Shared.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"fedexOAuth2Shared.js","sourceRoot":"","sources":["../../credentials/fedexOAuth2Shared.ts"],"names":[],"mappings":";;;AA+EA,sDASC;AA3EY,QAAA,uBAAuB,GAAsB;IACzD;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACR,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,SAAS,EAAE;YAC5C,EAAE,IAAI,EAAE,mBAAmB,EAAE,KAAK,EAAE,YAAY,EAAE;SAClD;QACD,OAAO,EAAE,SAAS;QAClB,WAAW,EACV,6FAA6F;KAC9F;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,mBAAmB;KAC5B;IACD;QACC,WAAW,EAAE,kBAAkB;QAC/B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,OAAO,EACN,oIAAoI;KACrI;IACD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QAId,OAAO,EAAE,EAAE;KACX;IACD;QACC,WAAW,EAAE,2BAA2B;QACxC,IAAI,EAAE,qBAAqB;QAC3B,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;KACX;IACD;QACC,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,MAAM;KACf;CACD,CAAC;AAOW,QAAA,mBAAmB,GAC/B,gHAAgH,CAAC;AAWlH,SAAgB,qBAAqB,CAAC,OAAe,EAAE,eAAuB;IAC7E,OAAO;QACN,WAAW,EACV,gJAAgJ;YAChJ,mDAAmD,OAAO,cAAc,eAAe,0CAA0C;QAClI,IAAI,EAAE,uBAAuB;QAC7B,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;KACX,CAAC;AACH,CAAC"}
|
|
@@ -5,12 +5,10 @@ type Show = {
|
|
|
5
5
|
};
|
|
6
6
|
type Role = 'shipper' | 'recipient';
|
|
7
7
|
export declare function accountNumberField(show: Show): INodeProperties;
|
|
8
|
-
export declare function addressFields(role: Role, show: Show
|
|
9
|
-
residential?: boolean;
|
|
10
|
-
}): INodeProperties[];
|
|
8
|
+
export declare function addressFields(role: Role, show: Show): INodeProperties[];
|
|
11
9
|
export declare function contactFields(role: Role, show: Show): INodeProperties[];
|
|
12
|
-
export declare function pickupTypeField(show: Show): INodeProperties;
|
|
13
10
|
export declare function serviceTypeField(show: Show, required: boolean): INodeProperties;
|
|
14
|
-
export declare function packagingTypeField(show: Show): INodeProperties;
|
|
15
11
|
export declare function packageFields(show: Show): INodeProperties[];
|
|
12
|
+
export declare function getRatesAdditionalFields(show: Show): INodeProperties;
|
|
13
|
+
export declare function createAdditionalFields(show: Show, labelStockOptions: INodeProperties['options']): INodeProperties;
|
|
16
14
|
export {};
|
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.accountNumberField = accountNumberField;
|
|
4
4
|
exports.addressFields = addressFields;
|
|
5
5
|
exports.contactFields = contactFields;
|
|
6
|
-
exports.pickupTypeField = pickupTypeField;
|
|
7
6
|
exports.serviceTypeField = serviceTypeField;
|
|
8
|
-
exports.packagingTypeField = packagingTypeField;
|
|
9
7
|
exports.packageFields = packageFields;
|
|
8
|
+
exports.getRatesAdditionalFields = getRatesAdditionalFields;
|
|
9
|
+
exports.createAdditionalFields = createAdditionalFields;
|
|
10
10
|
const constants_1 = require("./constants");
|
|
11
11
|
const label = (role) => (role === 'shipper' ? 'Shipper' : 'Recipient');
|
|
12
12
|
const cap = (role) => label(role);
|
|
@@ -21,8 +21,8 @@ function accountNumberField(show) {
|
|
|
21
21
|
description: 'Your FedEx account number — determines whose negotiated rates apply and who is billed',
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
function addressFields(role, show
|
|
25
|
-
|
|
24
|
+
function addressFields(role, show) {
|
|
25
|
+
return [
|
|
26
26
|
{
|
|
27
27
|
displayName: `${cap(role)} Street Lines`,
|
|
28
28
|
name: `${role}StreetLines`,
|
|
@@ -63,17 +63,6 @@ function addressFields(role, show, opts = {}) {
|
|
|
63
63
|
displayOptions: { show },
|
|
64
64
|
},
|
|
65
65
|
];
|
|
66
|
-
if (opts.residential) {
|
|
67
|
-
fields.push({
|
|
68
|
-
displayName: 'Recipient Is Residential',
|
|
69
|
-
name: `${role}Residential`,
|
|
70
|
-
type: 'boolean',
|
|
71
|
-
default: false,
|
|
72
|
-
displayOptions: { show },
|
|
73
|
-
description: 'Whether the recipient address is residential (affects service availability and rating)',
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
return fields;
|
|
77
66
|
}
|
|
78
67
|
function contactFields(role, show) {
|
|
79
68
|
return [
|
|
@@ -84,13 +73,6 @@ function contactFields(role, show) {
|
|
|
84
73
|
default: '',
|
|
85
74
|
displayOptions: { show },
|
|
86
75
|
},
|
|
87
|
-
{
|
|
88
|
-
displayName: `${cap(role)} Company Name`,
|
|
89
|
-
name: `${role}CompanyName`,
|
|
90
|
-
type: 'string',
|
|
91
|
-
default: '',
|
|
92
|
-
displayOptions: { show },
|
|
93
|
-
},
|
|
94
76
|
{
|
|
95
77
|
displayName: `${cap(role)} Phone Number`,
|
|
96
78
|
name: `${role}PhoneNumber`,
|
|
@@ -98,50 +80,31 @@ function contactFields(role, show) {
|
|
|
98
80
|
default: '',
|
|
99
81
|
required: true,
|
|
100
82
|
displayOptions: { show },
|
|
101
|
-
|
|
102
|
-
{
|
|
103
|
-
displayName: `${cap(role)} Email`,
|
|
104
|
-
name: `${role}EmailAddress`,
|
|
105
|
-
type: 'string',
|
|
106
|
-
default: '',
|
|
107
|
-
displayOptions: { show },
|
|
83
|
+
description: 'FedEx requires a phone number for the shipment contact',
|
|
108
84
|
},
|
|
109
85
|
];
|
|
110
86
|
}
|
|
111
|
-
function pickupTypeField(show) {
|
|
112
|
-
return {
|
|
113
|
-
displayName: 'Pickup Type',
|
|
114
|
-
name: 'pickupType',
|
|
115
|
-
type: 'options',
|
|
116
|
-
options: constants_1.PICKUP_TYPE_OPTIONS,
|
|
117
|
-
default: 'USE_SCHEDULED_PICKUP',
|
|
118
|
-
displayOptions: { show },
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
87
|
function serviceTypeField(show, required) {
|
|
88
|
+
if (required) {
|
|
89
|
+
return {
|
|
90
|
+
displayName: 'Service Type',
|
|
91
|
+
name: 'serviceType',
|
|
92
|
+
type: 'options',
|
|
93
|
+
options: constants_1.SERVICE_TYPE_OPTIONS,
|
|
94
|
+
default: 'FEDEX_GROUND',
|
|
95
|
+
required: true,
|
|
96
|
+
displayOptions: { show },
|
|
97
|
+
description: 'FedEx service to ship with',
|
|
98
|
+
};
|
|
99
|
+
}
|
|
122
100
|
return {
|
|
123
101
|
displayName: 'Service Type',
|
|
124
102
|
name: 'serviceType',
|
|
125
103
|
type: 'options',
|
|
126
|
-
options:
|
|
127
|
-
? constants_1.SERVICE_TYPE_OPTIONS
|
|
128
|
-
: [{ name: 'All Available Services', value: '' }, ...constants_1.SERVICE_TYPE_OPTIONS],
|
|
104
|
+
options: [{ name: 'All Available Services', value: '' }, ...constants_1.SERVICE_TYPE_OPTIONS],
|
|
129
105
|
default: '',
|
|
130
|
-
required,
|
|
131
|
-
displayOptions: { show },
|
|
132
|
-
description: required
|
|
133
|
-
? 'FedEx service to ship with'
|
|
134
|
-
: 'Restrict the quote to one service, or leave as all',
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
function packagingTypeField(show) {
|
|
138
|
-
return {
|
|
139
|
-
displayName: 'Packaging Type',
|
|
140
|
-
name: 'packagingType',
|
|
141
|
-
type: 'options',
|
|
142
|
-
options: constants_1.PACKAGING_TYPE_OPTIONS,
|
|
143
|
-
default: 'YOUR_PACKAGING',
|
|
144
106
|
displayOptions: { show },
|
|
107
|
+
description: 'Restrict the quote to one service, or leave as all',
|
|
145
108
|
};
|
|
146
109
|
}
|
|
147
110
|
function packageFields(show) {
|
|
@@ -154,6 +117,7 @@ function packageFields(show) {
|
|
|
154
117
|
required: true,
|
|
155
118
|
typeOptions: { minValue: 0 },
|
|
156
119
|
displayOptions: { show },
|
|
120
|
+
description: 'Weight of the package, in the selected weight unit',
|
|
157
121
|
},
|
|
158
122
|
{
|
|
159
123
|
displayName: 'Weight Unit',
|
|
@@ -163,39 +127,107 @@ function packageFields(show) {
|
|
|
163
127
|
default: 'LB',
|
|
164
128
|
displayOptions: { show },
|
|
165
129
|
},
|
|
130
|
+
];
|
|
131
|
+
}
|
|
132
|
+
const dimensionEntries = [
|
|
133
|
+
{
|
|
134
|
+
displayName: 'Dimension Unit',
|
|
135
|
+
name: 'dimensionUnit',
|
|
136
|
+
type: 'options',
|
|
137
|
+
options: constants_1.DIMENSION_UNIT_OPTIONS,
|
|
138
|
+
default: 'IN',
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
displayName: 'Height',
|
|
142
|
+
name: 'packageHeight',
|
|
143
|
+
type: 'number',
|
|
144
|
+
default: 0,
|
|
145
|
+
typeOptions: { minValue: 0 },
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
displayName: 'Length',
|
|
149
|
+
name: 'packageLength',
|
|
150
|
+
type: 'number',
|
|
151
|
+
default: 0,
|
|
152
|
+
typeOptions: { minValue: 0 },
|
|
153
|
+
description: 'Dimensions are sent only when length, width, and height are all greater than zero',
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
displayName: 'Width',
|
|
157
|
+
name: 'packageWidth',
|
|
158
|
+
type: 'number',
|
|
159
|
+
default: 0,
|
|
160
|
+
typeOptions: { minValue: 0 },
|
|
161
|
+
},
|
|
162
|
+
];
|
|
163
|
+
function contactExtraEntries(role) {
|
|
164
|
+
return [
|
|
166
165
|
{
|
|
167
|
-
displayName:
|
|
168
|
-
name:
|
|
169
|
-
type: '
|
|
170
|
-
default:
|
|
171
|
-
typeOptions: { minValue: 0 },
|
|
172
|
-
displayOptions: { show },
|
|
173
|
-
description: 'Optional. Dimensions are sent only when length, width, and height are all greater than zero.',
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
displayName: 'Width',
|
|
177
|
-
name: 'packageWidth',
|
|
178
|
-
type: 'number',
|
|
179
|
-
default: 0,
|
|
180
|
-
typeOptions: { minValue: 0 },
|
|
181
|
-
displayOptions: { show },
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
displayName: 'Height',
|
|
185
|
-
name: 'packageHeight',
|
|
186
|
-
type: 'number',
|
|
187
|
-
default: 0,
|
|
188
|
-
typeOptions: { minValue: 0 },
|
|
189
|
-
displayOptions: { show },
|
|
166
|
+
displayName: `${cap(role)} Company Name`,
|
|
167
|
+
name: `${role}CompanyName`,
|
|
168
|
+
type: 'string',
|
|
169
|
+
default: '',
|
|
190
170
|
},
|
|
191
171
|
{
|
|
192
|
-
displayName:
|
|
193
|
-
name:
|
|
194
|
-
type: '
|
|
195
|
-
|
|
196
|
-
default: 'IN',
|
|
197
|
-
displayOptions: { show },
|
|
172
|
+
displayName: `${cap(role)} Email`,
|
|
173
|
+
name: `${role}EmailAddress`,
|
|
174
|
+
type: 'string',
|
|
175
|
+
default: '',
|
|
198
176
|
},
|
|
199
177
|
];
|
|
200
178
|
}
|
|
179
|
+
const residentialEntry = {
|
|
180
|
+
displayName: 'Recipient Is Residential',
|
|
181
|
+
name: 'recipientResidential',
|
|
182
|
+
type: 'boolean',
|
|
183
|
+
default: false,
|
|
184
|
+
description: 'Whether the recipient address is residential (affects service availability and rating)',
|
|
185
|
+
};
|
|
186
|
+
const pickupTypeEntry = {
|
|
187
|
+
displayName: 'Pickup Type',
|
|
188
|
+
name: 'pickupType',
|
|
189
|
+
type: 'options',
|
|
190
|
+
options: constants_1.PICKUP_TYPE_OPTIONS,
|
|
191
|
+
default: 'USE_SCHEDULED_PICKUP',
|
|
192
|
+
};
|
|
193
|
+
const packagingTypeEntry = {
|
|
194
|
+
displayName: 'Packaging Type',
|
|
195
|
+
name: 'packagingType',
|
|
196
|
+
type: 'options',
|
|
197
|
+
options: constants_1.PACKAGING_TYPE_OPTIONS,
|
|
198
|
+
default: 'YOUR_PACKAGING',
|
|
199
|
+
};
|
|
200
|
+
const labelStockEntry = {
|
|
201
|
+
displayName: 'Label Stock Type',
|
|
202
|
+
name: 'labelStockType',
|
|
203
|
+
type: 'options',
|
|
204
|
+
options: [],
|
|
205
|
+
default: 'PAPER_4X6',
|
|
206
|
+
};
|
|
207
|
+
function additionalFields(show, options) {
|
|
208
|
+
return {
|
|
209
|
+
displayName: 'Additional Fields',
|
|
210
|
+
name: 'additionalFields',
|
|
211
|
+
type: 'collection',
|
|
212
|
+
placeholder: 'Add Field',
|
|
213
|
+
default: {},
|
|
214
|
+
displayOptions: { show },
|
|
215
|
+
options,
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
function getRatesAdditionalFields(show) {
|
|
219
|
+
return additionalFields(show, [...dimensionEntries, pickupTypeEntry, residentialEntry]);
|
|
220
|
+
}
|
|
221
|
+
function createAdditionalFields(show, labelStockOptions) {
|
|
222
|
+
const entries = [
|
|
223
|
+
...dimensionEntries,
|
|
224
|
+
{ ...labelStockEntry, options: labelStockOptions },
|
|
225
|
+
packagingTypeEntry,
|
|
226
|
+
pickupTypeEntry,
|
|
227
|
+
...contactExtraEntries('recipient'),
|
|
228
|
+
residentialEntry,
|
|
229
|
+
...contactExtraEntries('shipper'),
|
|
230
|
+
];
|
|
231
|
+
return additionalFields(show, entries);
|
|
232
|
+
}
|
|
201
233
|
//# sourceMappingURL=fields.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../nodes/Fedex/fields.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../nodes/Fedex/fields.ts"],"names":[],"mappings":";;AA0BA,gDAWC;AAGD,sCA2CC;AAGD,sCAmBC;AAED,4CAyBC;AAGD,sCAqBC;AA0GD,4DAEC;AAOD,wDAcC;AA5RD,2CAMqB;AAgBrB,MAAM,KAAK,GAAG,CAAC,IAAU,EAAU,EAAE,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;AACrF,MAAM,GAAG,GAAG,CAAC,IAAU,EAAU,EAAE,CAAC,KAAK,CAAC,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H,CAAC;AAGD,SAAgB,wBAAwB,CAAC,IAAU;IAClD,OAAO,gBAAgB,CAAC,IAAI,EAAE,CAAC,GAAG,gBAAgB,EAAE,eAAe,EAAE,gBAAgB,CAAC,CAAC,CAAC;AACzF,CAAC;AAOD,SAAgB,sBAAsB,CACrC,IAAU,EACV,iBAA6C;IAE7C,MAAM,OAAO,GAAsB;QAClC,GAAG,gBAAgB;QACnB,EAAE,GAAG,eAAe,EAAE,OAAO,EAAE,iBAAiB,EAAE;QAClD,kBAAkB;QAClB,eAAe;QACf,GAAG,mBAAmB,CAAC,WAAW,CAAC;QACnC,gBAAgB;QAChB,GAAG,mBAAmB,CAAC,SAAS,CAAC;KACjC,CAAC;IACF,OAAO,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACxC,CAAC"}
|
|
@@ -4,9 +4,10 @@ import type { ContactInput } from '../cores/toFedexContact';
|
|
|
4
4
|
export declare function readString(ctx: IExecuteSingleFunctions, name: string, fallback?: string): string;
|
|
5
5
|
export declare function readNumber(ctx: IExecuteSingleFunctions, name: string, fallback?: number): number;
|
|
6
6
|
export declare function readBoolean(ctx: IExecuteSingleFunctions, name: string, fallback?: boolean): boolean;
|
|
7
|
-
export declare function
|
|
7
|
+
export declare function readAdditional(ctx: IExecuteSingleFunctions): IDataObject;
|
|
8
|
+
export declare function readAddressInput(ctx: IExecuteSingleFunctions, role: 'shipper' | 'recipient', extra: IDataObject, opts?: {
|
|
8
9
|
residential?: boolean;
|
|
9
10
|
}): AddressInput;
|
|
10
|
-
export declare function readContactInput(ctx: IExecuteSingleFunctions, role: 'shipper' | 'recipient'): ContactInput;
|
|
11
|
-
export declare function readPackageLineItem(ctx: IExecuteSingleFunctions): IDataObject;
|
|
11
|
+
export declare function readContactInput(ctx: IExecuteSingleFunctions, role: 'shipper' | 'recipient', extra: IDataObject): ContactInput;
|
|
12
|
+
export declare function readPackageLineItem(ctx: IExecuteSingleFunctions, extra: IDataObject): IDataObject;
|
|
12
13
|
export declare function requireAccountNumber(ctx: IExecuteSingleFunctions): string;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.readString = readString;
|
|
4
4
|
exports.readNumber = readNumber;
|
|
5
5
|
exports.readBoolean = readBoolean;
|
|
6
|
+
exports.readAdditional = readAdditional;
|
|
6
7
|
exports.readAddressInput = readAddressInput;
|
|
7
8
|
exports.readContactInput = readContactInput;
|
|
8
9
|
exports.readPackageLineItem = readPackageLineItem;
|
|
@@ -19,38 +20,50 @@ function readNumber(ctx, name, fallback = 0) {
|
|
|
19
20
|
function readBoolean(ctx, name, fallback = false) {
|
|
20
21
|
return Boolean(ctx.getNodeParameter(name, fallback));
|
|
21
22
|
}
|
|
22
|
-
function
|
|
23
|
+
function readAdditional(ctx) {
|
|
24
|
+
var _a;
|
|
25
|
+
return (_a = ctx.getNodeParameter('additionalFields', {})) !== null && _a !== void 0 ? _a : {};
|
|
26
|
+
}
|
|
27
|
+
function pickString(extra, key, fallback = '') {
|
|
28
|
+
const value = extra[key];
|
|
29
|
+
return value === undefined || value === null ? fallback : String(value).trim();
|
|
30
|
+
}
|
|
31
|
+
function pickNumber(extra, key, fallback = 0) {
|
|
32
|
+
const value = extra[key];
|
|
33
|
+
return value === undefined || value === null ? fallback : Number(value);
|
|
34
|
+
}
|
|
35
|
+
function readAddressInput(ctx, role, extra, opts = {}) {
|
|
23
36
|
return {
|
|
24
37
|
streetLines: readString(ctx, `${role}StreetLines`),
|
|
25
38
|
city: readString(ctx, `${role}City`),
|
|
26
39
|
stateOrProvinceCode: readString(ctx, `${role}StateOrProvinceCode`),
|
|
27
40
|
postalCode: readString(ctx, `${role}PostalCode`),
|
|
28
41
|
countryCode: readString(ctx, `${role}CountryCode`, 'US'),
|
|
29
|
-
...(opts.residential ? { residential:
|
|
42
|
+
...(opts.residential ? { residential: Boolean(extra[`${role}Residential`]) } : {}),
|
|
30
43
|
};
|
|
31
44
|
}
|
|
32
|
-
function readContactInput(ctx, role) {
|
|
45
|
+
function readContactInput(ctx, role, extra) {
|
|
33
46
|
return {
|
|
34
47
|
personName: readString(ctx, `${role}PersonName`),
|
|
35
|
-
companyName:
|
|
48
|
+
companyName: pickString(extra, `${role}CompanyName`),
|
|
36
49
|
phoneNumber: readString(ctx, `${role}PhoneNumber`),
|
|
37
|
-
emailAddress:
|
|
50
|
+
emailAddress: pickString(extra, `${role}EmailAddress`),
|
|
38
51
|
};
|
|
39
52
|
}
|
|
40
|
-
function readPackageLineItem(ctx) {
|
|
53
|
+
function readPackageLineItem(ctx, extra) {
|
|
41
54
|
const weight = {
|
|
42
55
|
units: readString(ctx, 'weightUnit', 'LB') === 'KG' ? 'KG' : 'LB',
|
|
43
56
|
value: readNumber(ctx, 'packageWeight'),
|
|
44
57
|
};
|
|
45
|
-
const length =
|
|
46
|
-
const width =
|
|
47
|
-
const height =
|
|
58
|
+
const length = pickNumber(extra, 'packageLength');
|
|
59
|
+
const width = pickNumber(extra, 'packageWidth');
|
|
60
|
+
const height = pickNumber(extra, 'packageHeight');
|
|
48
61
|
const hasDimensions = length > 0 && width > 0 && height > 0;
|
|
49
62
|
const dimensions = {
|
|
50
63
|
length,
|
|
51
64
|
width,
|
|
52
65
|
height,
|
|
53
|
-
units:
|
|
66
|
+
units: pickString(extra, 'dimensionUnit', 'IN') === 'CM' ? 'CM' : 'IN',
|
|
54
67
|
};
|
|
55
68
|
return {
|
|
56
69
|
weight: weight,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../nodes/Fedex/resources/shared.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../nodes/Fedex/resources/shared.ts"],"names":[],"mappings":";;AAaA,gCAEC;AAED,gCAEC;AAED,kCAEC;AAGD,wCAEC;AAYD,4CAcC;AAED,4CAWC;AAGD,kDAsBC;AAGD,oDAaC;AA3GD,+CAAkD;AAYlD,SAAgB,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E,eAAe,CAAC;KACvC,CAAC;IAEF,MAAM,MAAM,GAAG,UAAU,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;IAClD,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;IAChD,MAAM,MAAM,GAAG,UAAU,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;IAClD,MAAM,aAAa,GAAG,MAAM,GAAG,CAAC,IAAI,KAAK,GAAG,CAAC,IAAI,MAAM,GAAG,CAAC,CAAC;IAE5D,MAAM,UAAU,GAAoB;QACnC,MAAM;QACN,KAAK;QACL,MAAM;QACN,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,eAAe,EAAE,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI;KACtE,CAAC;IAEF,OAAO;QACN,MAAM,EAAE,MAAgC;QACxC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,UAAoC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC9E,CAAC;AACH,CAAC;AAGD,SAAgB,oBAAoB,CAAC,GAA4B;IAChE,MAAM,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE,uBAAuB,CAAC,CAAC;IACvD,IAAI,CAAC,KAAK,EAAE,CAAC;QACZ,MAAM,IAAI,iCAAkB,CAC3B,GAAG,CAAC,OAAO,EAAE,EACb,2DAA2D,EAC3D;YACC,WAAW,EACV,sFAAsF;SACvF,CACD,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACd,CAAC"}
|
|
@@ -15,11 +15,9 @@ exports.createFields = [
|
|
|
15
15
|
(0, fields_1.accountNumberField)(show),
|
|
16
16
|
...(0, fields_1.addressFields)('shipper', show),
|
|
17
17
|
...(0, fields_1.contactFields)('shipper', show),
|
|
18
|
-
...(0, fields_1.addressFields)('recipient', show
|
|
18
|
+
...(0, fields_1.addressFields)('recipient', show),
|
|
19
19
|
...(0, fields_1.contactFields)('recipient', show),
|
|
20
20
|
(0, fields_1.serviceTypeField)(show, true),
|
|
21
|
-
(0, fields_1.packagingTypeField)(show),
|
|
22
|
-
(0, fields_1.pickupTypeField)(show),
|
|
23
21
|
...(0, fields_1.packageFields)(show),
|
|
24
22
|
{
|
|
25
23
|
displayName: 'Label Format',
|
|
@@ -30,40 +28,38 @@ exports.createFields = [
|
|
|
30
28
|
displayOptions: { show },
|
|
31
29
|
description: 'The image format of the returned label, delivered as a binary file attachment',
|
|
32
30
|
},
|
|
33
|
-
|
|
34
|
-
displayName: 'Label Stock Type',
|
|
35
|
-
name: 'labelStockType',
|
|
36
|
-
type: 'options',
|
|
37
|
-
options: constants_1.LABEL_STOCK_OPTIONS,
|
|
38
|
-
default: 'PAPER_4X6',
|
|
39
|
-
displayOptions: { show },
|
|
40
|
-
},
|
|
31
|
+
(0, fields_1.createAdditionalFields)(show, constants_1.LABEL_STOCK_OPTIONS),
|
|
41
32
|
];
|
|
42
33
|
async function createPreSend(requestOptions) {
|
|
34
|
+
var _a, _b, _c;
|
|
35
|
+
const extra = (0, shared_1.readAdditional)(this);
|
|
36
|
+
const packagingType = String((_a = extra.packagingType) !== null && _a !== void 0 ? _a : '').trim() || 'YOUR_PACKAGING';
|
|
37
|
+
const pickupType = String((_b = extra.pickupType) !== null && _b !== void 0 ? _b : '').trim() || 'USE_SCHEDULED_PICKUP';
|
|
38
|
+
const labelStockType = String((_c = extra.labelStockType) !== null && _c !== void 0 ? _c : '').trim() || 'PAPER_4X6';
|
|
43
39
|
const body = {
|
|
44
40
|
labelResponseOptions: 'LABEL',
|
|
45
41
|
accountNumber: { value: (0, shared_1.requireAccountNumber)(this) },
|
|
46
42
|
requestedShipment: {
|
|
47
43
|
shipper: {
|
|
48
|
-
address: (0, toFedexAddress_1.toFedexAddress)((0, shared_1.readAddressInput)(this, 'shipper')),
|
|
49
|
-
contact: (0, toFedexContact_1.toFedexContact)((0, shared_1.readContactInput)(this, 'shipper')),
|
|
44
|
+
address: (0, toFedexAddress_1.toFedexAddress)((0, shared_1.readAddressInput)(this, 'shipper', extra)),
|
|
45
|
+
contact: (0, toFedexContact_1.toFedexContact)((0, shared_1.readContactInput)(this, 'shipper', extra)),
|
|
50
46
|
},
|
|
51
47
|
recipients: [
|
|
52
48
|
{
|
|
53
|
-
address: (0, toFedexAddress_1.toFedexAddress)((0, shared_1.readAddressInput)(this, 'recipient', { residential: true })),
|
|
54
|
-
contact: (0, toFedexContact_1.toFedexContact)((0, shared_1.readContactInput)(this, 'recipient')),
|
|
49
|
+
address: (0, toFedexAddress_1.toFedexAddress)((0, shared_1.readAddressInput)(this, 'recipient', extra, { residential: true })),
|
|
50
|
+
contact: (0, toFedexContact_1.toFedexContact)((0, shared_1.readContactInput)(this, 'recipient', extra)),
|
|
55
51
|
},
|
|
56
52
|
],
|
|
57
53
|
serviceType: (0, shared_1.readString)(this, 'serviceType'),
|
|
58
|
-
packagingType
|
|
59
|
-
pickupType
|
|
54
|
+
packagingType,
|
|
55
|
+
pickupType,
|
|
60
56
|
shippingChargesPayment: { paymentType: 'SENDER' },
|
|
61
57
|
labelSpecification: {
|
|
62
58
|
imageType: (0, shared_1.readString)(this, 'labelImageType', 'PDF'),
|
|
63
|
-
labelStockType
|
|
59
|
+
labelStockType,
|
|
64
60
|
labelFormatType: 'COMMON2D',
|
|
65
61
|
},
|
|
66
|
-
requestedPackageLineItems: [(0, shared_1.readPackageLineItem)(this)],
|
|
62
|
+
requestedPackageLineItems: [(0, shared_1.readPackageLineItem)(this, extra)],
|
|
67
63
|
},
|
|
68
64
|
};
|
|
69
65
|
return { ...requestOptions, body };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/Fedex/resources/shipping/create.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/Fedex/resources/shipping/create.ts"],"names":[],"mappings":";;;AAoDA,sCAwCC;AA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IAE9B,IAAI,CAAC;QACJ,MAAM,KAAK,GAAG,IAAA,2BAAY,EAAC,QAAQ,CAAC,IAAI,EAAE,IAAA,mBAAU,EAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,CAAC,CAAC,CAAC;QACrF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAClD,KAAK,CAAC,MAAM,EACZ,KAAK,CAAC,QAAQ,EACd,KAAK,CAAC,QAAQ,CACd,CAAC;QAEF,OAAO;YACN;gBACC,IAAI,EAAE,EAAE,cAAc,EAAE,KAAK,CAAC,cAAc,EAAE,GAAG,KAAK,CAAC,IAAI,EAAE;gBAC7D,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;aACzB;SACD,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAc,CAAC,CAAC;IAC9D,CAAC;AACF,CAAC"}
|
|
@@ -11,22 +11,27 @@ const show = { resource: ['shipping'], operation: ['getRates'] };
|
|
|
11
11
|
exports.getRatesFields = [
|
|
12
12
|
(0, fields_1.accountNumberField)(show),
|
|
13
13
|
...(0, fields_1.addressFields)('shipper', show),
|
|
14
|
-
...(0, fields_1.addressFields)('recipient', show
|
|
15
|
-
(0, fields_1.pickupTypeField)(show),
|
|
14
|
+
...(0, fields_1.addressFields)('recipient', show),
|
|
16
15
|
(0, fields_1.serviceTypeField)(show, false),
|
|
17
16
|
...(0, fields_1.packageFields)(show),
|
|
17
|
+
(0, fields_1.getRatesAdditionalFields)(show),
|
|
18
18
|
];
|
|
19
19
|
async function getRatesPreSend(requestOptions) {
|
|
20
|
+
var _a;
|
|
20
21
|
const serviceType = (0, shared_1.readString)(this, 'serviceType');
|
|
22
|
+
const extra = (0, shared_1.readAdditional)(this);
|
|
23
|
+
const pickupType = String((_a = extra.pickupType) !== null && _a !== void 0 ? _a : '').trim() || 'USE_SCHEDULED_PICKUP';
|
|
21
24
|
const body = {
|
|
22
25
|
accountNumber: { value: (0, shared_1.requireAccountNumber)(this) },
|
|
23
26
|
rateRequestControlParameters: { returnTransitTimes: true },
|
|
24
27
|
requestedShipment: {
|
|
25
|
-
shipper: { address: (0, toFedexAddress_1.toFedexAddress)((0, shared_1.readAddressInput)(this, 'shipper')) },
|
|
26
|
-
recipient: {
|
|
27
|
-
|
|
28
|
+
shipper: { address: (0, toFedexAddress_1.toFedexAddress)((0, shared_1.readAddressInput)(this, 'shipper', extra)) },
|
|
29
|
+
recipient: {
|
|
30
|
+
address: (0, toFedexAddress_1.toFedexAddress)((0, shared_1.readAddressInput)(this, 'recipient', extra, { residential: true })),
|
|
31
|
+
},
|
|
32
|
+
pickupType,
|
|
28
33
|
rateRequestType: ['ACCOUNT', 'LIST'],
|
|
29
|
-
requestedPackageLineItems: [(0, shared_1.readPackageLineItem)(this)],
|
|
34
|
+
requestedPackageLineItems: [(0, shared_1.readPackageLineItem)(this, extra)],
|
|
30
35
|
...(serviceType ? { serviceType } : {}),
|
|
31
36
|
},
|
|
32
37
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRates.js","sourceRoot":"","sources":["../../../../../nodes/Fedex/resources/shipping/getRates.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"getRates.js","sourceRoot":"","sources":["../../../../../nodes/Fedex/resources/shipping/getRates.ts"],"names":[],"mappings":";;;AAoCA,0CAwBC;AAED,kDAMC;AA5DD,+DAA4D;AAC5D,uDAAoD;AACpD,yCAMsB;AACtB,sCAMmB;AAEnB,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;AAEpD,QAAA,cAAc,GAAsB;IAChD,IAAA,2BAAkB,EAAC,IAAI,CAAC;IACxB,GAAG,IAAA,sBAAa,EAAC,SAAS,EAAE,IAAI,CAAC;IACjC,G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