@frogbotai/piece-stripe 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +32 -23
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type PieceFactoryConfig } from
|
|
1
|
+
import { type PieceFactoryConfig } from 'frogbot/pieces';
|
|
2
2
|
export declare const stripeActions: readonly ["create_customer", "search_customer", "retrieve_customer", "update_customer", "create_invoice", "retrieve_invoice", "create_payment_link", "create_refund"];
|
|
3
3
|
export declare const stripeScopes: readonly [];
|
|
4
4
|
export declare function createStripe(config?: PieceFactoryConfig): import("frogbot/pieces").Piece & {
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAElF,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAElF,eAAO,MAAM,aAAa,uKAShB,CAAC;AACX,eAAO,MAAM,YAAY,aAAc,CAAC;AAExC,wBAAgB,YAAY,CAAC,MAAM,CAAC,EAAE,kBAAkB;IAUpD,mDAAmD;;IAEnD,kDAAkD;;IAElD,gEAAgE;;IAEhE,oIAAoI;;IAEpI,6DAA6D;;IAE7D,8DAA8D;;IAE9D,6FAA6F;;IAE7F,6DAA6D;;IAE7D,uFAAuF;;IAEvF,4FAA4F;;IAE5F,4HAA4H;;IAE5H,mFAAmF;;IAEnF,gFAAgF;;IAEhF,sEAAsE;;IAEtE,oHAAoH;;IAEpH,iGAAiG;;IAEjG,+GAA+G;;IAE/G,uDAAuD;;IAEvD,qEAAqE;;EAGxE"}
|
package/dist/index.js
CHANGED
|
@@ -1,55 +1,64 @@
|
|
|
1
1
|
import * as module from '@activepieces/piece-stripe';
|
|
2
|
-
import { createActivepiecesPiece } from
|
|
3
|
-
export const stripeActions = [
|
|
2
|
+
import { createActivepiecesPiece } from 'frogbot/pieces';
|
|
3
|
+
export const stripeActions = [
|
|
4
|
+
'create_customer',
|
|
5
|
+
'search_customer',
|
|
6
|
+
'retrieve_customer',
|
|
7
|
+
'update_customer',
|
|
8
|
+
'create_invoice',
|
|
9
|
+
'retrieve_invoice',
|
|
10
|
+
'create_payment_link',
|
|
11
|
+
'create_refund',
|
|
12
|
+
];
|
|
4
13
|
export const stripeScopes = [];
|
|
5
14
|
export function createStripe(config) {
|
|
6
15
|
const piece = createActivepiecesPiece({
|
|
7
16
|
module: module,
|
|
8
|
-
service:
|
|
9
|
-
credentialType:
|
|
17
|
+
service: 'stripe',
|
|
18
|
+
credentialType: 'secret_text',
|
|
10
19
|
defaultActions: stripeActions,
|
|
11
20
|
scopes: stripeScopes,
|
|
12
21
|
config,
|
|
13
22
|
});
|
|
14
23
|
return Object.assign(piece, {
|
|
15
24
|
/** Create Customer: Create a customer in stripe */
|
|
16
|
-
createCustomer: piece.tool(
|
|
25
|
+
createCustomer: piece.tool('create_customer'),
|
|
17
26
|
/** Create Invoice: Create an Invoice in stripe */
|
|
18
|
-
createInvoice: piece.tool(
|
|
27
|
+
createInvoice: piece.tool('create_invoice'),
|
|
19
28
|
/** Search Customer: Search for a customer in stripe by email */
|
|
20
|
-
searchCustomer: piece.tool(
|
|
29
|
+
searchCustomer: piece.tool('search_customer'),
|
|
21
30
|
/** Search Subscriptions: Search for subscriptions by price ID, status, customer ID and other filters, including customer details */
|
|
22
|
-
searchSubscriptions: piece.tool(
|
|
31
|
+
searchSubscriptions: piece.tool('search_subscriptions'),
|
|
23
32
|
/** Retrieve Customer: Retrieve a customer in stripe by id */
|
|
24
|
-
retrieveCustomer: piece.tool(
|
|
33
|
+
retrieveCustomer: piece.tool('retrieve_customer'),
|
|
25
34
|
/** Update Customer: Modify an existing customer’s details. */
|
|
26
|
-
updateCustomer: piece.tool(
|
|
35
|
+
updateCustomer: piece.tool('update_customer'),
|
|
27
36
|
/** Create Payment (Payment Intent): Creates a new payment intent to start a payment flow. */
|
|
28
|
-
createPaymentIntent: piece.tool(
|
|
37
|
+
createPaymentIntent: piece.tool('create_payment_intent'),
|
|
29
38
|
/** Create Product: Create a new product object in Stripe. */
|
|
30
|
-
createProduct: piece.tool(
|
|
39
|
+
createProduct: piece.tool('create_product'),
|
|
31
40
|
/** Create Price: Create a price (one-time or recurring), associated with a product. */
|
|
32
|
-
createPrice: piece.tool(
|
|
41
|
+
createPrice: piece.tool('create_price'),
|
|
33
42
|
/** Create Subscription: Start a subscription for a customer with specified items/prices. */
|
|
34
|
-
createSubscription: piece.tool(
|
|
43
|
+
createSubscription: piece.tool('create_subscription'),
|
|
35
44
|
/** Cancel Subscription: Cancel an existing subscription, either immediately or at the end of the current billing period. */
|
|
36
|
-
cancelSubscription: piece.tool(
|
|
45
|
+
cancelSubscription: piece.tool('cancel_subscription'),
|
|
37
46
|
/** Retrieve an Invoice: Retrieves the details of an existing invoice by its ID. */
|
|
38
|
-
retrieveInvoice: piece.tool(
|
|
47
|
+
retrieveInvoice: piece.tool('retrieve_invoice'),
|
|
39
48
|
/** Retrieve a Payout: Retrieves the details of an existing payout by its ID. */
|
|
40
|
-
retrievePayout: piece.tool(
|
|
49
|
+
retrievePayout: piece.tool('retrieve_payout'),
|
|
41
50
|
/** Create a Refund: Create a full or partial refund for a payment. */
|
|
42
|
-
createRefund: piece.tool(
|
|
51
|
+
createRefund: piece.tool('create_refund'),
|
|
43
52
|
/** Create Payment Link: Creates a shareable, Stripe-hosted payment link for one-time purchases or subscriptions. */
|
|
44
|
-
createPaymentLink: piece.tool(
|
|
53
|
+
createPaymentLink: piece.tool('create_payment_link'),
|
|
45
54
|
/** Deactivate Payment Link: Disable or deactivate a Payment Link so it can no longer be used. */
|
|
46
|
-
deactivatePaymentLink: piece.tool(
|
|
55
|
+
deactivatePaymentLink: piece.tool('deactivate_payment_link'),
|
|
47
56
|
/** Find Payment (by Payment Intent ID): Retrieves the details of a payment by its unique Payment Intent ID. */
|
|
48
|
-
retrievePaymentIntent: piece.tool(
|
|
57
|
+
retrievePaymentIntent: piece.tool('retrieve_payment_intent'),
|
|
49
58
|
/** Find Invoice: Finds an invoice by its unique ID. */
|
|
50
|
-
findInvoice: piece.tool(
|
|
59
|
+
findInvoice: piece.tool('find_invoice'),
|
|
51
60
|
/** Custom API Call: Make a custom API call to a specific endpoint */
|
|
52
|
-
customApiCall: piece.tool(
|
|
61
|
+
customApiCall: piece.tool('custom_api_call'),
|
|
53
62
|
});
|
|
54
63
|
}
|
|
55
64
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAA2B,MAAM,gBAAgB,CAAC;AAElF,MAAM,CAAC,MAAM,aAAa,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAA2B,MAAM,gBAAgB,CAAC;AAElF,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,iBAAiB;IACjB,iBAAiB;IACjB,mBAAmB;IACnB,iBAAiB;IACjB,gBAAgB;IAChB,kBAAkB;IAClB,qBAAqB;IACrB,eAAe;CACP,CAAC;AACX,MAAM,CAAC,MAAM,YAAY,GAAG,EAAW,CAAC;AAExC,MAAM,UAAU,YAAY,CA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AK,CAAC,IAAI,CAAC,eAAe,CAAC;QACzC,oHAAoH;QACpH,iBAAiB,EAAE,KAAK,CAAC,IAAI,CAAC,qBAAqB,CAAC;QACpD,iGAAiG;QACjG,qBAAqB,EAAE,KAAK,CAAC,IAAI,CAAC,yBAAyB,CAAC;QAC5D,+GAA+G;QAC/G,qBAAqB,EAAE,KAAK,CAAC,IAAI,CAAC,yBAAyB,CAAC;QAC5D,uDAAuD;QACvD,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC;QACvC,qEAAqE;QACrE,aAAa,EAAE,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC;KAC7C,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frogbotai/piece-stripe",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Stripe tools for FrogBot.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Colby Gilbert",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"@activepieces/piece-stripe": "0.6.10"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"frogbot": "0.
|
|
25
|
+
"frogbot": "0.17.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"typescript": "5.6.2",
|
|
29
|
-
"frogbot": "0.
|
|
29
|
+
"frogbot": "0.17.0"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|