convex-saligpay 1.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/LICENSE +21 -0
- package/README.md +288 -0
- package/dist/client/index.d.ts +169 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +222 -0
- package/dist/client/index.js.map +1 -0
- package/dist/component/_generated/component.d.ts +28 -0
- package/dist/component/_generated/component.d.ts.map +1 -0
- package/dist/component/_generated/component.js +2 -0
- package/dist/component/_generated/component.js.map +1 -0
- package/dist/component/_generated/server.d.ts +2 -0
- package/dist/component/_generated/server.d.ts.map +1 -0
- package/dist/component/_generated/server.js +2 -0
- package/dist/component/_generated/server.js.map +1 -0
- package/dist/component/convex.config.d.ts +3 -0
- package/dist/component/convex.config.d.ts.map +1 -0
- package/dist/component/convex.config.js +4 -0
- package/dist/component/convex.config.js.map +1 -0
- package/dist/component/lib.d.ts +170 -0
- package/dist/component/lib.d.ts.map +1 -0
- package/dist/component/lib.js +568 -0
- package/dist/component/lib.js.map +1 -0
- package/dist/component/schema.d.ts +131 -0
- package/dist/component/schema.d.ts.map +1 -0
- package/dist/component/schema.js +73 -0
- package/dist/component/schema.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/test.d.ts +139 -0
- package/dist/test.d.ts.map +1 -0
- package/dist/test.js +5 -0
- package/dist/test.js.map +1 -0
- package/dist/types/index.d.ts +140 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +88 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
declare const _default: import("convex/server").SchemaDefinition<{
|
|
2
|
+
saligpayTokens: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3
|
+
refreshToken?: string | undefined;
|
|
4
|
+
merchantId: string;
|
|
5
|
+
accessToken: string;
|
|
6
|
+
expiresAt: number;
|
|
7
|
+
expiresIn: number;
|
|
8
|
+
createdAt: number;
|
|
9
|
+
updatedAt: number;
|
|
10
|
+
}, {
|
|
11
|
+
merchantId: import("convex/values").VString<string, "required">;
|
|
12
|
+
accessToken: import("convex/values").VString<string, "required">;
|
|
13
|
+
refreshToken: import("convex/values").VString<string | undefined, "optional">;
|
|
14
|
+
expiresAt: import("convex/values").VFloat64<number, "required">;
|
|
15
|
+
expiresIn: import("convex/values").VFloat64<number, "required">;
|
|
16
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
17
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
18
|
+
}, "required", "merchantId" | "accessToken" | "refreshToken" | "expiresAt" | "expiresIn" | "createdAt" | "updatedAt">, {
|
|
19
|
+
by_merchant: ["merchantId", "_creationTime"];
|
|
20
|
+
}, {}, {}>;
|
|
21
|
+
saligpayCredentials: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
22
|
+
merchantId: string;
|
|
23
|
+
clientId: string;
|
|
24
|
+
env: "sandbox" | "production";
|
|
25
|
+
createdAt: number;
|
|
26
|
+
clientSecretEncrypted: string;
|
|
27
|
+
}, {
|
|
28
|
+
merchantId: import("convex/values").VString<string, "required">;
|
|
29
|
+
clientId: import("convex/values").VString<string, "required">;
|
|
30
|
+
clientSecretEncrypted: import("convex/values").VString<string, "required">;
|
|
31
|
+
env: import("convex/values").VUnion<"sandbox" | "production", [import("convex/values").VLiteral<"sandbox", "required">, import("convex/values").VLiteral<"production", "required">], "required", never>;
|
|
32
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
33
|
+
}, "required", "merchantId" | "clientId" | "env" | "createdAt" | "clientSecretEncrypted">, {
|
|
34
|
+
by_merchant: ["merchantId", "_creationTime"];
|
|
35
|
+
}, {}, {}>;
|
|
36
|
+
checkoutSessions: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
37
|
+
metadata?: Record<string, any> | undefined;
|
|
38
|
+
expiresAt?: number | undefined;
|
|
39
|
+
sessionToken?: string | undefined;
|
|
40
|
+
checkoutUrl?: string | undefined;
|
|
41
|
+
merchantId: string;
|
|
42
|
+
externalId: string;
|
|
43
|
+
amount: number;
|
|
44
|
+
sessionId: string;
|
|
45
|
+
status: string;
|
|
46
|
+
createdAt: number;
|
|
47
|
+
updatedAt: number;
|
|
48
|
+
}, {
|
|
49
|
+
sessionId: import("convex/values").VString<string, "required">;
|
|
50
|
+
externalId: import("convex/values").VString<string, "required">;
|
|
51
|
+
sessionToken: import("convex/values").VString<string | undefined, "optional">;
|
|
52
|
+
amount: import("convex/values").VFloat64<number, "required">;
|
|
53
|
+
status: import("convex/values").VString<string, "required">;
|
|
54
|
+
checkoutUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
55
|
+
expiresAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
56
|
+
merchantId: import("convex/values").VString<string, "required">;
|
|
57
|
+
metadata: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
|
|
58
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
59
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
60
|
+
}, "required", "merchantId" | "externalId" | "amount" | "metadata" | "sessionId" | "status" | "expiresAt" | "createdAt" | "updatedAt" | "sessionToken" | "checkoutUrl" | `metadata.${string}`>, {
|
|
61
|
+
by_external_id: ["externalId", "_creationTime"];
|
|
62
|
+
by_session_token: ["sessionToken", "_creationTime"];
|
|
63
|
+
by_merchant: ["merchantId", "_creationTime"];
|
|
64
|
+
}, {}, {}>;
|
|
65
|
+
webhookEvents: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
66
|
+
eventId?: string | undefined;
|
|
67
|
+
processedAt?: number | undefined;
|
|
68
|
+
error?: string | undefined;
|
|
69
|
+
payload: any;
|
|
70
|
+
signature: string;
|
|
71
|
+
timestamp: number;
|
|
72
|
+
createdAt: number;
|
|
73
|
+
eventType: string;
|
|
74
|
+
processed: boolean;
|
|
75
|
+
}, {
|
|
76
|
+
eventId: import("convex/values").VString<string | undefined, "optional">;
|
|
77
|
+
eventType: import("convex/values").VString<string, "required">;
|
|
78
|
+
payload: import("convex/values").VAny<any, "required", string>;
|
|
79
|
+
signature: import("convex/values").VString<string, "required">;
|
|
80
|
+
timestamp: import("convex/values").VFloat64<number, "required">;
|
|
81
|
+
processed: import("convex/values").VBoolean<boolean, "required">;
|
|
82
|
+
processedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
83
|
+
error: import("convex/values").VString<string | undefined, "optional">;
|
|
84
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
85
|
+
}, "required", "payload" | "signature" | "timestamp" | "createdAt" | "eventId" | "eventType" | "processed" | "processedAt" | "error" | `payload.${string}`>, {
|
|
86
|
+
by_event_id: ["eventId", "_creationTime"];
|
|
87
|
+
by_event_type: ["eventType", "_creationTime"];
|
|
88
|
+
by_processed: ["processed", "_creationTime"];
|
|
89
|
+
by_created_at: ["createdAt", "_creationTime"];
|
|
90
|
+
}, {}, {}>;
|
|
91
|
+
paymentIntents: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
92
|
+
externalId?: string | undefined;
|
|
93
|
+
metadata?: Record<string, any> | undefined;
|
|
94
|
+
sessionToken?: string | undefined;
|
|
95
|
+
transactionId?: string | undefined;
|
|
96
|
+
clientKey?: string | undefined;
|
|
97
|
+
paymentMethods?: string[] | undefined;
|
|
98
|
+
fee?: number | undefined;
|
|
99
|
+
redirectUrl?: string | undefined;
|
|
100
|
+
merchantId: string;
|
|
101
|
+
intentId: string;
|
|
102
|
+
amount: number;
|
|
103
|
+
description: string;
|
|
104
|
+
status: string;
|
|
105
|
+
createdAt: number;
|
|
106
|
+
updatedAt: number;
|
|
107
|
+
}, {
|
|
108
|
+
intentId: import("convex/values").VString<string, "required">;
|
|
109
|
+
externalId: import("convex/values").VString<string | undefined, "optional">;
|
|
110
|
+
transactionId: import("convex/values").VString<string | undefined, "optional">;
|
|
111
|
+
sessionToken: import("convex/values").VString<string | undefined, "optional">;
|
|
112
|
+
amount: import("convex/values").VFloat64<number, "required">;
|
|
113
|
+
description: import("convex/values").VString<string, "required">;
|
|
114
|
+
status: import("convex/values").VString<string, "required">;
|
|
115
|
+
clientKey: import("convex/values").VString<string | undefined, "optional">;
|
|
116
|
+
paymentMethods: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
117
|
+
fee: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
118
|
+
merchantId: import("convex/values").VString<string, "required">;
|
|
119
|
+
metadata: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
|
|
120
|
+
redirectUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
121
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
122
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
123
|
+
}, "required", "merchantId" | "externalId" | "intentId" | "amount" | "description" | "metadata" | "status" | "createdAt" | "updatedAt" | "sessionToken" | `metadata.${string}` | "transactionId" | "clientKey" | "paymentMethods" | "fee" | "redirectUrl">, {
|
|
124
|
+
by_external_id: ["externalId", "_creationTime"];
|
|
125
|
+
by_transaction_id: ["transactionId", "_creationTime"];
|
|
126
|
+
by_session_token: ["sessionToken", "_creationTime"];
|
|
127
|
+
by_merchant: ["merchantId", "_creationTime"];
|
|
128
|
+
}, {}, {}>;
|
|
129
|
+
}, true>;
|
|
130
|
+
export default _default;
|
|
131
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/component/schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAyEG"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { defineSchema, defineTable } from "convex/server";
|
|
2
|
+
import { v } from "convex/values";
|
|
3
|
+
export default defineSchema({
|
|
4
|
+
saligpayTokens: defineTable({
|
|
5
|
+
merchantId: v.string(),
|
|
6
|
+
accessToken: v.string(),
|
|
7
|
+
refreshToken: v.optional(v.string()),
|
|
8
|
+
expiresAt: v.number(),
|
|
9
|
+
expiresIn: v.number(),
|
|
10
|
+
createdAt: v.number(),
|
|
11
|
+
updatedAt: v.number(),
|
|
12
|
+
}).index("by_merchant", ["merchantId"]),
|
|
13
|
+
saligpayCredentials: defineTable({
|
|
14
|
+
merchantId: v.string(),
|
|
15
|
+
clientId: v.string(),
|
|
16
|
+
clientSecretEncrypted: v.string(),
|
|
17
|
+
env: v.union(v.literal("sandbox"), v.literal("production")),
|
|
18
|
+
createdAt: v.number(),
|
|
19
|
+
}).index("by_merchant", ["merchantId"]),
|
|
20
|
+
checkoutSessions: defineTable({
|
|
21
|
+
sessionId: v.string(),
|
|
22
|
+
externalId: v.string(),
|
|
23
|
+
sessionToken: v.optional(v.string()),
|
|
24
|
+
amount: v.number(),
|
|
25
|
+
status: v.string(),
|
|
26
|
+
checkoutUrl: v.optional(v.string()),
|
|
27
|
+
expiresAt: v.optional(v.number()),
|
|
28
|
+
merchantId: v.string(),
|
|
29
|
+
metadata: v.optional(v.record(v.string(), v.any())),
|
|
30
|
+
createdAt: v.number(),
|
|
31
|
+
updatedAt: v.number(),
|
|
32
|
+
})
|
|
33
|
+
.index("by_external_id", ["externalId"])
|
|
34
|
+
.index("by_session_token", ["sessionToken"])
|
|
35
|
+
.index("by_merchant", ["merchantId"]),
|
|
36
|
+
webhookEvents: defineTable({
|
|
37
|
+
eventId: v.optional(v.string()),
|
|
38
|
+
eventType: v.string(),
|
|
39
|
+
payload: v.any(),
|
|
40
|
+
signature: v.string(),
|
|
41
|
+
timestamp: v.number(),
|
|
42
|
+
processed: v.boolean(),
|
|
43
|
+
processedAt: v.optional(v.number()),
|
|
44
|
+
error: v.optional(v.string()),
|
|
45
|
+
createdAt: v.number(),
|
|
46
|
+
})
|
|
47
|
+
.index("by_event_id", ["eventId"])
|
|
48
|
+
.index("by_event_type", ["eventType"])
|
|
49
|
+
.index("by_processed", ["processed"])
|
|
50
|
+
.index("by_created_at", ["createdAt"]),
|
|
51
|
+
paymentIntents: defineTable({
|
|
52
|
+
intentId: v.string(),
|
|
53
|
+
externalId: v.optional(v.string()),
|
|
54
|
+
transactionId: v.optional(v.string()),
|
|
55
|
+
sessionToken: v.optional(v.string()),
|
|
56
|
+
amount: v.number(),
|
|
57
|
+
description: v.string(),
|
|
58
|
+
status: v.string(),
|
|
59
|
+
clientKey: v.optional(v.string()),
|
|
60
|
+
paymentMethods: v.optional(v.array(v.string())),
|
|
61
|
+
fee: v.optional(v.number()),
|
|
62
|
+
merchantId: v.string(),
|
|
63
|
+
metadata: v.optional(v.record(v.string(), v.any())),
|
|
64
|
+
redirectUrl: v.optional(v.string()),
|
|
65
|
+
createdAt: v.number(),
|
|
66
|
+
updatedAt: v.number(),
|
|
67
|
+
})
|
|
68
|
+
.index("by_external_id", ["externalId"])
|
|
69
|
+
.index("by_transaction_id", ["transactionId"])
|
|
70
|
+
.index("by_session_token", ["sessionToken"])
|
|
71
|
+
.index("by_merchant", ["merchantId"]),
|
|
72
|
+
});
|
|
73
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/component/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAElC,eAAe,YAAY,CAAC;IACxB,cAAc,EAAE,WAAW,CAAC;QACxB,UAAU,EAAE,CAAC,CAAC,M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.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC"}
|
package/dist/test.d.ts
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import type { TestConvex } from "convex-test";
|
|
2
|
+
import type { GenericSchema, SchemaDefinition } from "convex/server";
|
|
3
|
+
import schema from "./component/schema.js";
|
|
4
|
+
export declare function register(_t: TestConvex<SchemaDefinition<GenericSchema, boolean>>, _name?: string): void;
|
|
5
|
+
declare const _default: {
|
|
6
|
+
register: typeof register;
|
|
7
|
+
schema: SchemaDefinition<{
|
|
8
|
+
saligpayTokens: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
9
|
+
refreshToken?: string | undefined;
|
|
10
|
+
merchantId: string;
|
|
11
|
+
accessToken: string;
|
|
12
|
+
expiresAt: number;
|
|
13
|
+
expiresIn: number;
|
|
14
|
+
createdAt: number;
|
|
15
|
+
updatedAt: number;
|
|
16
|
+
}, {
|
|
17
|
+
merchantId: import("convex/values").VString<string, "required">;
|
|
18
|
+
accessToken: import("convex/values").VString<string, "required">;
|
|
19
|
+
refreshToken: import("convex/values").VString<string | undefined, "optional">;
|
|
20
|
+
expiresAt: import("convex/values").VFloat64<number, "required">;
|
|
21
|
+
expiresIn: import("convex/values").VFloat64<number, "required">;
|
|
22
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
23
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
24
|
+
}, "required", "merchantId" | "accessToken" | "refreshToken" | "expiresAt" | "expiresIn" | "createdAt" | "updatedAt">, {
|
|
25
|
+
by_merchant: ["merchantId", "_creationTime"];
|
|
26
|
+
}, {}, {}>;
|
|
27
|
+
saligpayCredentials: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
28
|
+
merchantId: string;
|
|
29
|
+
clientId: string;
|
|
30
|
+
env: "sandbox" | "production";
|
|
31
|
+
createdAt: number;
|
|
32
|
+
clientSecretEncrypted: string;
|
|
33
|
+
}, {
|
|
34
|
+
merchantId: import("convex/values").VString<string, "required">;
|
|
35
|
+
clientId: import("convex/values").VString<string, "required">;
|
|
36
|
+
clientSecretEncrypted: import("convex/values").VString<string, "required">;
|
|
37
|
+
env: import("convex/values").VUnion<"sandbox" | "production", [import("convex/values").VLiteral<"sandbox", "required">, import("convex/values").VLiteral<"production", "required">], "required", never>;
|
|
38
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
39
|
+
}, "required", "merchantId" | "clientId" | "env" | "createdAt" | "clientSecretEncrypted">, {
|
|
40
|
+
by_merchant: ["merchantId", "_creationTime"];
|
|
41
|
+
}, {}, {}>;
|
|
42
|
+
checkoutSessions: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
43
|
+
metadata?: Record<string, any> | undefined;
|
|
44
|
+
expiresAt?: number | undefined;
|
|
45
|
+
sessionToken?: string | undefined;
|
|
46
|
+
checkoutUrl?: string | undefined;
|
|
47
|
+
merchantId: string;
|
|
48
|
+
externalId: string;
|
|
49
|
+
amount: number;
|
|
50
|
+
sessionId: string;
|
|
51
|
+
status: string;
|
|
52
|
+
createdAt: number;
|
|
53
|
+
updatedAt: number;
|
|
54
|
+
}, {
|
|
55
|
+
sessionId: import("convex/values").VString<string, "required">;
|
|
56
|
+
externalId: import("convex/values").VString<string, "required">;
|
|
57
|
+
sessionToken: import("convex/values").VString<string | undefined, "optional">;
|
|
58
|
+
amount: import("convex/values").VFloat64<number, "required">;
|
|
59
|
+
status: import("convex/values").VString<string, "required">;
|
|
60
|
+
checkoutUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
61
|
+
expiresAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
62
|
+
merchantId: import("convex/values").VString<string, "required">;
|
|
63
|
+
metadata: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
|
|
64
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
65
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
66
|
+
}, "required", "merchantId" | "externalId" | "amount" | "metadata" | "sessionId" | "status" | "expiresAt" | "createdAt" | "updatedAt" | "sessionToken" | "checkoutUrl" | `metadata.${string}`>, {
|
|
67
|
+
by_external_id: ["externalId", "_creationTime"];
|
|
68
|
+
by_session_token: ["sessionToken", "_creationTime"];
|
|
69
|
+
by_merchant: ["merchantId", "_creationTime"];
|
|
70
|
+
}, {}, {}>;
|
|
71
|
+
webhookEvents: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
72
|
+
eventId?: string | undefined;
|
|
73
|
+
processedAt?: number | undefined;
|
|
74
|
+
error?: string | undefined;
|
|
75
|
+
payload: any;
|
|
76
|
+
signature: string;
|
|
77
|
+
timestamp: number;
|
|
78
|
+
createdAt: number;
|
|
79
|
+
eventType: string;
|
|
80
|
+
processed: boolean;
|
|
81
|
+
}, {
|
|
82
|
+
eventId: import("convex/values").VString<string | undefined, "optional">;
|
|
83
|
+
eventType: import("convex/values").VString<string, "required">;
|
|
84
|
+
payload: import("convex/values").VAny<any, "required", string>;
|
|
85
|
+
signature: import("convex/values").VString<string, "required">;
|
|
86
|
+
timestamp: import("convex/values").VFloat64<number, "required">;
|
|
87
|
+
processed: import("convex/values").VBoolean<boolean, "required">;
|
|
88
|
+
processedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
89
|
+
error: import("convex/values").VString<string | undefined, "optional">;
|
|
90
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
91
|
+
}, "required", "payload" | "signature" | "timestamp" | "createdAt" | "eventId" | "eventType" | "processed" | "processedAt" | "error" | `payload.${string}`>, {
|
|
92
|
+
by_event_id: ["eventId", "_creationTime"];
|
|
93
|
+
by_event_type: ["eventType", "_creationTime"];
|
|
94
|
+
by_processed: ["processed", "_creationTime"];
|
|
95
|
+
by_created_at: ["createdAt", "_creationTime"];
|
|
96
|
+
}, {}, {}>;
|
|
97
|
+
paymentIntents: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
98
|
+
externalId?: string | undefined;
|
|
99
|
+
metadata?: Record<string, any> | undefined;
|
|
100
|
+
sessionToken?: string | undefined;
|
|
101
|
+
transactionId?: string | undefined;
|
|
102
|
+
clientKey?: string | undefined;
|
|
103
|
+
paymentMethods?: string[] | undefined;
|
|
104
|
+
fee?: number | undefined;
|
|
105
|
+
redirectUrl?: string | undefined;
|
|
106
|
+
merchantId: string;
|
|
107
|
+
intentId: string;
|
|
108
|
+
amount: number;
|
|
109
|
+
description: string;
|
|
110
|
+
status: string;
|
|
111
|
+
createdAt: number;
|
|
112
|
+
updatedAt: number;
|
|
113
|
+
}, {
|
|
114
|
+
intentId: import("convex/values").VString<string, "required">;
|
|
115
|
+
externalId: import("convex/values").VString<string | undefined, "optional">;
|
|
116
|
+
transactionId: import("convex/values").VString<string | undefined, "optional">;
|
|
117
|
+
sessionToken: import("convex/values").VString<string | undefined, "optional">;
|
|
118
|
+
amount: import("convex/values").VFloat64<number, "required">;
|
|
119
|
+
description: import("convex/values").VString<string, "required">;
|
|
120
|
+
status: import("convex/values").VString<string, "required">;
|
|
121
|
+
clientKey: import("convex/values").VString<string | undefined, "optional">;
|
|
122
|
+
paymentMethods: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
123
|
+
fee: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
124
|
+
merchantId: import("convex/values").VString<string, "required">;
|
|
125
|
+
metadata: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
|
|
126
|
+
redirectUrl: import("convex/values").VString<string | undefined, "optional">;
|
|
127
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
128
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
129
|
+
}, "required", "merchantId" | "externalId" | "intentId" | "amount" | "description" | "metadata" | "status" | "createdAt" | "updatedAt" | "sessionToken" | `metadata.${string}` | "transactionId" | "clientKey" | "paymentMethods" | "fee" | "redirectUrl">, {
|
|
130
|
+
by_external_id: ["externalId", "_creationTime"];
|
|
131
|
+
by_transaction_id: ["transactionId", "_creationTime"];
|
|
132
|
+
by_session_token: ["sessionToken", "_creationTime"];
|
|
133
|
+
by_merchant: ["merchantId", "_creationTime"];
|
|
134
|
+
}, {}, {}>;
|
|
135
|
+
}, true>;
|
|
136
|
+
};
|
|
137
|
+
export default _default;
|
|
138
|
+
export { schema };
|
|
139
|
+
//# sourceMappingURL=test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../src/test.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAE3C,wBAAgB,QAAQ,CACpB,EAAE,EAAE,UAAU,CAAC,gBAAgB,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,EACxD,KAAK,GAAE,MAAmB,GAC3B,IAAI,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEV,wBAAoC;AACpC,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
package/dist/test.js
ADDED
package/dist/test.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test.js","sourceRoot":"","sources":["../src/test.ts"],"names":[],"mappings":"AAEA,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAE3C,MAAM,UAAU,QAAQ,CACpB,EAAwD,EACxD,QAAgB,UAAU,IACrB,CAAC;AAEV,eAAe,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
export interface SaligPayConfig {
|
|
2
|
+
env?: "sandbox" | "production";
|
|
3
|
+
baseUrl?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface SaligPayAuthTokens {
|
|
6
|
+
accessToken: string;
|
|
7
|
+
refreshToken?: string;
|
|
8
|
+
expiresIn: number;
|
|
9
|
+
expiresAt: number;
|
|
10
|
+
}
|
|
11
|
+
export type SaligPayEnvironment = "sandbox" | "production";
|
|
12
|
+
export interface ContactInfo {
|
|
13
|
+
name: string;
|
|
14
|
+
email: string;
|
|
15
|
+
phone?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface CreateCheckoutOptions {
|
|
18
|
+
externalId: string;
|
|
19
|
+
amount: number;
|
|
20
|
+
description: string;
|
|
21
|
+
webhookUrl?: string;
|
|
22
|
+
returnUrl?: string;
|
|
23
|
+
contact?: ContactInfo;
|
|
24
|
+
metadata?: Record<string, unknown>;
|
|
25
|
+
isThirdParty?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface CheckoutSession {
|
|
28
|
+
id: string;
|
|
29
|
+
sessionToken?: string;
|
|
30
|
+
amount: number;
|
|
31
|
+
description: string;
|
|
32
|
+
checkoutUrl: string;
|
|
33
|
+
expiresAt?: number;
|
|
34
|
+
status: string;
|
|
35
|
+
}
|
|
36
|
+
export interface CreatePaymentIntentOptions {
|
|
37
|
+
amount: number;
|
|
38
|
+
description?: string;
|
|
39
|
+
externalId?: string;
|
|
40
|
+
contact?: ContactInfo;
|
|
41
|
+
webhookUrl?: string;
|
|
42
|
+
returnUrl?: string;
|
|
43
|
+
metadata?: Record<string, unknown>;
|
|
44
|
+
}
|
|
45
|
+
export interface PaymentIntent {
|
|
46
|
+
id: string;
|
|
47
|
+
transactionId: string;
|
|
48
|
+
sessionToken: string;
|
|
49
|
+
amount: number;
|
|
50
|
+
status: string;
|
|
51
|
+
description: string;
|
|
52
|
+
clientKey: string;
|
|
53
|
+
paymentMethods: string[];
|
|
54
|
+
fee: number;
|
|
55
|
+
}
|
|
56
|
+
export interface SaligPayWebhookPayload {
|
|
57
|
+
id?: string;
|
|
58
|
+
externalId: string;
|
|
59
|
+
amount: number;
|
|
60
|
+
status: string;
|
|
61
|
+
paymentMethod?: string;
|
|
62
|
+
createdAt?: string;
|
|
63
|
+
}
|
|
64
|
+
export type WebhookEventType = "checkout.completed" | "checkout.failed" | "checkout.expired" | "payment_intent.succeeded" | "refund.created";
|
|
65
|
+
export interface StoredTokens {
|
|
66
|
+
accessToken: string;
|
|
67
|
+
refreshToken?: string;
|
|
68
|
+
expiresAt: number;
|
|
69
|
+
expiresIn: number;
|
|
70
|
+
merchantId: string;
|
|
71
|
+
createdAt: number;
|
|
72
|
+
updatedAt: number;
|
|
73
|
+
}
|
|
74
|
+
export interface MerchantCredentials {
|
|
75
|
+
merchantId: string;
|
|
76
|
+
clientId: string;
|
|
77
|
+
clientSecretEncrypted: string;
|
|
78
|
+
env: "sandbox" | "production";
|
|
79
|
+
createdAt: number;
|
|
80
|
+
}
|
|
81
|
+
export interface CheckoutSessionRecord {
|
|
82
|
+
sessionId: string;
|
|
83
|
+
externalId: string;
|
|
84
|
+
sessionToken?: string;
|
|
85
|
+
amount: number;
|
|
86
|
+
status: string;
|
|
87
|
+
checkoutUrl?: string;
|
|
88
|
+
expiresAt?: number;
|
|
89
|
+
merchantId: string;
|
|
90
|
+
metadata?: Record<string, unknown>;
|
|
91
|
+
createdAt: number;
|
|
92
|
+
updatedAt: number;
|
|
93
|
+
}
|
|
94
|
+
export interface PaymentIntentRecord {
|
|
95
|
+
intentId: string;
|
|
96
|
+
externalId?: string;
|
|
97
|
+
transactionId?: string;
|
|
98
|
+
sessionToken?: string;
|
|
99
|
+
amount: number;
|
|
100
|
+
description: string;
|
|
101
|
+
status: string;
|
|
102
|
+
clientKey?: string;
|
|
103
|
+
paymentMethods?: string[];
|
|
104
|
+
fee?: number;
|
|
105
|
+
merchantId: string;
|
|
106
|
+
metadata?: Record<string, unknown>;
|
|
107
|
+
redirectUrl?: string;
|
|
108
|
+
createdAt: number;
|
|
109
|
+
updatedAt: number;
|
|
110
|
+
}
|
|
111
|
+
export interface WebhookEventRecord {
|
|
112
|
+
eventId?: string;
|
|
113
|
+
eventType: string;
|
|
114
|
+
payload: unknown;
|
|
115
|
+
signature: string;
|
|
116
|
+
timestamp: number;
|
|
117
|
+
processed: boolean;
|
|
118
|
+
processedAt?: number;
|
|
119
|
+
error?: string;
|
|
120
|
+
createdAt: number;
|
|
121
|
+
}
|
|
122
|
+
export interface LoginResult {
|
|
123
|
+
user: {
|
|
124
|
+
id: string;
|
|
125
|
+
email: string;
|
|
126
|
+
name: string;
|
|
127
|
+
};
|
|
128
|
+
merchant: {
|
|
129
|
+
id: string;
|
|
130
|
+
email: string;
|
|
131
|
+
tradeName: string;
|
|
132
|
+
};
|
|
133
|
+
credentials: {
|
|
134
|
+
clientId: string;
|
|
135
|
+
clientSecret: string;
|
|
136
|
+
};
|
|
137
|
+
tokens: SaligPayAuthTokens;
|
|
138
|
+
}
|
|
139
|
+
export type SaligPayTableName = "saligpayTokens" | "saligpayCredentials" | "checkoutSessions" | "paymentIntents" | "webhookEvents";
|
|
140
|
+
//# sourceMappingURL=index.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CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,WAAW;IACxB,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAClD,QAAQ,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3D,WAAW,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC;IACxD,MAAM,EAAE,kBAAkB,CAAC;CAC9B;AAED,MAAM,MAAM,iBAAiB,GACvB,gBAAgB,GAChB,qBAAqB,GACrB,kBAAkB,GAClB,gBAAgB,GAChB,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "convex-saligpay",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Convex component for SaligPay payment integration",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/saligpay/convex-saligpay.git"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://github.com/saligpay/convex-saligpay#readme",
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/saligpay/convex-saligpay/issues"
|
|
12
|
+
},
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"keywords": [
|
|
15
|
+
"convex",
|
|
16
|
+
"saligpay",
|
|
17
|
+
"payment",
|
|
18
|
+
"checkout",
|
|
19
|
+
"philippines",
|
|
20
|
+
"gcash",
|
|
21
|
+
"maya",
|
|
22
|
+
"component"
|
|
23
|
+
],
|
|
24
|
+
"type": "module",
|
|
25
|
+
"scripts": {
|
|
26
|
+
"dev": "run-p -r 'dev:*'",
|
|
27
|
+
"dev:backend": "convex dev --typecheck-components",
|
|
28
|
+
"dev:build": "chokidar 'tsconfig*.json' 'src/**/*.ts' -i '**/*.test.ts' -c 'npm run build:codegen' --initial",
|
|
29
|
+
"predev": "path-exists dist || (npm run build && convex dev --once)",
|
|
30
|
+
"build": "tsc --project ./tsconfig.build.json",
|
|
31
|
+
"build:codegen": "npx convex codegen --component-dir ./src/component && npm run build",
|
|
32
|
+
"build:clean": "rm -rf dist *.tsbuildinfo && npm run build:codegen",
|
|
33
|
+
"typecheck": "tsc --noEmit",
|
|
34
|
+
"lint": "eslint .",
|
|
35
|
+
"test": "vitest run --typecheck",
|
|
36
|
+
"test:watch": "vitest --typecheck --clearScreen false",
|
|
37
|
+
"preversion": "npm ci && npm run build:clean && run-p test lint typecheck",
|
|
38
|
+
"prepublishOnly": "npm run build",
|
|
39
|
+
"alpha": "npm version prerelease --preid alpha && npm publish --tag alpha && git push --follow-tags",
|
|
40
|
+
"release": "npm version patch && npm publish && git push --follow-tags"
|
|
41
|
+
},
|
|
42
|
+
"files": [
|
|
43
|
+
"dist"
|
|
44
|
+
],
|
|
45
|
+
"exports": {
|
|
46
|
+
"./package.json": "./package.json",
|
|
47
|
+
".": {
|
|
48
|
+
"types": "./dist/client/index.d.ts",
|
|
49
|
+
"default": "./dist/client/index.js"
|
|
50
|
+
},
|
|
51
|
+
"./test": {
|
|
52
|
+
"types": "./dist/test.d.ts",
|
|
53
|
+
"default": "./dist/test.js"
|
|
54
|
+
},
|
|
55
|
+
"./_generated/component.js": {
|
|
56
|
+
"types": "./dist/component/_generated/component.d.ts"
|
|
57
|
+
},
|
|
58
|
+
"./_generated/component": {
|
|
59
|
+
"types": "./dist/component/_generated/component.d.ts"
|
|
60
|
+
},
|
|
61
|
+
"./convex.config.js": {
|
|
62
|
+
"types": "./dist/component/convex.config.d.ts",
|
|
63
|
+
"default": "./dist/component/convex.config.js"
|
|
64
|
+
},
|
|
65
|
+
"./convex.config": {
|
|
66
|
+
"types": "./dist/component/convex.config.d.ts",
|
|
67
|
+
"default": "./dist/component/convex.config.js"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"peerDependencies": {
|
|
71
|
+
"convex": "^1.33.1"
|
|
72
|
+
},
|
|
73
|
+
"devDependencies": {
|
|
74
|
+
"@types/node": "^24.12.0",
|
|
75
|
+
"chokidar-cli": "3.0.0",
|
|
76
|
+
"convex": "^1.33.1",
|
|
77
|
+
"convex-test": "^0.0.41",
|
|
78
|
+
"npm-run-all2": "^8.0.4",
|
|
79
|
+
"path-exists-cli": "^2.0.0",
|
|
80
|
+
"typescript": "^5.9.3",
|
|
81
|
+
"vitest": "^4.1.0"
|
|
82
|
+
},
|
|
83
|
+
"engines": {
|
|
84
|
+
"node": ">=18.0.0"
|
|
85
|
+
},
|
|
86
|
+
"types": "./dist/client/index.d.ts",
|
|
87
|
+
"module": "./dist/client/index.js"
|
|
88
|
+
}
|