@develit-services/bank 0.7.4 → 0.7.5
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/export/worker.cjs
CHANGED
|
@@ -298,7 +298,8 @@ const authorizeAccountInputSchema = zod.z.object({
|
|
|
298
298
|
urlParams: zod.z.string(),
|
|
299
299
|
syncIntervalS: zod.z.number().int().positive().optional(),
|
|
300
300
|
startSync: zod.z.boolean().optional(),
|
|
301
|
-
lastSyncAt: zod.z.date().optional()
|
|
301
|
+
lastSyncAt: zod.z.date().optional(),
|
|
302
|
+
address: zod.z.string().optional()
|
|
302
303
|
});
|
|
303
304
|
|
|
304
305
|
const simulateDepositInputSchema = zod.z.object({
|
|
@@ -885,7 +886,14 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
|
|
|
885
886
|
return this.handleAction(
|
|
886
887
|
{ data: input, schema: authorizeAccountInputSchema },
|
|
887
888
|
{ successMessage: "Account connected" },
|
|
888
|
-
async ({
|
|
889
|
+
async ({
|
|
890
|
+
ott,
|
|
891
|
+
urlParams,
|
|
892
|
+
syncIntervalS,
|
|
893
|
+
startSync,
|
|
894
|
+
lastSyncAt,
|
|
895
|
+
address
|
|
896
|
+
}) => {
|
|
889
897
|
const ottRow = await getOttQuery(this.db, {
|
|
890
898
|
ott
|
|
891
899
|
});
|
|
@@ -927,7 +935,8 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
|
|
|
927
935
|
return upsertAccountCommand(this.db, {
|
|
928
936
|
account: {
|
|
929
937
|
...base,
|
|
930
|
-
...existingPart
|
|
938
|
+
...existingPart,
|
|
939
|
+
...address && { address }
|
|
931
940
|
}
|
|
932
941
|
}).command;
|
|
933
942
|
});
|
package/dist/export/worker.d.cts
CHANGED
|
@@ -35,6 +35,7 @@ declare const authorizeAccountInputSchema: z.ZodObject<{
|
|
|
35
35
|
syncIntervalS: z.ZodOptional<z.ZodNumber>;
|
|
36
36
|
startSync: z.ZodOptional<z.ZodBoolean>;
|
|
37
37
|
lastSyncAt: z.ZodOptional<z.ZodDate>;
|
|
38
|
+
address: z.ZodOptional<z.ZodString>;
|
|
38
39
|
}, z.core.$strip>;
|
|
39
40
|
interface AuthorizeAccountInput extends z.infer<typeof authorizeAccountInputSchema> {
|
|
40
41
|
}
|
|
@@ -1851,7 +1852,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
1851
1852
|
/**
|
|
1852
1853
|
* Authorizes and connects a bank account using one-time token.
|
|
1853
1854
|
*
|
|
1854
|
-
* @param input - Authorization input including ott, urlParams, syncIntervalS, startSync, and
|
|
1855
|
+
* @param input - Authorization input including ott, urlParams, syncIntervalS, startSync, lastSyncAt, and address
|
|
1855
1856
|
*
|
|
1856
1857
|
* @remarks
|
|
1857
1858
|
* For new accounts:
|
package/dist/export/worker.d.mts
CHANGED
|
@@ -35,6 +35,7 @@ declare const authorizeAccountInputSchema: z.ZodObject<{
|
|
|
35
35
|
syncIntervalS: z.ZodOptional<z.ZodNumber>;
|
|
36
36
|
startSync: z.ZodOptional<z.ZodBoolean>;
|
|
37
37
|
lastSyncAt: z.ZodOptional<z.ZodDate>;
|
|
38
|
+
address: z.ZodOptional<z.ZodString>;
|
|
38
39
|
}, z.core.$strip>;
|
|
39
40
|
interface AuthorizeAccountInput extends z.infer<typeof authorizeAccountInputSchema> {
|
|
40
41
|
}
|
|
@@ -1851,7 +1852,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
1851
1852
|
/**
|
|
1852
1853
|
* Authorizes and connects a bank account using one-time token.
|
|
1853
1854
|
*
|
|
1854
|
-
* @param input - Authorization input including ott, urlParams, syncIntervalS, startSync, and
|
|
1855
|
+
* @param input - Authorization input including ott, urlParams, syncIntervalS, startSync, lastSyncAt, and address
|
|
1855
1856
|
*
|
|
1856
1857
|
* @remarks
|
|
1857
1858
|
* For new accounts:
|
package/dist/export/worker.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ declare const authorizeAccountInputSchema: z.ZodObject<{
|
|
|
35
35
|
syncIntervalS: z.ZodOptional<z.ZodNumber>;
|
|
36
36
|
startSync: z.ZodOptional<z.ZodBoolean>;
|
|
37
37
|
lastSyncAt: z.ZodOptional<z.ZodDate>;
|
|
38
|
+
address: z.ZodOptional<z.ZodString>;
|
|
38
39
|
}, z.core.$strip>;
|
|
39
40
|
interface AuthorizeAccountInput extends z.infer<typeof authorizeAccountInputSchema> {
|
|
40
41
|
}
|
|
@@ -1851,7 +1852,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
1851
1852
|
/**
|
|
1852
1853
|
* Authorizes and connects a bank account using one-time token.
|
|
1853
1854
|
*
|
|
1854
|
-
* @param input - Authorization input including ott, urlParams, syncIntervalS, startSync, and
|
|
1855
|
+
* @param input - Authorization input including ott, urlParams, syncIntervalS, startSync, lastSyncAt, and address
|
|
1855
1856
|
*
|
|
1856
1857
|
* @remarks
|
|
1857
1858
|
* For new accounts:
|
package/dist/export/worker.mjs
CHANGED
|
@@ -296,7 +296,8 @@ const authorizeAccountInputSchema = z.object({
|
|
|
296
296
|
urlParams: z.string(),
|
|
297
297
|
syncIntervalS: z.number().int().positive().optional(),
|
|
298
298
|
startSync: z.boolean().optional(),
|
|
299
|
-
lastSyncAt: z.date().optional()
|
|
299
|
+
lastSyncAt: z.date().optional(),
|
|
300
|
+
address: z.string().optional()
|
|
300
301
|
});
|
|
301
302
|
|
|
302
303
|
const simulateDepositInputSchema = z.object({
|
|
@@ -883,7 +884,14 @@ let BankServiceBase = class extends develitWorker(WorkerEntrypoint) {
|
|
|
883
884
|
return this.handleAction(
|
|
884
885
|
{ data: input, schema: authorizeAccountInputSchema },
|
|
885
886
|
{ successMessage: "Account connected" },
|
|
886
|
-
async ({
|
|
887
|
+
async ({
|
|
888
|
+
ott,
|
|
889
|
+
urlParams,
|
|
890
|
+
syncIntervalS,
|
|
891
|
+
startSync,
|
|
892
|
+
lastSyncAt,
|
|
893
|
+
address
|
|
894
|
+
}) => {
|
|
887
895
|
const ottRow = await getOttQuery(this.db, {
|
|
888
896
|
ott
|
|
889
897
|
});
|
|
@@ -925,7 +933,8 @@ let BankServiceBase = class extends develitWorker(WorkerEntrypoint) {
|
|
|
925
933
|
return upsertAccountCommand(this.db, {
|
|
926
934
|
account: {
|
|
927
935
|
...base,
|
|
928
|
-
...existingPart
|
|
936
|
+
...existingPart,
|
|
937
|
+
...address && { address }
|
|
929
938
|
}
|
|
930
939
|
}).command;
|
|
931
940
|
});
|