@activepieces/piece-outseta 0.0.1
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 +16 -0
- package/src/action/get-account.d.ts +7 -0
- package/src/action/get-account.js +35 -0
- package/src/action/get-account.js.map +1 -0
- package/src/action/get-person.d.ts +7 -0
- package/src/action/get-person.js +35 -0
- package/src/action/get-person.js.map +1 -0
- package/src/action/get-subscription.d.ts +7 -0
- package/src/action/get-subscription.js +35 -0
- package/src/action/get-subscription.js.map +1 -0
- package/src/auth.d.ts +5 -0
- package/src/auth.js +52 -0
- package/src/auth.js.map +1 -0
- package/src/common/client.d.ts +12 -0
- package/src/common/client.js +31 -0
- package/src/common/client.js.map +1 -0
- package/src/index.d.ts +5 -0
- package/src/index.js +54 -0
- package/src/index.js.map +1 -0
- package/src/triggers/_manual-webhook-trigger.d.ts +33 -0
- package/src/triggers/_manual-webhook-trigger.js +38 -0
- package/src/triggers/_manual-webhook-trigger.js.map +1 -0
- package/src/triggers/account-created.d.ts +25 -0
- package/src/triggers/account-created.js +38 -0
- package/src/triggers/account-created.js.map +1 -0
- package/src/triggers/account-updated.d.ts +25 -0
- package/src/triggers/account-updated.js +38 -0
- package/src/triggers/account-updated.js.map +1 -0
- package/src/triggers/invoice-paid.d.ts +25 -0
- package/src/triggers/invoice-paid.js +29 -0
- package/src/triggers/invoice-paid.js.map +1 -0
- package/src/triggers/payment-succeeded.d.ts +25 -0
- package/src/triggers/payment-succeeded.js +25 -0
- package/src/triggers/payment-succeeded.js.map +1 -0
- package/src/triggers/person-created.d.ts +25 -0
- package/src/triggers/person-created.js +23 -0
- package/src/triggers/person-created.js.map +1 -0
- package/src/triggers/person-updated.d.ts +25 -0
- package/src/triggers/person-updated.js +23 -0
- package/src/triggers/person-updated.js.map +1 -0
- package/src/triggers/subscription-created.d.ts +25 -0
- package/src/triggers/subscription-created.js +28 -0
- package/src/triggers/subscription-created.js.map +1 -0
- package/src/triggers/subscription-updated.d.ts +25 -0
- package/src/triggers/subscription-updated.js +28 -0
- package/src/triggers/subscription-updated.js.map +1 -0
package/package.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@activepieces/piece-outseta",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"main": "./src/index.js",
|
|
5
|
+
"types": "./src/index.d.ts",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "tsc -p tsconfig.lib.json && cp package.json dist/",
|
|
8
|
+
"lint": "eslint 'src/**/*.ts'"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@activepieces/pieces-common": "0.11.7",
|
|
12
|
+
"@activepieces/pieces-framework": "0.25.6",
|
|
13
|
+
"@activepieces/shared": "0.41.1",
|
|
14
|
+
"tslib": "2.6.2"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const getAccountAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
+
}>, {
|
|
6
|
+
accountUid: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAccountAction = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
+
const auth_1 = require("../auth");
|
|
7
|
+
const client_1 = require("../common/client");
|
|
8
|
+
exports.getAccountAction = (0, pieces_framework_1.createAction)({
|
|
9
|
+
name: 'get_account',
|
|
10
|
+
auth: auth_1.outsetaAuth,
|
|
11
|
+
displayName: 'Get account',
|
|
12
|
+
description: 'Retrieve an Outseta account by its UID',
|
|
13
|
+
props: {
|
|
14
|
+
accountUid: pieces_framework_1.Property.ShortText({
|
|
15
|
+
displayName: 'Account UID',
|
|
16
|
+
required: true,
|
|
17
|
+
}),
|
|
18
|
+
},
|
|
19
|
+
run(context) {
|
|
20
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const client = new client_1.OutsetaClient({
|
|
22
|
+
domain: context.auth.props.domain,
|
|
23
|
+
apiKey: context.auth.props.apiKey,
|
|
24
|
+
apiSecret: context.auth.props.apiSecret,
|
|
25
|
+
});
|
|
26
|
+
const account = yield client.get(`/api/v1/crm/accounts/${context.propsValue.accountUid}`);
|
|
27
|
+
return {
|
|
28
|
+
accountUid: context.propsValue.accountUid,
|
|
29
|
+
account,
|
|
30
|
+
rawResponse: account,
|
|
31
|
+
};
|
|
32
|
+
});
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=get-account.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-account.js","sourceRoot":"","sources":["../../../src/action/get-account.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAAsC;AACtC,6CAAiD;AAEpC,QAAA,gBAAgB,GAAG,IAAA,+BAAY,EAAC;IAC3C,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,kBAAW;IACjB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,wCAAwC;IACrD,KAAK,EAAE;QACL,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,MAAM,GAAG,IAAI,sBAAa,CAAC;gBAC/B,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM;gBACjC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM;gBACjC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS;aACxC,CAAC,CAAC;YAEH,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,GAAG,CAC9B,wBAAwB,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,CACxD,CAAC;YAEF,OAAO;gBACL,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,UAAU;gBACzC,OAAO;gBACP,WAAW,EAAE,OAAO;aACrB,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const getPersonAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
+
}>, {
|
|
6
|
+
personUid: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPersonAction = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
+
const auth_1 = require("../auth");
|
|
7
|
+
const client_1 = require("../common/client");
|
|
8
|
+
exports.getPersonAction = (0, pieces_framework_1.createAction)({
|
|
9
|
+
name: 'get_person',
|
|
10
|
+
auth: auth_1.outsetaAuth,
|
|
11
|
+
displayName: 'Get person',
|
|
12
|
+
description: 'Retrieve an Outseta person by its UID',
|
|
13
|
+
props: {
|
|
14
|
+
personUid: pieces_framework_1.Property.ShortText({
|
|
15
|
+
displayName: 'Person UID',
|
|
16
|
+
required: true,
|
|
17
|
+
}),
|
|
18
|
+
},
|
|
19
|
+
run(context) {
|
|
20
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const client = new client_1.OutsetaClient({
|
|
22
|
+
domain: context.auth.props.domain,
|
|
23
|
+
apiKey: context.auth.props.apiKey,
|
|
24
|
+
apiSecret: context.auth.props.apiSecret,
|
|
25
|
+
});
|
|
26
|
+
const person = yield client.get(`/api/v1/crm/people/${context.propsValue.personUid}`);
|
|
27
|
+
return {
|
|
28
|
+
personUid: context.propsValue.personUid,
|
|
29
|
+
person,
|
|
30
|
+
rawResponse: person,
|
|
31
|
+
};
|
|
32
|
+
});
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=get-person.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-person.js","sourceRoot":"","sources":["../../../src/action/get-person.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAAsC;AACtC,6CAAiD;AAEpC,QAAA,eAAe,GAAG,IAAA,+BAAY,EAAC;IAC1C,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,kBAAW;IACjB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,uCAAuC;IACpD,KAAK,EAAE;QACL,SAAS,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,YAAY;YACzB,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,MAAM,GAAG,IAAI,sBAAa,CAAC;gBAC/B,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM;gBACjC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM;gBACjC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS;aACxC,CAAC,CAAC;YAEH,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,GAAG,CAC7B,sBAAsB,OAAO,CAAC,UAAU,CAAC,SAAS,EAAE,CACrD,CAAC;YAEF,OAAO;gBACL,SAAS,EAAE,OAAO,CAAC,UAAU,CAAC,SAAS;gBACvC,MAAM;gBACN,WAAW,EAAE,MAAM;aACpB,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const getSubscriptionAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
+
}>, {
|
|
6
|
+
subscriptionUid: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSubscriptionAction = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
+
const auth_1 = require("../auth");
|
|
7
|
+
const client_1 = require("../common/client");
|
|
8
|
+
exports.getSubscriptionAction = (0, pieces_framework_1.createAction)({
|
|
9
|
+
name: 'get_subscription',
|
|
10
|
+
auth: auth_1.outsetaAuth,
|
|
11
|
+
displayName: 'Get subscription',
|
|
12
|
+
description: 'Retrieve an Outseta subscription by its UID',
|
|
13
|
+
props: {
|
|
14
|
+
subscriptionUid: pieces_framework_1.Property.ShortText({
|
|
15
|
+
displayName: 'Subscription UID',
|
|
16
|
+
required: true,
|
|
17
|
+
}),
|
|
18
|
+
},
|
|
19
|
+
run(context) {
|
|
20
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const client = new client_1.OutsetaClient({
|
|
22
|
+
domain: context.auth.props.domain,
|
|
23
|
+
apiKey: context.auth.props.apiKey,
|
|
24
|
+
apiSecret: context.auth.props.apiSecret,
|
|
25
|
+
});
|
|
26
|
+
const subscription = yield client.get(`/api/v1/billing/subscriptions/${context.propsValue.subscriptionUid}`);
|
|
27
|
+
return {
|
|
28
|
+
subscriptionUid: context.propsValue.subscriptionUid,
|
|
29
|
+
subscription,
|
|
30
|
+
rawResponse: subscription,
|
|
31
|
+
};
|
|
32
|
+
});
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=get-subscription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-subscription.js","sourceRoot":"","sources":["../../../src/action/get-subscription.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAAsC;AACtC,6CAAiD;AAEpC,QAAA,qBAAqB,GAAG,IAAA,+BAAY,EAAC;IAChD,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,kBAAW;IACjB,WAAW,EAAE,kBAAkB;IAC/B,WAAW,EAAE,6CAA6C;IAC1D,KAAK,EAAE;QACL,eAAe,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAClC,WAAW,EAAE,kBAAkB;YAC/B,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,MAAM,GAAG,IAAI,sBAAa,CAAC;gBAC/B,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM;gBACjC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM;gBACjC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS;aACxC,CAAC,CAAC;YAEH,MAAM,YAAY,GAAG,MAAM,MAAM,CAAC,GAAG,CACnC,iCAAiC,OAAO,CAAC,UAAU,CAAC,eAAe,EAAE,CACtE,CAAC;YAEF,OAAO;gBACL,eAAe,EAAE,OAAO,CAAC,UAAU,CAAC,eAAe;gBACnD,YAAY;gBACZ,WAAW,EAAE,YAAY;aAC1B,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
package/src/auth.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const outsetaAuth: import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
+
}>;
|
package/src/auth.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.outsetaAuth = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
+
const client_1 = require("./common/client");
|
|
7
|
+
exports.outsetaAuth = pieces_framework_1.PieceAuth.CustomAuth({
|
|
8
|
+
displayName: 'Outseta Admin API',
|
|
9
|
+
description: 'Outseta Admin API credentials',
|
|
10
|
+
required: true,
|
|
11
|
+
props: {
|
|
12
|
+
domain: pieces_framework_1.Property.ShortText({
|
|
13
|
+
displayName: 'Outseta domain',
|
|
14
|
+
description: 'Example: https://yourcompany.outseta.com',
|
|
15
|
+
required: true,
|
|
16
|
+
}),
|
|
17
|
+
apiKey: pieces_framework_1.Property.ShortText({
|
|
18
|
+
displayName: 'API Key',
|
|
19
|
+
required: true,
|
|
20
|
+
}),
|
|
21
|
+
apiSecret: pieces_framework_1.Property.ShortText({
|
|
22
|
+
displayName: 'API Secret',
|
|
23
|
+
required: true,
|
|
24
|
+
}),
|
|
25
|
+
},
|
|
26
|
+
validate: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
27
|
+
if (auth) {
|
|
28
|
+
try {
|
|
29
|
+
const client = new client_1.OutsetaClient({
|
|
30
|
+
domain: auth.domain,
|
|
31
|
+
apiKey: auth.apiKey,
|
|
32
|
+
apiSecret: auth.apiSecret,
|
|
33
|
+
});
|
|
34
|
+
yield client.get(`/api/v1/crm/people`);
|
|
35
|
+
return {
|
|
36
|
+
valid: true,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
catch (error) {
|
|
40
|
+
return {
|
|
41
|
+
valid: false,
|
|
42
|
+
error: 'Invalid Api Key or secret key',
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
valid: false,
|
|
48
|
+
error: 'Invalid Api Key',
|
|
49
|
+
};
|
|
50
|
+
}),
|
|
51
|
+
});
|
|
52
|
+
//# sourceMappingURL=auth.js.map
|
package/src/auth.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/auth.ts"],"names":[],"mappings":";;;;AAAA,qEAAqE;AACrE,4CAAgD;AAEnC,QAAA,WAAW,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC9C,WAAW,EAAE,mBAAmB;IAChC,WAAW,EAAE,+BAA+B;IAC5C,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE;QACL,MAAM,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,gBAAgB;YAC7B,WAAW,EAAE,0CAA0C;YACvD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,MAAM,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,SAAS;YACtB,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,SAAS,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,YAAY;YACzB,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACD,QAAQ,EAAE,KAAiB,EAAE,oDAAZ,EAAE,IAAI,EAAE;QACvB,IAAI,IAAI,EAAE,CAAC;YACT,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,IAAI,sBAAa,CAAC;oBAC/B,MAAM,EAAE,IAAI,CAAC,MAAM;oBACnB,MAAM,EAAE,IAAI,CAAC,MAAM;oBACnB,SAAS,EAAE,IAAI,CAAC,SAAS;iBAC1B,CAAC,CAAC;gBAEH,MAAM,MAAM,CAAC,GAAG,CAAM,oBAAoB,CAAC,CAAC;gBAE5C,OAAO;oBACL,KAAK,EAAE,IAAI;iBACZ,CAAC;YACJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO;oBACL,KAAK,EAAE,KAAK;oBACZ,KAAK,EAAE,+BAA+B;iBACvC,CAAC;YACJ,CAAC;QACH,CAAC;QACD,OAAO;YACL,KAAK,EAAE,KAAK;YACZ,KAAK,EAAE,iBAAiB;SACzB,CAAC;IACJ,CAAC,CAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type OutsetaAuth = {
|
|
2
|
+
domain: string;
|
|
3
|
+
apiKey: string;
|
|
4
|
+
apiSecret: string;
|
|
5
|
+
};
|
|
6
|
+
export declare class OutsetaClient {
|
|
7
|
+
private readonly baseUrl;
|
|
8
|
+
private readonly authHeader;
|
|
9
|
+
constructor(auth: OutsetaAuth);
|
|
10
|
+
get<T>(path: string): Promise<T>;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OutsetaClient = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
6
|
+
class OutsetaClient {
|
|
7
|
+
constructor(auth) {
|
|
8
|
+
// Remove trailing slash if present
|
|
9
|
+
this.baseUrl = auth.domain.replace(/\/$/, '');
|
|
10
|
+
// Outseta Admin API auth format
|
|
11
|
+
this.authHeader = `Outseta ${auth.apiKey}:${auth.apiSecret}`;
|
|
12
|
+
}
|
|
13
|
+
get(path) {
|
|
14
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
15
|
+
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
16
|
+
method: pieces_common_1.HttpMethod.GET,
|
|
17
|
+
url: `${this.baseUrl}${path}`,
|
|
18
|
+
headers: {
|
|
19
|
+
Authorization: this.authHeader,
|
|
20
|
+
'Content-Type': 'application/json',
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
if (response.status !== 200) {
|
|
24
|
+
throw new Error(`Outseta API error (${response.status}): ${JSON.stringify(response.body)}`);
|
|
25
|
+
}
|
|
26
|
+
return response.body;
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.OutsetaClient = OutsetaClient;
|
|
31
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/common/client.ts"],"names":[],"mappings":";;;;AAAA,+DAAqE;AAQrE,MAAa,aAAa;IAIxB,YAAY,IAAiB;QAC3B,mCAAmC;QACnC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAC9C,gCAAgC;QAChC,IAAI,CAAC,UAAU,GAAG,WAAW,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;IAC/D,CAAC;IAEK,GAAG,CAAI,IAAY;;YACvB,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAI;gBAC/C,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG,EAAE,GAAG,IAAI,CAAC,OAAO,GAAG,IAAI,EAAE;gBAC7B,OAAO,EAAE;oBACP,aAAa,EAAE,IAAI,CAAC,UAAU;oBAC9B,cAAc,EAAE,kBAAkB;iBACnC;aACF,CAAC,CAAC;YAEH,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;gBAC5B,MAAM,IAAI,KAAK,CACb,sBAAsB,QAAQ,CAAC,MAAM,MAAM,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAC3E,CAAC;YACJ,CAAC;YAED,OAAO,QAAQ,CAAC,IAAS,CAAC;QAC5B,CAAC;KAAA;CACF;AA7BD,sCA6BC"}
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const outseta: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
+
}>>;
|
package/src/index.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.outseta = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
6
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
7
|
+
const shared_1 = require("@activepieces/shared");
|
|
8
|
+
const auth_1 = require("./auth");
|
|
9
|
+
const get_account_1 = require("./action/get-account");
|
|
10
|
+
const get_person_1 = require("./action/get-person");
|
|
11
|
+
const get_subscription_1 = require("./action/get-subscription");
|
|
12
|
+
const account_created_1 = require("./triggers/account-created");
|
|
13
|
+
const account_updated_1 = require("./triggers/account-updated");
|
|
14
|
+
const person_created_1 = require("./triggers/person-created");
|
|
15
|
+
const person_updated_1 = require("./triggers/person-updated");
|
|
16
|
+
const subscription_created_1 = require("./triggers/subscription-created");
|
|
17
|
+
const subscription_updated_1 = require("./triggers/subscription-updated");
|
|
18
|
+
const invoice_paid_1 = require("./triggers/invoice-paid");
|
|
19
|
+
const payment_succeeded_1 = require("./triggers/payment-succeeded");
|
|
20
|
+
exports.outseta = (0, pieces_framework_1.createPiece)({
|
|
21
|
+
displayName: 'Outseta',
|
|
22
|
+
description: 'Triggers and actions for Outseta CRM and Billing',
|
|
23
|
+
auth: auth_1.outsetaAuth,
|
|
24
|
+
minimumSupportedRelease: '0.20.0',
|
|
25
|
+
logoUrl: 'https://cdn.activepieces.com/pieces/outseta.png',
|
|
26
|
+
authors: ['bst1n', 'sanket-a11y'],
|
|
27
|
+
categories: [shared_1.PieceCategory.SALES_AND_CRM],
|
|
28
|
+
triggers: [
|
|
29
|
+
account_created_1.accountCreatedTrigger,
|
|
30
|
+
account_updated_1.accountUpdatedTrigger,
|
|
31
|
+
person_created_1.personCreatedTrigger,
|
|
32
|
+
person_updated_1.personUpdatedTrigger,
|
|
33
|
+
subscription_created_1.subscriptionCreatedTrigger,
|
|
34
|
+
subscription_updated_1.subscriptionUpdatedTrigger,
|
|
35
|
+
invoice_paid_1.invoicePaidTrigger,
|
|
36
|
+
payment_succeeded_1.paymentSucceededTrigger,
|
|
37
|
+
],
|
|
38
|
+
actions: [
|
|
39
|
+
get_account_1.getAccountAction,
|
|
40
|
+
get_person_1.getPersonAction,
|
|
41
|
+
get_subscription_1.getSubscriptionAction,
|
|
42
|
+
(0, pieces_common_1.createCustomApiCallAction)({
|
|
43
|
+
auth: auth_1.outsetaAuth,
|
|
44
|
+
baseUrl: (auth) => `${auth.props.domain}/api/v1`,
|
|
45
|
+
authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
46
|
+
const { apiKey, apiSecret } = auth.props;
|
|
47
|
+
return {
|
|
48
|
+
Authorization: `Outseta ${apiKey}:${apiSecret}`,
|
|
49
|
+
};
|
|
50
|
+
}),
|
|
51
|
+
}),
|
|
52
|
+
],
|
|
53
|
+
});
|
|
54
|
+
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,+DAAwE;AACxE,qEAA6D;AAC7D,iDAAqD;AACrD,iCAAqC;AAErC,sDAAwD;AACxD,oDAAsD;AACtD,gEAAkE;AAElE,gEAAmE;AACnE,gEAAmE;AACnE,8DAAiE;AACjE,8DAAiE;AACjE,0EAA6E;AAC7E,0EAA6E;AAC7E,0DAA6D;AAC7D,oEAAuE;AAE1D,QAAA,OAAO,GAAG,IAAA,8BAAW,EAAC;IACjC,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,kDAAkD;IAC/D,IAAI,EAAE,kBAAW;IACjB,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,iDAAiD;IAC1D,OAAO,EAAE,CAAC,OAAO,EAAC,aAAa,CAAC;IAChC,UAAU,EAAE,CAAC,sBAAa,CAAC,aAAa,CAAC;IACzC,QAAQ,EAAE;QACR,uCAAqB;QACrB,uCAAqB;QACrB,qCAAoB;QACpB,qCAAoB;QACpB,iDAA0B;QAC1B,iDAA0B;QAC1B,iCAAkB;QAClB,2CAAuB;KACxB;IACD,OAAO,EAAE;QACP,8BAAgB;QAChB,4BAAe;QACf,wCAAqB;QACrB,IAAA,yCAAyB,EAAC;YACxB,IAAI,EAAE,kBAAW;YACjB,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,SAAS;YAChD,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAC1B,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;gBACzC,OAAO;oBACL,aAAa,EAAE,WAAW,MAAM,IAAI,SAAS,EAAE;iBAChD,CAAC;YACJ,CAAC,CAAA;SACF,CAAC;KACH;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
+
type ManualWebhookTriggerArgs = {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
description: string;
|
|
6
|
+
sampleData?: Record<string, unknown>;
|
|
7
|
+
};
|
|
8
|
+
export declare function createManualWebhookTrigger(args: ManualWebhookTriggerArgs): import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
9
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
10
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
12
|
+
}>, {
|
|
13
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
14
|
+
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
15
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
16
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
17
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
18
|
+
}>, {
|
|
19
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
20
|
+
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
21
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
22
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
23
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
24
|
+
}>, {
|
|
25
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
26
|
+
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
27
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
28
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
29
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
30
|
+
}>, {
|
|
31
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
32
|
+
}>;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createManualWebhookTrigger = createManualWebhookTrigger;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
+
const auth_1 = require("../auth");
|
|
7
|
+
function createManualWebhookTrigger(args) {
|
|
8
|
+
var _a;
|
|
9
|
+
return (0, pieces_framework_1.createTrigger)({
|
|
10
|
+
name: args.name,
|
|
11
|
+
auth: auth_1.outsetaAuth,
|
|
12
|
+
displayName: args.displayName,
|
|
13
|
+
description: `${args.description}`,
|
|
14
|
+
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
15
|
+
props: {
|
|
16
|
+
instruction: pieces_framework_1.Property.MarkDown({
|
|
17
|
+
value: `**Setup:** In Outseta go to Settings → Notifications → Add Notification, select the matching activity type, and paste this trigger's webhook URL {{webhookUrl}} as the callback URL.`
|
|
18
|
+
})
|
|
19
|
+
},
|
|
20
|
+
sampleData: (_a = args.sampleData) !== null && _a !== void 0 ? _a : {},
|
|
21
|
+
onEnable() {
|
|
22
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
// Manual setup required in Outseta UI (Settings → Notifications)
|
|
24
|
+
});
|
|
25
|
+
},
|
|
26
|
+
onDisable() {
|
|
27
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
// Manual cleanup in Outseta UI if needed
|
|
29
|
+
});
|
|
30
|
+
},
|
|
31
|
+
run(context) {
|
|
32
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
return [context.payload.body];
|
|
34
|
+
});
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=_manual-webhook-trigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_manual-webhook-trigger.js","sourceRoot":"","sources":["../../../src/triggers/_manual-webhook-trigger.ts"],"names":[],"mappings":";;AAUA,gEAuBC;;AAjCD,qEAA0F;AAC1F,kCAAsC;AAStC,SAAgB,0BAA0B,CAAC,IAA8B;;IACvE,OAAO,IAAA,gCAAa,EAAC;QACnB,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,IAAI,EAAE,kBAAW;QACjB,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,WAAW,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE;QAClC,IAAI,EAAE,kCAAe,CAAC,OAAO;QAC7B,KAAK,EAAE;YACL,WAAW,EAAE,2BAAQ,CAAC,QAAQ,CAAC;gBAC7B,KAAK,EAAG,sLAAsL;aAC/L,CAAC;SACH;QACD,UAAU,EAAE,MAAA,IAAI,CAAC,UAAU,mCAAI,EAAE;QAC3B,QAAQ;;gBACZ,iEAAiE;YACnE,CAAC;SAAA;QACK,SAAS;;gBACb,yCAAyC;YAC3C,CAAC;SAAA;QACK,GAAG,CAAC,OAAO;;gBACf,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAChC,CAAC;SAAA;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const accountCreatedTrigger: import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
+
}>, {
|
|
6
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
7
|
+
}> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
8
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
9
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
10
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
+
}>, {
|
|
12
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
13
|
+
}> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
14
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
15
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
16
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
17
|
+
}>, {
|
|
18
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
19
|
+
}> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
20
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
21
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
22
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
23
|
+
}>, {
|
|
24
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
25
|
+
}>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.accountCreatedTrigger = void 0;
|
|
4
|
+
const _manual_webhook_trigger_1 = require("./_manual-webhook-trigger");
|
|
5
|
+
exports.accountCreatedTrigger = (0, _manual_webhook_trigger_1.createManualWebhookTrigger)({
|
|
6
|
+
name: 'account_created',
|
|
7
|
+
displayName: 'Account Created',
|
|
8
|
+
description: 'Triggers when a new account is created in Outseta.',
|
|
9
|
+
sampleData: {
|
|
10
|
+
Name: 'Example Company',
|
|
11
|
+
IsDemo: false,
|
|
12
|
+
AccountStage: 2,
|
|
13
|
+
AccountStageLabel: 'Trialing',
|
|
14
|
+
PersonAccount: [
|
|
15
|
+
{
|
|
16
|
+
Person: {
|
|
17
|
+
Email: 'user@example.com',
|
|
18
|
+
FirstName: 'Jane',
|
|
19
|
+
LastName: 'Doe',
|
|
20
|
+
FullName: 'Jane Doe',
|
|
21
|
+
Uid: 'per_example',
|
|
22
|
+
Created: '2024-01-01T00:00:00',
|
|
23
|
+
Updated: '2024-01-01T00:00:00',
|
|
24
|
+
},
|
|
25
|
+
IsPrimary: true,
|
|
26
|
+
Uid: 'pa_example',
|
|
27
|
+
Created: '2024-01-01T00:00:00',
|
|
28
|
+
Updated: '2024-01-01T00:00:00',
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
Subscriptions: [],
|
|
32
|
+
Deals: [],
|
|
33
|
+
Uid: 'acc_example',
|
|
34
|
+
Created: '2024-01-01T00:00:00',
|
|
35
|
+
Updated: '2024-01-01T00:00:00',
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=account-created.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-created.js","sourceRoot":"","sources":["../../../src/triggers/account-created.ts"],"names":[],"mappings":";;;AAAA,uEAAuE;AAE1D,QAAA,qBAAqB,GAAG,IAAA,oDAA0B,EAAC;IAC9D,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,iBAAiB;IAC9B,WAAW,EAAE,oDAAoD;IACjE,UAAU,EAAE;QACV,IAAI,EAAE,iBAAiB;QACvB,MAAM,EAAE,KAAK;QACb,YAAY,EAAE,CAAC;QACf,iBAAiB,EAAE,UAAU;QAC7B,aAAa,EAAE;YACb;gBACE,MAAM,EAAE;oBACN,KAAK,EAAE,kBAAkB;oBACzB,SAAS,EAAE,MAAM;oBACjB,QAAQ,EAAE,KAAK;oBACf,QAAQ,EAAE,UAAU;oBACpB,GAAG,EAAE,aAAa;oBAClB,OAAO,EAAE,qBAAqB;oBAC9B,OAAO,EAAE,qBAAqB;iBAC/B;gBACD,SAAS,EAAE,IAAI;gBACf,GAAG,EAAE,YAAY;gBACjB,OAAO,EAAE,qBAAqB;gBAC9B,OAAO,EAAE,qBAAqB;aAC/B;SACF;QACD,aAAa,EAAE,EAAE;QACjB,KAAK,EAAE,EAAE;QACT,GAAG,EAAE,aAAa;QAClB,OAAO,EAAE,qBAAqB;QAC9B,OAAO,EAAE,qBAAqB;KAC/B;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const accountUpdatedTrigger: import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
+
}>, {
|
|
6
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
7
|
+
}> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
8
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
9
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
10
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
+
}>, {
|
|
12
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
13
|
+
}> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
14
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
15
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
16
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
17
|
+
}>, {
|
|
18
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
19
|
+
}> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
20
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
21
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
22
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
23
|
+
}>, {
|
|
24
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
25
|
+
}>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.accountUpdatedTrigger = void 0;
|
|
4
|
+
const _manual_webhook_trigger_1 = require("./_manual-webhook-trigger");
|
|
5
|
+
exports.accountUpdatedTrigger = (0, _manual_webhook_trigger_1.createManualWebhookTrigger)({
|
|
6
|
+
name: 'account_updated',
|
|
7
|
+
displayName: 'Account Updated',
|
|
8
|
+
description: 'Triggers when an existing account is updated in Outseta.',
|
|
9
|
+
sampleData: {
|
|
10
|
+
Name: 'Example Company',
|
|
11
|
+
IsDemo: false,
|
|
12
|
+
AccountStage: 3,
|
|
13
|
+
AccountStageLabel: 'Subscribing',
|
|
14
|
+
PersonAccount: [
|
|
15
|
+
{
|
|
16
|
+
Person: {
|
|
17
|
+
Email: 'user@example.com',
|
|
18
|
+
FirstName: 'Jane',
|
|
19
|
+
LastName: 'Doe',
|
|
20
|
+
FullName: 'Jane Doe',
|
|
21
|
+
Uid: 'per_example',
|
|
22
|
+
Created: '2024-01-01T00:00:00',
|
|
23
|
+
Updated: '2024-01-02T00:00:00',
|
|
24
|
+
},
|
|
25
|
+
IsPrimary: true,
|
|
26
|
+
Uid: 'pa_example',
|
|
27
|
+
Created: '2024-01-01T00:00:00',
|
|
28
|
+
Updated: '2024-01-02T00:00:00',
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
Subscriptions: [],
|
|
32
|
+
Deals: [],
|
|
33
|
+
Uid: 'acc_example',
|
|
34
|
+
Created: '2024-01-01T00:00:00',
|
|
35
|
+
Updated: '2024-01-02T00:00:00',
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=account-updated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-updated.js","sourceRoot":"","sources":["../../../src/triggers/account-updated.ts"],"names":[],"mappings":";;;AAAA,uEAAuE;AAE1D,QAAA,qBAAqB,GAAG,IAAA,oDAA0B,EAAC;IAC9D,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,iBAAiB;IAC9B,WAAW,EAAE,0DAA0D;IACvE,UAAU,EAAE;QACV,IAAI,EAAE,iBAAiB;QACvB,MAAM,EAAE,KAAK;QACb,YAAY,EAAE,CAAC;QACf,iBAAiB,EAAE,aAAa;QAChC,aAAa,EAAE;YACb;gBACE,MAAM,EAAE;oBACN,KAAK,EAAE,kBAAkB;oBACzB,SAAS,EAAE,MAAM;oBACjB,QAAQ,EAAE,KAAK;oBACf,QAAQ,EAAE,UAAU;oBACpB,GAAG,EAAE,aAAa;oBAClB,OAAO,EAAE,qBAAqB;oBAC9B,OAAO,EAAE,qBAAqB;iBAC/B;gBACD,SAAS,EAAE,IAAI;gBACf,GAAG,EAAE,YAAY;gBACjB,OAAO,EAAE,qBAAqB;gBAC9B,OAAO,EAAE,qBAAqB;aAC/B;SACF;QACD,aAAa,EAAE,EAAE;QACjB,KAAK,EAAE,EAAE;QACT,GAAG,EAAE,aAAa;QAClB,OAAO,EAAE,qBAAqB;QAC9B,OAAO,EAAE,qBAAqB;KAC/B;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const invoicePaidTrigger: import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
+
}>, {
|
|
6
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
7
|
+
}> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
8
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
9
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
10
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
+
}>, {
|
|
12
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
13
|
+
}> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
14
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
15
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
16
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
17
|
+
}>, {
|
|
18
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
19
|
+
}> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
20
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
21
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
22
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
23
|
+
}>, {
|
|
24
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
25
|
+
}>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.invoicePaidTrigger = void 0;
|
|
4
|
+
const _manual_webhook_trigger_1 = require("./_manual-webhook-trigger");
|
|
5
|
+
exports.invoicePaidTrigger = (0, _manual_webhook_trigger_1.createManualWebhookTrigger)({
|
|
6
|
+
name: 'invoice_paid',
|
|
7
|
+
displayName: 'Invoice Paid',
|
|
8
|
+
description: 'Triggers when an invoice is paid in Outseta.',
|
|
9
|
+
sampleData: {
|
|
10
|
+
Number: 1001,
|
|
11
|
+
BillingInvoiceDate: '2024-01-01T00:00:00',
|
|
12
|
+
DueDate: '2024-01-01T00:00:00',
|
|
13
|
+
Total: 4900,
|
|
14
|
+
Subtotal: 4900,
|
|
15
|
+
Tax: 0,
|
|
16
|
+
AmountOutstanding: 0,
|
|
17
|
+
Status: 1,
|
|
18
|
+
Account: {
|
|
19
|
+
Name: 'Example Company',
|
|
20
|
+
AccountStage: 3,
|
|
21
|
+
AccountStageLabel: 'Subscribing',
|
|
22
|
+
Uid: 'acc_example',
|
|
23
|
+
},
|
|
24
|
+
Uid: 'inv_example',
|
|
25
|
+
Created: '2024-01-01T00:00:00',
|
|
26
|
+
Updated: '2024-01-01T00:00:00',
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=invoice-paid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice-paid.js","sourceRoot":"","sources":["../../../src/triggers/invoice-paid.ts"],"names":[],"mappings":";;;AAAA,uEAAuE;AAE1D,QAAA,kBAAkB,GAAG,IAAA,oDAA0B,EAAC;IAC3D,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,8CAA8C;IAC3D,UAAU,EAAE;QACV,MAAM,EAAE,IAAI;QACZ,kBAAkB,EAAE,qBAAqB;QACzC,OAAO,EAAE,qBAAqB;QAC9B,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,IAAI;QACd,GAAG,EAAE,CAAC;QACN,iBAAiB,EAAE,CAAC;QACpB,MAAM,EAAE,CAAC;QACT,OAAO,EAAE;YACP,IAAI,EAAE,iBAAiB;YACvB,YAAY,EAAE,CAAC;YACf,iBAAiB,EAAE,aAAa;YAChC,GAAG,EAAE,aAAa;SACnB;QACD,GAAG,EAAE,aAAa;QAClB,OAAO,EAAE,qBAAqB;QAC9B,OAAO,EAAE,qBAAqB;KAC/B;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const paymentSucceededTrigger: import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
+
}>, {
|
|
6
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
7
|
+
}> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
8
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
9
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
10
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
+
}>, {
|
|
12
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
13
|
+
}> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
14
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
15
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
16
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
17
|
+
}>, {
|
|
18
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
19
|
+
}> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
20
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
21
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
22
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
23
|
+
}>, {
|
|
24
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
25
|
+
}>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paymentSucceededTrigger = void 0;
|
|
4
|
+
const _manual_webhook_trigger_1 = require("./_manual-webhook-trigger");
|
|
5
|
+
exports.paymentSucceededTrigger = (0, _manual_webhook_trigger_1.createManualWebhookTrigger)({
|
|
6
|
+
name: 'payment_succeeded',
|
|
7
|
+
displayName: 'Payment Succeeded',
|
|
8
|
+
description: 'Triggers when a payment is successfully processed in Outseta.',
|
|
9
|
+
sampleData: {
|
|
10
|
+
Amount: 4900,
|
|
11
|
+
PaymentDate: '2024-01-01T00:00:00',
|
|
12
|
+
TransactionId: 'txn_example',
|
|
13
|
+
Status: 1,
|
|
14
|
+
Account: {
|
|
15
|
+
Name: 'Example Company',
|
|
16
|
+
AccountStage: 3,
|
|
17
|
+
AccountStageLabel: 'Subscribing',
|
|
18
|
+
Uid: 'acc_example',
|
|
19
|
+
},
|
|
20
|
+
Uid: 'pay_example',
|
|
21
|
+
Created: '2024-01-01T00:00:00',
|
|
22
|
+
Updated: '2024-01-01T00:00:00',
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=payment-succeeded.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-succeeded.js","sourceRoot":"","sources":["../../../src/triggers/payment-succeeded.ts"],"names":[],"mappings":";;;AAAA,uEAAuE;AAE1D,QAAA,uBAAuB,GAAG,IAAA,oDAA0B,EAAC;IAChE,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,mBAAmB;IAChC,WAAW,EAAE,+DAA+D;IAC5E,UAAU,EAAE;QACV,MAAM,EAAE,IAAI;QACZ,WAAW,EAAE,qBAAqB;QAClC,aAAa,EAAE,aAAa;QAC5B,MAAM,EAAE,CAAC;QACT,OAAO,EAAE;YACP,IAAI,EAAE,iBAAiB;YACvB,YAAY,EAAE,CAAC;YACf,iBAAiB,EAAE,aAAa;YAChC,GAAG,EAAE,aAAa;SACnB;QACD,GAAG,EAAE,aAAa;QAClB,OAAO,EAAE,qBAAqB;QAC9B,OAAO,EAAE,qBAAqB;KAC/B;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const personCreatedTrigger: import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
+
}>, {
|
|
6
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
7
|
+
}> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
8
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
9
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
10
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
+
}>, {
|
|
12
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
13
|
+
}> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
14
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
15
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
16
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
17
|
+
}>, {
|
|
18
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
19
|
+
}> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
20
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
21
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
22
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
23
|
+
}>, {
|
|
24
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
25
|
+
}>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.personCreatedTrigger = void 0;
|
|
4
|
+
const _manual_webhook_trigger_1 = require("./_manual-webhook-trigger");
|
|
5
|
+
exports.personCreatedTrigger = (0, _manual_webhook_trigger_1.createManualWebhookTrigger)({
|
|
6
|
+
name: 'person_created',
|
|
7
|
+
displayName: 'Person Created',
|
|
8
|
+
description: 'Triggers when a new person (contact) is created in Outseta.',
|
|
9
|
+
sampleData: {
|
|
10
|
+
Email: 'user@example.com',
|
|
11
|
+
FirstName: 'Jane',
|
|
12
|
+
LastName: 'Doe',
|
|
13
|
+
FullName: 'Jane Doe',
|
|
14
|
+
PhoneMobile: '',
|
|
15
|
+
PhoneWork: '',
|
|
16
|
+
Title: '',
|
|
17
|
+
OAuthIntegrationStatus: 0,
|
|
18
|
+
Uid: 'per_example',
|
|
19
|
+
Created: '2024-01-01T00:00:00',
|
|
20
|
+
Updated: '2024-01-01T00:00:00',
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=person-created.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"person-created.js","sourceRoot":"","sources":["../../../src/triggers/person-created.ts"],"names":[],"mappings":";;;AAAA,uEAAuE;AAE1D,QAAA,oBAAoB,GAAG,IAAA,oDAA0B,EAAC;IAC7D,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EAAE,6DAA6D;IAC1E,UAAU,EAAE;QACV,KAAK,EAAE,kBAAkB;QACzB,SAAS,EAAE,MAAM;QACjB,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,UAAU;QACpB,WAAW,EAAE,EAAE;QACf,SAAS,EAAE,EAAE;QACb,KAAK,EAAE,EAAE;QACT,sBAAsB,EAAE,CAAC;QACzB,GAAG,EAAE,aAAa;QAClB,OAAO,EAAE,qBAAqB;QAC9B,OAAO,EAAE,qBAAqB;KAC/B;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const personUpdatedTrigger: import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
+
}>, {
|
|
6
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
7
|
+
}> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
8
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
9
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
10
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
+
}>, {
|
|
12
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
13
|
+
}> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
14
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
15
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
16
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
17
|
+
}>, {
|
|
18
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
19
|
+
}> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
20
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
21
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
22
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
23
|
+
}>, {
|
|
24
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
25
|
+
}>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.personUpdatedTrigger = void 0;
|
|
4
|
+
const _manual_webhook_trigger_1 = require("./_manual-webhook-trigger");
|
|
5
|
+
exports.personUpdatedTrigger = (0, _manual_webhook_trigger_1.createManualWebhookTrigger)({
|
|
6
|
+
name: 'person_updated',
|
|
7
|
+
displayName: 'Person Updated',
|
|
8
|
+
description: 'Triggers when an existing person (contact) is updated in Outseta.',
|
|
9
|
+
sampleData: {
|
|
10
|
+
Email: 'user@example.com',
|
|
11
|
+
FirstName: 'Jane',
|
|
12
|
+
LastName: 'Doe',
|
|
13
|
+
FullName: 'Jane Doe',
|
|
14
|
+
PhoneMobile: '+1234567890',
|
|
15
|
+
PhoneWork: '',
|
|
16
|
+
Title: 'CEO',
|
|
17
|
+
OAuthIntegrationStatus: 0,
|
|
18
|
+
Uid: 'per_example',
|
|
19
|
+
Created: '2024-01-01T00:00:00',
|
|
20
|
+
Updated: '2024-01-02T00:00:00',
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=person-updated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"person-updated.js","sourceRoot":"","sources":["../../../src/triggers/person-updated.ts"],"names":[],"mappings":";;;AAAA,uEAAuE;AAE1D,QAAA,oBAAoB,GAAG,IAAA,oDAA0B,EAAC;IAC7D,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EAAE,mEAAmE;IAChF,UAAU,EAAE;QACV,KAAK,EAAE,kBAAkB;QACzB,SAAS,EAAE,MAAM;QACjB,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,UAAU;QACpB,WAAW,EAAE,aAAa;QAC1B,SAAS,EAAE,EAAE;QACb,KAAK,EAAE,KAAK;QACZ,sBAAsB,EAAE,CAAC;QACzB,GAAG,EAAE,aAAa;QAClB,OAAO,EAAE,qBAAqB;QAC9B,OAAO,EAAE,qBAAqB;KAC/B;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const subscriptionCreatedTrigger: import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
+
}>, {
|
|
6
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
7
|
+
}> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
8
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
9
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
10
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
+
}>, {
|
|
12
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
13
|
+
}> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
14
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
15
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
16
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
17
|
+
}>, {
|
|
18
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
19
|
+
}> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
20
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
21
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
22
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
23
|
+
}>, {
|
|
24
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
25
|
+
}>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.subscriptionCreatedTrigger = void 0;
|
|
4
|
+
const _manual_webhook_trigger_1 = require("./_manual-webhook-trigger");
|
|
5
|
+
exports.subscriptionCreatedTrigger = (0, _manual_webhook_trigger_1.createManualWebhookTrigger)({
|
|
6
|
+
name: 'subscription_created',
|
|
7
|
+
displayName: 'Subscription Created',
|
|
8
|
+
description: 'Triggers when a new subscription is created in Outseta.',
|
|
9
|
+
sampleData: {
|
|
10
|
+
BillingRenewalTerm: 1,
|
|
11
|
+
Quantity: 1,
|
|
12
|
+
StartDate: '2024-01-01T00:00:00',
|
|
13
|
+
RenewalDate: '2024-02-01T00:00:00',
|
|
14
|
+
NewRequiredQuantity: 0,
|
|
15
|
+
IsPlanUpgradeRequired: false,
|
|
16
|
+
IsPlanUpgradeRequiredStatus: 0,
|
|
17
|
+
Account: {
|
|
18
|
+
Name: 'Example Company',
|
|
19
|
+
AccountStage: 3,
|
|
20
|
+
AccountStageLabel: 'Subscribing',
|
|
21
|
+
Uid: 'acc_example',
|
|
22
|
+
},
|
|
23
|
+
Uid: 'sub_example',
|
|
24
|
+
Created: '2024-01-01T00:00:00',
|
|
25
|
+
Updated: '2024-01-01T00:00:00',
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=subscription-created.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription-created.js","sourceRoot":"","sources":["../../../src/triggers/subscription-created.ts"],"names":[],"mappings":";;;AAAA,uEAAuE;AAE1D,QAAA,0BAA0B,GAAG,IAAA,oDAA0B,EAAC;IACnE,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,sBAAsB;IACnC,WAAW,EAAE,yDAAyD;IACtE,UAAU,EAAE;QACV,kBAAkB,EAAE,CAAC;QACrB,QAAQ,EAAE,CAAC;QACX,SAAS,EAAE,qBAAqB;QAChC,WAAW,EAAE,qBAAqB;QAClC,mBAAmB,EAAE,CAAC;QACtB,qBAAqB,EAAE,KAAK;QAC5B,2BAA2B,EAAE,CAAC;QAC9B,OAAO,EAAE;YACP,IAAI,EAAE,iBAAiB;YACvB,YAAY,EAAE,CAAC;YACf,iBAAiB,EAAE,aAAa;YAChC,GAAG,EAAE,aAAa;SACnB;QACD,GAAG,EAAE,aAAa;QAClB,OAAO,EAAE,qBAAqB;QAC9B,OAAO,EAAE,qBAAqB;KAC/B;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const subscriptionUpdatedTrigger: import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
+
}>, {
|
|
6
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
7
|
+
}> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
8
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
9
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
10
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
+
}>, {
|
|
12
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
13
|
+
}> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
14
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
15
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
16
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
17
|
+
}>, {
|
|
18
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
19
|
+
}> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
20
|
+
domain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
21
|
+
apiKey: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
22
|
+
apiSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
23
|
+
}>, {
|
|
24
|
+
instruction: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
25
|
+
}>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.subscriptionUpdatedTrigger = void 0;
|
|
4
|
+
const _manual_webhook_trigger_1 = require("./_manual-webhook-trigger");
|
|
5
|
+
exports.subscriptionUpdatedTrigger = (0, _manual_webhook_trigger_1.createManualWebhookTrigger)({
|
|
6
|
+
name: 'subscription_updated',
|
|
7
|
+
displayName: 'Subscription Updated',
|
|
8
|
+
description: 'Triggers when an existing subscription is updated in Outseta.',
|
|
9
|
+
sampleData: {
|
|
10
|
+
BillingRenewalTerm: 1,
|
|
11
|
+
Quantity: 2,
|
|
12
|
+
StartDate: '2024-01-01T00:00:00',
|
|
13
|
+
RenewalDate: '2024-02-01T00:00:00',
|
|
14
|
+
NewRequiredQuantity: 0,
|
|
15
|
+
IsPlanUpgradeRequired: false,
|
|
16
|
+
IsPlanUpgradeRequiredStatus: 0,
|
|
17
|
+
Account: {
|
|
18
|
+
Name: 'Example Company',
|
|
19
|
+
AccountStage: 3,
|
|
20
|
+
AccountStageLabel: 'Subscribing',
|
|
21
|
+
Uid: 'acc_example',
|
|
22
|
+
},
|
|
23
|
+
Uid: 'sub_example',
|
|
24
|
+
Created: '2024-01-01T00:00:00',
|
|
25
|
+
Updated: '2024-01-15T00:00:00',
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=subscription-updated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription-updated.js","sourceRoot":"","sources":["../../../src/triggers/subscription-updated.ts"],"names":[],"mappings":";;;AAAA,uEAAuE;AAE1D,QAAA,0BAA0B,GAAG,IAAA,oDAA0B,EAAC;IACnE,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,sBAAsB;IACnC,WAAW,EAAE,+DAA+D;IAC5E,UAAU,EAAE;QACV,kBAAkB,EAAE,CAAC;QACrB,QAAQ,EAAE,CAAC;QACX,SAAS,EAAE,qBAAqB;QAChC,WAAW,EAAE,qBAAqB;QAClC,mBAAmB,EAAE,CAAC;QACtB,qBAAqB,EAAE,KAAK;QAC5B,2BAA2B,EAAE,CAAC;QAC9B,OAAO,EAAE;YACP,IAAI,EAAE,iBAAiB;YACvB,YAAY,EAAE,CAAC;YACf,iBAAiB,EAAE,aAAa;YAChC,GAAG,EAAE,aAAa;SACnB;QACD,GAAG,EAAE,aAAa;QAClB,OAAO,EAAE,qBAAqB;QAC9B,OAAO,EAAE,qBAAqB;KAC/B;CACF,CAAC,CAAC"}
|