@activepieces/piece-katana 0.1.5 → 0.1.6
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/package.json +7 -12
- package/src/index.js +20 -37
- package/src/index.d.ts +0 -2
- package/src/index.d.ts.map +0 -1
- package/src/index.js.map +0 -1
- package/src/lib/actions/create-customer.d.ts +0 -15
- package/src/lib/actions/create-customer.d.ts.map +0 -1
- package/src/lib/actions/create-customer.js +0 -201
- package/src/lib/actions/create-customer.js.map +0 -1
- package/src/lib/actions/create-sales-order.d.ts +0 -24
- package/src/lib/actions/create-sales-order.d.ts.map +0 -1
- package/src/lib/actions/create-sales-order.js +0 -280
- package/src/lib/actions/create-sales-order.js.map +0 -1
- package/src/lib/actions/find-customer.d.ts +0 -15
- package/src/lib/actions/find-customer.d.ts.map +0 -1
- package/src/lib/actions/find-customer.js +0 -122
- package/src/lib/actions/find-customer.js.map +0 -1
- package/src/lib/actions/index.d.ts +0 -4
- package/src/lib/actions/index.d.ts.map +0 -1
- package/src/lib/actions/index.js +0 -7
- package/src/lib/actions/index.js.map +0 -1
- package/src/lib/common/auth.d.ts +0 -2
- package/src/lib/common/auth.d.ts.map +0 -1
- package/src/lib/common/auth.js +0 -41
- package/src/lib/common/auth.js.map +0 -1
- package/src/lib/common/client.d.ts +0 -3
- package/src/lib/common/client.d.ts.map +0 -1
- package/src/lib/common/client.js +0 -22
- package/src/lib/common/client.js.map +0 -1
- package/src/lib/common/constants.d.ts +0 -2
- package/src/lib/common/constants.d.ts.map +0 -1
- package/src/lib/common/constants.js +0 -5
- package/src/lib/common/constants.js.map +0 -1
- package/src/lib/common/index.d.ts +0 -5
- package/src/lib/common/index.d.ts.map +0 -1
- package/src/lib/common/index.js +0 -8
- package/src/lib/common/index.js.map +0 -1
- package/src/lib/common/props.d.ts +0 -6
- package/src/lib/common/props.d.ts.map +0 -1
- package/src/lib/common/props.js +0 -212
- package/src/lib/common/props.js.map +0 -1
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.findCustomer = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const auth_1 = require("../common/auth");
|
|
8
|
-
const constants_1 = require("../common/constants");
|
|
9
|
-
exports.findCustomer = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.katanaAuth,
|
|
11
|
-
name: 'find_customer',
|
|
12
|
-
displayName: 'Find Customer',
|
|
13
|
-
description: 'Find a customer by name, email, or phone number.',
|
|
14
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: 'Searches customers in the Katana manufacturing ERP, filtering by any combination of name, first/last name, company, email, phone, currency, reference ID, or category; with no filters set it lists all customers (paginated). Use to look up a customer ID before creating an order, to check whether a customer already exists, or to browse the customer list. Read-only and idempotent.',
|
|
17
|
-
idempotent: true,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
name: pieces_framework_1.Property.ShortText({
|
|
21
|
-
displayName: 'Name',
|
|
22
|
-
description: 'Filters customers by name.',
|
|
23
|
-
required: false,
|
|
24
|
-
}),
|
|
25
|
-
first_name: pieces_framework_1.Property.ShortText({
|
|
26
|
-
displayName: 'First Name',
|
|
27
|
-
description: 'Filters customers by first name.',
|
|
28
|
-
required: false,
|
|
29
|
-
}),
|
|
30
|
-
last_name: pieces_framework_1.Property.ShortText({
|
|
31
|
-
displayName: 'Last Name',
|
|
32
|
-
description: 'Filters customers by last name.',
|
|
33
|
-
required: false,
|
|
34
|
-
}),
|
|
35
|
-
company: pieces_framework_1.Property.ShortText({
|
|
36
|
-
displayName: 'Company',
|
|
37
|
-
description: 'Filters customers by company.',
|
|
38
|
-
required: false,
|
|
39
|
-
}),
|
|
40
|
-
email: pieces_framework_1.Property.ShortText({
|
|
41
|
-
displayName: 'Email',
|
|
42
|
-
description: 'Filters customers by email.',
|
|
43
|
-
required: false,
|
|
44
|
-
}),
|
|
45
|
-
phone: pieces_framework_1.Property.ShortText({
|
|
46
|
-
displayName: 'Phone',
|
|
47
|
-
description: 'Filters customers by phone number.',
|
|
48
|
-
required: false,
|
|
49
|
-
}),
|
|
50
|
-
currency: pieces_framework_1.Property.ShortText({
|
|
51
|
-
displayName: 'Currency',
|
|
52
|
-
description: 'Filters customers by currency.',
|
|
53
|
-
required: false,
|
|
54
|
-
}),
|
|
55
|
-
reference_id: pieces_framework_1.Property.ShortText({
|
|
56
|
-
displayName: 'Reference ID',
|
|
57
|
-
description: 'Filters customers by reference ID.',
|
|
58
|
-
required: false,
|
|
59
|
-
}),
|
|
60
|
-
category: pieces_framework_1.Property.ShortText({
|
|
61
|
-
displayName: 'Category',
|
|
62
|
-
description: 'Filters customers by category.',
|
|
63
|
-
required: false,
|
|
64
|
-
}),
|
|
65
|
-
include_deleted: pieces_framework_1.Property.Checkbox({
|
|
66
|
-
displayName: 'Include Deleted',
|
|
67
|
-
description: 'Include soft-deleted customers in results.',
|
|
68
|
-
required: false,
|
|
69
|
-
}),
|
|
70
|
-
limit: pieces_framework_1.Property.Number({
|
|
71
|
-
displayName: 'Limit',
|
|
72
|
-
description: 'Maximum number of results to return (default is 50).',
|
|
73
|
-
required: false,
|
|
74
|
-
}),
|
|
75
|
-
page: pieces_framework_1.Property.Number({
|
|
76
|
-
displayName: 'Page',
|
|
77
|
-
description: 'Page number for pagination (default is 1).',
|
|
78
|
-
required: false,
|
|
79
|
-
}),
|
|
80
|
-
},
|
|
81
|
-
run(context) {
|
|
82
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
83
|
-
const { name, first_name, last_name, company, email, phone, currency, reference_id, category, include_deleted, limit, page, } = context.propsValue;
|
|
84
|
-
const queryParams = {};
|
|
85
|
-
if (name)
|
|
86
|
-
queryParams['name'] = name;
|
|
87
|
-
if (first_name)
|
|
88
|
-
queryParams['first_name'] = first_name;
|
|
89
|
-
if (last_name)
|
|
90
|
-
queryParams['last_name'] = last_name;
|
|
91
|
-
if (company)
|
|
92
|
-
queryParams['company'] = company;
|
|
93
|
-
if (email)
|
|
94
|
-
queryParams['email'] = email;
|
|
95
|
-
if (phone)
|
|
96
|
-
queryParams['phone'] = phone;
|
|
97
|
-
if (currency)
|
|
98
|
-
queryParams['currency'] = currency;
|
|
99
|
-
if (reference_id)
|
|
100
|
-
queryParams['reference_id'] = reference_id;
|
|
101
|
-
if (category)
|
|
102
|
-
queryParams['category'] = category;
|
|
103
|
-
if (include_deleted !== undefined)
|
|
104
|
-
queryParams['include_deleted'] = include_deleted.toString();
|
|
105
|
-
if (limit !== undefined)
|
|
106
|
-
queryParams['limit'] = limit.toString();
|
|
107
|
-
if (page !== undefined)
|
|
108
|
-
queryParams['page'] = page.toString();
|
|
109
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
110
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
111
|
-
url: `${constants_1.BASE_URL}/customers`,
|
|
112
|
-
authentication: {
|
|
113
|
-
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
114
|
-
token: context.auth.secret_text,
|
|
115
|
-
},
|
|
116
|
-
queryParams,
|
|
117
|
-
});
|
|
118
|
-
return response.body;
|
|
119
|
-
});
|
|
120
|
-
},
|
|
121
|
-
});
|
|
122
|
-
//# sourceMappingURL=find-customer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-customer.js","sourceRoot":"","sources":["../../../../src/lib/actions/find-customer.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAIqC;AACrC,yCAA4C;AAC5C,mDAA+C;AAElC,QAAA,YAAY,GAAG,IAAA,+BAAY,EAAC;IACvC,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,kDAAkD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,WAAW,CAAC,cAAc,CAAC,GAAG,YAAY,CAAC;YAC7D,IAAI,QAAQ;gBAAE,WAAW,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC;YACjD,IAAI,eAAe,KAAK,SAAS;gBAAE,WAAW,CAAC,iBAAiB,CAAC,GAAG,eAAe,CAAC,QAAQ,EAAE,CAAC;YAC/F,IAAI,KAAK,KAAK,SAAS;gBAAE,WAAW,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;YACjE,IAAI,IAAI,KAAK,SAAS;gBAAE,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;YAE9D,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG,EAAE,GAAG,oBAAQ,YAAY;gBAC5B,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;iBAChC;gBACD,WAAW;aACZ,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC"}
|
package/src/lib/actions/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./create-customer"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./create-sales-order"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./find-customer"), exports);
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/actions/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC;AAClC,+DAAqC;AACrC,0DAAgC"}
|
package/src/lib/common/auth.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/auth.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,UAAU,mEAgCrB,CAAC"}
|
package/src/lib/common/auth.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.katanaAuth = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const constants_1 = require("./constants");
|
|
8
|
-
exports.katanaAuth = pieces_framework_1.PieceAuth.SecretText({
|
|
9
|
-
displayName: 'API Key',
|
|
10
|
-
required: true,
|
|
11
|
-
description: `
|
|
12
|
-
To generate your API key:
|
|
13
|
-
|
|
14
|
-
1. Log in to your Katana account
|
|
15
|
-
2. Go to **Settings > API**
|
|
16
|
-
3. Select **Add new API key**
|
|
17
|
-
4. Copy and paste the key here
|
|
18
|
-
`,
|
|
19
|
-
validate: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
20
|
-
try {
|
|
21
|
-
yield pieces_common_1.httpClient.sendRequest({
|
|
22
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
23
|
-
url: `${constants_1.BASE_URL}/products`,
|
|
24
|
-
authentication: {
|
|
25
|
-
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
26
|
-
token: auth,
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
return {
|
|
30
|
-
valid: true,
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
catch (_b) {
|
|
34
|
-
return {
|
|
35
|
-
valid: false,
|
|
36
|
-
error: 'Invalid API Key',
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
}),
|
|
40
|
-
});
|
|
41
|
-
//# sourceMappingURL=auth.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../../src/lib/common/auth.ts"],"names":[],"mappings":";;;;AAAA,qEAA2D;AAC3D,+DAIqC;AACrC,2CAAuC;AAE1B,QAAA,UAAU,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC7C,WAAW,EAAE,SAAS;IACtB,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE;;;;;;;CAOd;IACC,QAAQ,EAAE,KAAiB,EAAE,oDAAZ,EAAE,IAAI,EAAE;QACvB,IAAI,CAAC;YACH,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC3B,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG,EAAE,GAAG,oBAAQ,WAAW;gBAC3B,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,IAAI;iBACZ;aACF,CAAC,CAAC;YAEH,OAAO;gBACL,KAAK,EAAE,IAAI;aACZ,CAAC;QACJ,CAAC;QAAC,WAAM,CAAC;YACP,OAAO;gBACL,KAAK,EAAE,KAAK;gBACZ,KAAK,EAAE,iBAAiB;aACzB,CAAC;QACJ,CAAC;IACH,CAAC,CAAA;CACF,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EACX,MAAM,6BAA6B,CAAC;AAGrC,wBAAsB,aAAa,CAAC,CAAC,EACnC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,MAAM,EAChB,IAAI,CAAC,EAAE,OAAO,EACd,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACnC,OAAO,CAAC,CAAC,CAAC,CAaZ"}
|
package/src/lib/common/client.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.katanaApiCall = katanaApiCall;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
6
|
-
const constants_1 = require("./constants");
|
|
7
|
-
function katanaApiCall(auth, method, endpoint, body, queryParams) {
|
|
8
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
9
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
10
|
-
method,
|
|
11
|
-
url: `${constants_1.BASE_URL}${endpoint}`,
|
|
12
|
-
authentication: {
|
|
13
|
-
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
14
|
-
token: auth,
|
|
15
|
-
},
|
|
16
|
-
body,
|
|
17
|
-
queryParams,
|
|
18
|
-
});
|
|
19
|
-
return response.body;
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=client.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../src/lib/common/client.ts"],"names":[],"mappings":";;AAOA,sCAmBC;;AA1BD,+DAIqC;AACrC,2CAAuC;AAEvC,SAAsB,aAAa,CACjC,IAAY,EACZ,MAAkB,EAClB,QAAgB,EAChB,IAAc,EACd,WAAoC;;QAEpC,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAI;YAC/C,MAAM;YACN,GAAG,EAAE,GAAG,oBAAQ,GAAG,QAAQ,EAAE;YAC7B,cAAc,EAAE;gBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;gBACrC,KAAK,EAAE,IAAI;aACZ;YACD,IAAI;YACJ,WAAW;SACZ,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,iCAAiC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/lib/common/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG,8BAA8B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
package/src/lib/common/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./auth"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./constants"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./client"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./props"), exports);
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/common/index.ts"],"names":[],"mappings":";;;AAAA,iDAAuB;AACvB,sDAA4B;AAC5B,mDAAyB;AACzB,kDAAwB"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const customerDropdown: import("@activepieces/pieces-framework").DropdownProperty<number, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
2
|
-
export declare const variantDropdown: import("@activepieces/pieces-framework").DropdownProperty<number, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
|
-
export declare const taxRateDropdown: import("@activepieces/pieces-framework").DropdownProperty<number, false, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
4
|
-
export declare const locationDropdown: import("@activepieces/pieces-framework").DropdownProperty<number, false, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
5
|
-
export declare const locationDropdownRequired: import("@activepieces/pieces-framework").DropdownProperty<number, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
6
|
-
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/props.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,gBAAgB,4IAyC3B,CAAC;AAEH,eAAO,MAAM,eAAe,4IAyC1B,CAAC;AAEH,eAAO,MAAM,eAAe,6IAwC1B,CAAC;AAEH,eAAO,MAAM,gBAAgB,6IAwC3B,CAAC;AAEH,eAAO,MAAM,wBAAwB,4IAyCnC,CAAC"}
|
package/src/lib/common/props.js
DELETED
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.locationDropdownRequired = exports.locationDropdown = exports.taxRateDropdown = exports.variantDropdown = exports.customerDropdown = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const auth_1 = require("./auth");
|
|
8
|
-
const constants_1 = require("./constants");
|
|
9
|
-
exports.customerDropdown = pieces_framework_1.Property.Dropdown({
|
|
10
|
-
displayName: 'Customer',
|
|
11
|
-
description: 'Select the customer.',
|
|
12
|
-
required: true,
|
|
13
|
-
refreshers: [],
|
|
14
|
-
auth: auth_1.katanaAuth,
|
|
15
|
-
options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
16
|
-
if (!auth) {
|
|
17
|
-
return {
|
|
18
|
-
disabled: true,
|
|
19
|
-
placeholder: 'Connect your account first',
|
|
20
|
-
options: [],
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
try {
|
|
24
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
25
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
26
|
-
url: `${constants_1.BASE_URL}/customers`,
|
|
27
|
-
authentication: {
|
|
28
|
-
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
29
|
-
token: auth.secret_text,
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
const customers = Array.isArray(response.body) ? response.body : [];
|
|
33
|
-
return {
|
|
34
|
-
disabled: false,
|
|
35
|
-
options: customers.map((customer) => ({
|
|
36
|
-
label: customer.name,
|
|
37
|
-
value: customer.id,
|
|
38
|
-
})),
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
catch (_b) {
|
|
42
|
-
return {
|
|
43
|
-
disabled: true,
|
|
44
|
-
placeholder: 'Failed to load customers',
|
|
45
|
-
options: [],
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
}),
|
|
49
|
-
});
|
|
50
|
-
exports.variantDropdown = pieces_framework_1.Property.Dropdown({
|
|
51
|
-
displayName: 'Product Variant',
|
|
52
|
-
description: 'Select the product variant.',
|
|
53
|
-
required: true,
|
|
54
|
-
refreshers: [],
|
|
55
|
-
auth: auth_1.katanaAuth,
|
|
56
|
-
options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
57
|
-
if (!auth) {
|
|
58
|
-
return {
|
|
59
|
-
disabled: true,
|
|
60
|
-
placeholder: 'Connect your account first',
|
|
61
|
-
options: [],
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
try {
|
|
65
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
66
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
67
|
-
url: `${constants_1.BASE_URL}/variants`,
|
|
68
|
-
authentication: {
|
|
69
|
-
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
70
|
-
token: auth.secret_text,
|
|
71
|
-
},
|
|
72
|
-
});
|
|
73
|
-
const variants = Array.isArray(response.body) ? response.body : [];
|
|
74
|
-
return {
|
|
75
|
-
disabled: false,
|
|
76
|
-
options: variants.map((variant) => ({
|
|
77
|
-
label: variant.sku || variant.name || `Variant ${variant.id}`,
|
|
78
|
-
value: variant.id,
|
|
79
|
-
})),
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
catch (_b) {
|
|
83
|
-
return {
|
|
84
|
-
disabled: true,
|
|
85
|
-
placeholder: 'Failed to load variants',
|
|
86
|
-
options: [],
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
}),
|
|
90
|
-
});
|
|
91
|
-
exports.taxRateDropdown = pieces_framework_1.Property.Dropdown({
|
|
92
|
-
displayName: 'Tax Rate',
|
|
93
|
-
required: false,
|
|
94
|
-
refreshers: [],
|
|
95
|
-
auth: auth_1.katanaAuth,
|
|
96
|
-
options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
97
|
-
if (!auth) {
|
|
98
|
-
return {
|
|
99
|
-
disabled: true,
|
|
100
|
-
placeholder: 'Connect your account first',
|
|
101
|
-
options: [],
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
try {
|
|
105
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
106
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
107
|
-
url: `${constants_1.BASE_URL}/tax_rates`,
|
|
108
|
-
authentication: {
|
|
109
|
-
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
110
|
-
token: auth.secret_text,
|
|
111
|
-
},
|
|
112
|
-
});
|
|
113
|
-
const taxRates = Array.isArray(response.body) ? response.body : [];
|
|
114
|
-
return {
|
|
115
|
-
disabled: false,
|
|
116
|
-
options: taxRates.map((rate) => ({
|
|
117
|
-
label: `${rate.name} (${rate.percentage}%)`,
|
|
118
|
-
value: rate.id,
|
|
119
|
-
})),
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
catch (_b) {
|
|
123
|
-
return {
|
|
124
|
-
disabled: false,
|
|
125
|
-
placeholder: 'No tax rates available',
|
|
126
|
-
options: [],
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
}),
|
|
130
|
-
});
|
|
131
|
-
exports.locationDropdown = pieces_framework_1.Property.Dropdown({
|
|
132
|
-
displayName: 'Location',
|
|
133
|
-
required: false,
|
|
134
|
-
refreshers: [],
|
|
135
|
-
auth: auth_1.katanaAuth,
|
|
136
|
-
options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
137
|
-
if (!auth) {
|
|
138
|
-
return {
|
|
139
|
-
disabled: true,
|
|
140
|
-
placeholder: 'Connect your account first',
|
|
141
|
-
options: [],
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
try {
|
|
145
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
146
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
147
|
-
url: `${constants_1.BASE_URL}/locations`,
|
|
148
|
-
authentication: {
|
|
149
|
-
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
150
|
-
token: auth.secret_text,
|
|
151
|
-
},
|
|
152
|
-
});
|
|
153
|
-
const locations = Array.isArray(response.body) ? response.body : [];
|
|
154
|
-
return {
|
|
155
|
-
disabled: false,
|
|
156
|
-
options: locations.map((location) => ({
|
|
157
|
-
label: location.name,
|
|
158
|
-
value: location.id,
|
|
159
|
-
})),
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
catch (_b) {
|
|
163
|
-
return {
|
|
164
|
-
disabled: false,
|
|
165
|
-
placeholder: 'No locations available',
|
|
166
|
-
options: [],
|
|
167
|
-
};
|
|
168
|
-
}
|
|
169
|
-
}),
|
|
170
|
-
});
|
|
171
|
-
exports.locationDropdownRequired = pieces_framework_1.Property.Dropdown({
|
|
172
|
-
displayName: 'Default Location',
|
|
173
|
-
description: 'Default location for the order.',
|
|
174
|
-
required: true,
|
|
175
|
-
refreshers: [],
|
|
176
|
-
auth: auth_1.katanaAuth,
|
|
177
|
-
options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
178
|
-
if (!auth) {
|
|
179
|
-
return {
|
|
180
|
-
disabled: true,
|
|
181
|
-
placeholder: 'Connect your account first',
|
|
182
|
-
options: [],
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
try {
|
|
186
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
187
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
188
|
-
url: `${constants_1.BASE_URL}/locations`,
|
|
189
|
-
authentication: {
|
|
190
|
-
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
191
|
-
token: auth.secret_text,
|
|
192
|
-
},
|
|
193
|
-
});
|
|
194
|
-
const locations = Array.isArray(response.body) ? response.body : [];
|
|
195
|
-
return {
|
|
196
|
-
disabled: false,
|
|
197
|
-
options: locations.map((location) => ({
|
|
198
|
-
label: location.name,
|
|
199
|
-
value: location.id,
|
|
200
|
-
})),
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
catch (_b) {
|
|
204
|
-
return {
|
|
205
|
-
disabled: false,
|
|
206
|
-
placeholder: 'No locations available',
|
|
207
|
-
options: [],
|
|
208
|
-
};
|
|
209
|
-
}
|
|
210
|
-
}),
|
|
211
|
-
});
|
|
212
|
-
//# sourceMappingURL=props.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"props.js","sourceRoot":"","sources":["../../../../src/lib/common/props.ts"],"names":[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