@keystrokehq/piggy 0.1.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/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/claim-anonymous-contact.cjs +26 -0
- package/dist/actions/claim-anonymous-contact.cjs.map +1 -0
- package/dist/actions/claim-anonymous-contact.d.cts +9 -0
- package/dist/actions/claim-anonymous-contact.d.cts.map +1 -0
- package/dist/actions/claim-anonymous-contact.d.mts +9 -0
- package/dist/actions/claim-anonymous-contact.d.mts.map +1 -0
- package/dist/actions/claim-anonymous-contact.mjs +25 -0
- package/dist/actions/claim-anonymous-contact.mjs.map +1 -0
- package/dist/actions/create-contact-attribute.cjs +65 -0
- package/dist/actions/create-contact-attribute.cjs.map +1 -0
- package/dist/actions/create-contact-attribute.d.cts +9 -0
- package/dist/actions/create-contact-attribute.d.cts.map +1 -0
- package/dist/actions/create-contact-attribute.d.mts +9 -0
- package/dist/actions/create-contact-attribute.d.mts.map +1 -0
- package/dist/actions/create-contact-attribute.mjs +64 -0
- package/dist/actions/create-contact-attribute.mjs.map +1 -0
- package/dist/actions/create-credit-reception.cjs +24 -0
- package/dist/actions/create-credit-reception.cjs.map +1 -0
- package/dist/actions/create-credit-reception.d.cts +9 -0
- package/dist/actions/create-credit-reception.d.cts.map +1 -0
- package/dist/actions/create-credit-reception.d.mts +9 -0
- package/dist/actions/create-credit-reception.d.mts.map +1 -0
- package/dist/actions/create-credit-reception.mjs +21 -0
- package/dist/actions/create-credit-reception.mjs.map +1 -0
- package/dist/actions/create-vouchers-batch.cjs +36 -0
- package/dist/actions/create-vouchers-batch.cjs.map +1 -0
- package/dist/actions/create-vouchers-batch.d.cts +9 -0
- package/dist/actions/create-vouchers-batch.d.cts.map +1 -0
- package/dist/actions/create-vouchers-batch.d.mts +9 -0
- package/dist/actions/create-vouchers-batch.d.mts.map +1 -0
- package/dist/actions/create-vouchers-batch.mjs +35 -0
- package/dist/actions/create-vouchers-batch.mjs.map +1 -0
- package/dist/actions/find-or-create-products.cjs +38 -0
- package/dist/actions/find-or-create-products.cjs.map +1 -0
- package/dist/actions/find-or-create-products.d.cts +9 -0
- package/dist/actions/find-or-create-products.d.cts.map +1 -0
- package/dist/actions/find-or-create-products.d.mts +9 -0
- package/dist/actions/find-or-create-products.d.mts.map +1 -0
- package/dist/actions/find-or-create-products.mjs +37 -0
- package/dist/actions/find-or-create-products.mjs.map +1 -0
- package/dist/actions/find-voucher-by-code.cjs +45 -0
- package/dist/actions/find-voucher-by-code.cjs.map +1 -0
- package/dist/actions/find-voucher-by-code.d.cts +9 -0
- package/dist/actions/find-voucher-by-code.d.cts.map +1 -0
- package/dist/actions/find-voucher-by-code.d.mts +9 -0
- package/dist/actions/find-voucher-by-code.d.mts.map +1 -0
- package/dist/actions/find-voucher-by-code.mjs +44 -0
- package/dist/actions/find-voucher-by-code.mjs.map +1 -0
- package/dist/actions/get-contact-auth-token.cjs +20 -0
- package/dist/actions/get-contact-auth-token.cjs.map +1 -0
- package/dist/actions/get-contact-auth-token.d.cts +9 -0
- package/dist/actions/get-contact-auth-token.d.cts.map +1 -0
- package/dist/actions/get-contact-auth-token.d.mts +9 -0
- package/dist/actions/get-contact-auth-token.d.mts.map +1 -0
- package/dist/actions/get-contact-auth-token.mjs +19 -0
- package/dist/actions/get-contact-auth-token.mjs.map +1 -0
- package/dist/actions/get-contacts-credit-balance.cjs +20 -0
- package/dist/actions/get-contacts-credit-balance.cjs.map +1 -0
- package/dist/actions/get-contacts-credit-balance.d.cts +9 -0
- package/dist/actions/get-contacts-credit-balance.d.cts.map +1 -0
- package/dist/actions/get-contacts-credit-balance.d.mts +9 -0
- package/dist/actions/get-contacts-credit-balance.d.mts.map +1 -0
- package/dist/actions/get-contacts-credit-balance.mjs +19 -0
- package/dist/actions/get-contacts-credit-balance.mjs.map +1 -0
- package/dist/actions/index.cjs +29 -0
- package/dist/actions/index.d.cts +15 -0
- package/dist/actions/index.d.mts +15 -0
- package/dist/actions/index.mjs +15 -0
- package/dist/actions/list-forms.cjs +26 -0
- package/dist/actions/list-forms.cjs.map +1 -0
- package/dist/actions/list-forms.d.cts +9 -0
- package/dist/actions/list-forms.d.cts.map +1 -0
- package/dist/actions/list-forms.d.mts +9 -0
- package/dist/actions/list-forms.d.mts.map +1 -0
- package/dist/actions/list-forms.mjs +25 -0
- package/dist/actions/list-forms.mjs.map +1 -0
- package/dist/actions/list-perks.cjs +26 -0
- package/dist/actions/list-perks.cjs.map +1 -0
- package/dist/actions/list-perks.d.cts +9 -0
- package/dist/actions/list-perks.d.cts.map +1 -0
- package/dist/actions/list-perks.d.mts +9 -0
- package/dist/actions/list-perks.d.mts.map +1 -0
- package/dist/actions/list-perks.mjs +25 -0
- package/dist/actions/list-perks.mjs.map +1 -0
- package/dist/actions/merge-contacts.cjs +22 -0
- package/dist/actions/merge-contacts.cjs.map +1 -0
- package/dist/actions/merge-contacts.d.cts +9 -0
- package/dist/actions/merge-contacts.d.cts.map +1 -0
- package/dist/actions/merge-contacts.d.mts +9 -0
- package/dist/actions/merge-contacts.d.mts.map +1 -0
- package/dist/actions/merge-contacts.mjs +19 -0
- package/dist/actions/merge-contacts.mjs.map +1 -0
- package/dist/actions/send-contact-verification-email.cjs +23 -0
- package/dist/actions/send-contact-verification-email.cjs.map +1 -0
- package/dist/actions/send-contact-verification-email.d.cts +9 -0
- package/dist/actions/send-contact-verification-email.d.cts.map +1 -0
- package/dist/actions/send-contact-verification-email.d.mts +9 -0
- package/dist/actions/send-contact-verification-email.d.mts.map +1 -0
- package/dist/actions/send-contact-verification-email.mjs +22 -0
- package/dist/actions/send-contact-verification-email.mjs.map +1 -0
- package/dist/actions/update-bookings.cjs +35 -0
- package/dist/actions/update-bookings.cjs.map +1 -0
- package/dist/actions/update-bookings.d.cts +9 -0
- package/dist/actions/update-bookings.d.cts.map +1 -0
- package/dist/actions/update-bookings.d.mts +9 -0
- package/dist/actions/update-bookings.d.mts.map +1 -0
- package/dist/actions/update-bookings.mjs +32 -0
- package/dist/actions/update-bookings.mjs.map +1 -0
- package/dist/actions/update-contact-identifiers.cjs +30 -0
- package/dist/actions/update-contact-identifiers.cjs.map +1 -0
- package/dist/actions/update-contact-identifiers.d.cts +9 -0
- package/dist/actions/update-contact-identifiers.d.cts.map +1 -0
- package/dist/actions/update-contact-identifiers.d.mts +9 -0
- package/dist/actions/update-contact-identifiers.d.mts.map +1 -0
- package/dist/actions/update-contact-identifiers.mjs +29 -0
- package/dist/actions/update-contact-identifiers.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +34 -0
- package/dist/index.d.cts +17 -0
- package/dist/index.d.mts +17 -0
- package/dist/index.mjs +18 -0
- package/package.json +49 -0
package/dist/app.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,KAAA,6BAAK,GAAA,+BAAA,UAAA"}
|
package/dist/app.mjs
ADDED
package/dist/app.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const piggy = defineApp({\n slug: \"piggy\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,QAAQ,UAAU;CAC7B,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/catalog.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const piggyCatalog = {
|
|
4
|
+
"slug": "piggy",
|
|
5
|
+
"name": "Piggy",
|
|
6
|
+
"description": "Piggy offers cashback and loyalty program integrations for online stores, letting users earn points or discounts and encouraging repeat purchases",
|
|
7
|
+
"category": "Marketing Automation",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/piggy",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.piggyCatalog = piggyCatalog;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const piggyCatalog = {\n \"slug\": \"piggy\",\n \"name\": \"Piggy\",\n \"description\": \"Piggy offers cashback and loyalty program integrations for online stores, letting users earn points or discounts and encouraging repeat purchases\",\n \"category\": \"Marketing Automation\",\n \"logo\": \"https://logos.composio.dev/api/piggy\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,eAAe;CAC1B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const piggyCatalog: {
|
|
4
|
+
readonly slug: "piggy";
|
|
5
|
+
readonly name: "Piggy";
|
|
6
|
+
readonly description: "Piggy offers cashback and loyalty program integrations for online stores, letting users earn points or discounts and encouraging repeat purchases";
|
|
7
|
+
readonly category: "Marketing Automation";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/piggy";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { piggyCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,YAAA;EAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const piggyCatalog: {
|
|
4
|
+
readonly slug: "piggy";
|
|
5
|
+
readonly name: "Piggy";
|
|
6
|
+
readonly description: "Piggy offers cashback and loyalty program integrations for online stores, letting users earn points or discounts and encouraging repeat purchases";
|
|
7
|
+
readonly category: "Marketing Automation";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/piggy";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { piggyCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,YAAA;EAAA"}
|
package/dist/catalog.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const piggyCatalog = {
|
|
4
|
+
"slug": "piggy",
|
|
5
|
+
"name": "Piggy",
|
|
6
|
+
"description": "Piggy offers cashback and loyalty program integrations for online stores, letting users earn points or discounts and encouraging repeat purchases",
|
|
7
|
+
"category": "Marketing Automation",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/piggy",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { piggyCatalog };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const piggyCatalog = {\n \"slug\": \"piggy\",\n \"name\": \"Piggy\",\n \"description\": \"Piggy offers cashback and loyalty program integrations for online stores, letting users earn points or discounts and encouraging repeat purchases\",\n \"category\": \"Marketing Automation\",\n \"logo\": \"https://logos.composio.dev/api/piggy\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,eAAe;CAC1B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
package/dist/execute.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "piggy";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executePiggyTool(tool, args) {
|
|
7
|
+
const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.executePiggyTool = executePiggyTool;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"piggy\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executePiggyTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,iBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/execute.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "piggy";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executePiggyTool(tool, args) {
|
|
7
|
+
const { result } = await createKeystrokeClient().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { executePiggyTool };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"piggy\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executePiggyTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,iBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_app = require("./app.cjs");
|
|
3
|
+
const require_catalog = require("./catalog.cjs");
|
|
4
|
+
const require_claim_anonymous_contact = require("./actions/claim-anonymous-contact.cjs");
|
|
5
|
+
const require_create_contact_attribute = require("./actions/create-contact-attribute.cjs");
|
|
6
|
+
const require_create_credit_reception = require("./actions/create-credit-reception.cjs");
|
|
7
|
+
const require_create_vouchers_batch = require("./actions/create-vouchers-batch.cjs");
|
|
8
|
+
const require_find_or_create_products = require("./actions/find-or-create-products.cjs");
|
|
9
|
+
const require_find_voucher_by_code = require("./actions/find-voucher-by-code.cjs");
|
|
10
|
+
const require_get_contact_auth_token = require("./actions/get-contact-auth-token.cjs");
|
|
11
|
+
const require_get_contacts_credit_balance = require("./actions/get-contacts-credit-balance.cjs");
|
|
12
|
+
const require_list_forms = require("./actions/list-forms.cjs");
|
|
13
|
+
const require_list_perks = require("./actions/list-perks.cjs");
|
|
14
|
+
const require_merge_contacts = require("./actions/merge-contacts.cjs");
|
|
15
|
+
const require_send_contact_verification_email = require("./actions/send-contact-verification-email.cjs");
|
|
16
|
+
const require_update_bookings = require("./actions/update-bookings.cjs");
|
|
17
|
+
const require_update_contact_identifiers = require("./actions/update-contact-identifiers.cjs");
|
|
18
|
+
require("./actions/index.cjs");
|
|
19
|
+
exports.piggy = require_app.piggy;
|
|
20
|
+
exports.piggyCatalog = require_catalog.piggyCatalog;
|
|
21
|
+
exports.piggyClaimAnonymousContact = require_claim_anonymous_contact.piggyClaimAnonymousContact;
|
|
22
|
+
exports.piggyCreateContactAttribute = require_create_contact_attribute.piggyCreateContactAttribute;
|
|
23
|
+
exports.piggyCreateCreditReception = require_create_credit_reception.piggyCreateCreditReception;
|
|
24
|
+
exports.piggyCreateVouchersBatch = require_create_vouchers_batch.piggyCreateVouchersBatch;
|
|
25
|
+
exports.piggyFindOrCreateProducts = require_find_or_create_products.piggyFindOrCreateProducts;
|
|
26
|
+
exports.piggyFindVoucherByCode = require_find_voucher_by_code.piggyFindVoucherByCode;
|
|
27
|
+
exports.piggyGetContactAuthToken = require_get_contact_auth_token.piggyGetContactAuthToken;
|
|
28
|
+
exports.piggyGetContactsCreditBalance = require_get_contacts_credit_balance.piggyGetContactsCreditBalance;
|
|
29
|
+
exports.piggyListForms = require_list_forms.piggyListForms;
|
|
30
|
+
exports.piggyListPerks = require_list_perks.piggyListPerks;
|
|
31
|
+
exports.piggyMergeContacts = require_merge_contacts.piggyMergeContacts;
|
|
32
|
+
exports.piggySendContactVerificationEmail = require_send_contact_verification_email.piggySendContactVerificationEmail;
|
|
33
|
+
exports.piggyUpdateBookings = require_update_bookings.piggyUpdateBookings;
|
|
34
|
+
exports.piggyUpdateContactIdentifiers = require_update_contact_identifiers.piggyUpdateContactIdentifiers;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { piggyClaimAnonymousContact } from "./actions/claim-anonymous-contact.cjs";
|
|
2
|
+
import { piggyCreateContactAttribute } from "./actions/create-contact-attribute.cjs";
|
|
3
|
+
import { piggyCreateCreditReception } from "./actions/create-credit-reception.cjs";
|
|
4
|
+
import { piggyCreateVouchersBatch } from "./actions/create-vouchers-batch.cjs";
|
|
5
|
+
import { piggyFindOrCreateProducts } from "./actions/find-or-create-products.cjs";
|
|
6
|
+
import { piggyFindVoucherByCode } from "./actions/find-voucher-by-code.cjs";
|
|
7
|
+
import { piggyGetContactAuthToken } from "./actions/get-contact-auth-token.cjs";
|
|
8
|
+
import { piggyGetContactsCreditBalance } from "./actions/get-contacts-credit-balance.cjs";
|
|
9
|
+
import { piggyListForms } from "./actions/list-forms.cjs";
|
|
10
|
+
import { piggyListPerks } from "./actions/list-perks.cjs";
|
|
11
|
+
import { piggyMergeContacts } from "./actions/merge-contacts.cjs";
|
|
12
|
+
import { piggySendContactVerificationEmail } from "./actions/send-contact-verification-email.cjs";
|
|
13
|
+
import { piggyUpdateBookings } from "./actions/update-bookings.cjs";
|
|
14
|
+
import { piggyUpdateContactIdentifiers } from "./actions/update-contact-identifiers.cjs";
|
|
15
|
+
import { piggy } from "./app.cjs";
|
|
16
|
+
import { piggyCatalog } from "./catalog.cjs";
|
|
17
|
+
export { piggy, piggyCatalog, piggyClaimAnonymousContact, piggyCreateContactAttribute, piggyCreateCreditReception, piggyCreateVouchersBatch, piggyFindOrCreateProducts, piggyFindVoucherByCode, piggyGetContactAuthToken, piggyGetContactsCreditBalance, piggyListForms, piggyListPerks, piggyMergeContacts, piggySendContactVerificationEmail, piggyUpdateBookings, piggyUpdateContactIdentifiers };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { piggyClaimAnonymousContact } from "./actions/claim-anonymous-contact.mjs";
|
|
2
|
+
import { piggyCreateContactAttribute } from "./actions/create-contact-attribute.mjs";
|
|
3
|
+
import { piggyCreateCreditReception } from "./actions/create-credit-reception.mjs";
|
|
4
|
+
import { piggyCreateVouchersBatch } from "./actions/create-vouchers-batch.mjs";
|
|
5
|
+
import { piggyFindOrCreateProducts } from "./actions/find-or-create-products.mjs";
|
|
6
|
+
import { piggyFindVoucherByCode } from "./actions/find-voucher-by-code.mjs";
|
|
7
|
+
import { piggyGetContactAuthToken } from "./actions/get-contact-auth-token.mjs";
|
|
8
|
+
import { piggyGetContactsCreditBalance } from "./actions/get-contacts-credit-balance.mjs";
|
|
9
|
+
import { piggyListForms } from "./actions/list-forms.mjs";
|
|
10
|
+
import { piggyListPerks } from "./actions/list-perks.mjs";
|
|
11
|
+
import { piggyMergeContacts } from "./actions/merge-contacts.mjs";
|
|
12
|
+
import { piggySendContactVerificationEmail } from "./actions/send-contact-verification-email.mjs";
|
|
13
|
+
import { piggyUpdateBookings } from "./actions/update-bookings.mjs";
|
|
14
|
+
import { piggyUpdateContactIdentifiers } from "./actions/update-contact-identifiers.mjs";
|
|
15
|
+
import { piggy } from "./app.mjs";
|
|
16
|
+
import { piggyCatalog } from "./catalog.mjs";
|
|
17
|
+
export { piggy, piggyCatalog, piggyClaimAnonymousContact, piggyCreateContactAttribute, piggyCreateCreditReception, piggyCreateVouchersBatch, piggyFindOrCreateProducts, piggyFindVoucherByCode, piggyGetContactAuthToken, piggyGetContactsCreditBalance, piggyListForms, piggyListPerks, piggyMergeContacts, piggySendContactVerificationEmail, piggyUpdateBookings, piggyUpdateContactIdentifiers };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { piggy } from "./app.mjs";
|
|
2
|
+
import { piggyCatalog } from "./catalog.mjs";
|
|
3
|
+
import { piggyClaimAnonymousContact } from "./actions/claim-anonymous-contact.mjs";
|
|
4
|
+
import { piggyCreateContactAttribute } from "./actions/create-contact-attribute.mjs";
|
|
5
|
+
import { piggyCreateCreditReception } from "./actions/create-credit-reception.mjs";
|
|
6
|
+
import { piggyCreateVouchersBatch } from "./actions/create-vouchers-batch.mjs";
|
|
7
|
+
import { piggyFindOrCreateProducts } from "./actions/find-or-create-products.mjs";
|
|
8
|
+
import { piggyFindVoucherByCode } from "./actions/find-voucher-by-code.mjs";
|
|
9
|
+
import { piggyGetContactAuthToken } from "./actions/get-contact-auth-token.mjs";
|
|
10
|
+
import { piggyGetContactsCreditBalance } from "./actions/get-contacts-credit-balance.mjs";
|
|
11
|
+
import { piggyListForms } from "./actions/list-forms.mjs";
|
|
12
|
+
import { piggyListPerks } from "./actions/list-perks.mjs";
|
|
13
|
+
import { piggyMergeContacts } from "./actions/merge-contacts.mjs";
|
|
14
|
+
import { piggySendContactVerificationEmail } from "./actions/send-contact-verification-email.mjs";
|
|
15
|
+
import { piggyUpdateBookings } from "./actions/update-bookings.mjs";
|
|
16
|
+
import { piggyUpdateContactIdentifiers } from "./actions/update-contact-identifiers.mjs";
|
|
17
|
+
import "./actions/index.mjs";
|
|
18
|
+
export { piggy, piggyCatalog, piggyClaimAnonymousContact, piggyCreateContactAttribute, piggyCreateCreditReception, piggyCreateVouchersBatch, piggyFindOrCreateProducts, piggyFindVoucherByCode, piggyGetContactAuthToken, piggyGetContactsCreditBalance, piggyListForms, piggyListPerks, piggyMergeContacts, piggySendContactVerificationEmail, piggyUpdateBookings, piggyUpdateContactIdentifiers };
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@keystrokehq/piggy",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public",
|
|
6
|
+
"registry": "https://registry.npmjs.org"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/keystrokehq/keystroke.git",
|
|
11
|
+
"directory": "packages/integrations/piggy"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"type": "module",
|
|
18
|
+
"main": "./dist/index.cjs",
|
|
19
|
+
"module": "./dist/index.mjs",
|
|
20
|
+
"types": "./dist/index.d.mts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.mts",
|
|
24
|
+
"import": "./dist/index.mjs",
|
|
25
|
+
"require": "./dist/index.cjs"
|
|
26
|
+
},
|
|
27
|
+
"./actions": {
|
|
28
|
+
"types": "./dist/actions/index.d.mts",
|
|
29
|
+
"import": "./dist/actions/index.mjs",
|
|
30
|
+
"require": "./dist/actions/index.cjs"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"@keystrokehq/keystroke": "^0.1.4",
|
|
35
|
+
"zod": "^4.4.3"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@keystrokehq/keystroke": "link:../../keystroke",
|
|
39
|
+
"@types/node": "^25.9.1",
|
|
40
|
+
"tsdown": "^0.22.0",
|
|
41
|
+
"typescript": "^6.0.3",
|
|
42
|
+
"zod": "^4.4.3"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "tsdown",
|
|
46
|
+
"dev": "tsdown --watch --no-clean",
|
|
47
|
+
"typecheck": "tsc --noEmit"
|
|
48
|
+
}
|
|
49
|
+
}
|