@otim/utils 0.0.2-development.0 → 0.0.3
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/api/index.js +11 -6
- package/dist/api/index.js.map +2 -2
- package/dist/api/index.mjs +11 -6
- package/dist/api/index.mjs.map +2 -2
- package/dist/api/schemas/payments.d.mts +3 -0
- package/dist/api/schemas/payments.d.ts +3 -0
- package/dist/api/schemas/payments.d.ts.map +1 -1
- package/dist/chains/config/all-chains.d.mts +4 -4
- package/dist/chains/config/all-chains.d.ts +4 -4
- package/dist/chains/config/all-chains.d.ts.map +1 -1
- package/dist/chains/index.js +8 -2
- package/dist/chains/index.js.map +2 -2
- package/dist/chains/index.mjs +8 -2
- package/dist/chains/index.mjs.map +2 -2
- package/dist/helpers/index.js +20 -0
- package/dist/helpers/index.js.map +2 -2
- package/dist/helpers/index.mjs +20 -0
- package/dist/helpers/index.mjs.map +2 -2
- package/dist/helpers/zod.d.mts +21 -0
- package/dist/helpers/zod.d.ts +21 -0
- package/dist/helpers/zod.d.ts.map +1 -1
- package/dist/payments/build.d.mts +1 -0
- package/dist/payments/build.d.ts +1 -0
- package/dist/payments/build.d.ts.map +1 -1
- package/dist/payments/comprehensive-payment-request.d.mts +1 -0
- package/dist/payments/comprehensive-payment-request.d.ts +1 -0
- package/dist/payments/comprehensive-payment-request.d.ts.map +1 -1
- package/dist/payments/index.js +16 -12
- package/dist/payments/index.js.map +2 -2
- package/dist/payments/index.mjs +16 -12
- package/dist/payments/index.mjs.map +2 -2
- package/dist/server/index.js +3 -3
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/api/index.js
CHANGED
|
@@ -1228,7 +1228,10 @@ var paymentRequestBuildRequestSchema = import_zod16.z.object({
|
|
|
1228
1228
|
payerAddress: hexStringSchema.nullish(),
|
|
1229
1229
|
completionInstructions: import_zod16.z.array(buildEphemeralInstructionSchema),
|
|
1230
1230
|
instructions: import_zod16.z.array(buildEphemeralInstructionSchema),
|
|
1231
|
-
metadata: import_zod16.z.record(import_zod16.z.string(), import_zod16.z.unknown()).optional().default({})
|
|
1231
|
+
metadata: import_zod16.z.record(import_zod16.z.string(), import_zod16.z.unknown()).optional().default({}),
|
|
1232
|
+
maxRuns: import_zod16.z.number().int().positive({ message: "maxRuns must be greater than 0" }).max(Number.MAX_SAFE_INTEGER, {
|
|
1233
|
+
message: "maxRuns must be less than MAX_SAFE_INTEGER"
|
|
1234
|
+
}).optional()
|
|
1232
1235
|
});
|
|
1233
1236
|
var feeResponseSchema2 = import_zod16.z.object({
|
|
1234
1237
|
token: hexStringSchema,
|
|
@@ -1276,7 +1279,9 @@ var paymentRequestDetailsResponseSchema = import_zod16.z.object({
|
|
|
1276
1279
|
ephemeralWalletAddress: hexStringSchema,
|
|
1277
1280
|
ephemeralWalletId: import_zod16.z.string().optional(),
|
|
1278
1281
|
status: import_zod16.z.enum(["pending", "inProgress", "paid", "cancelled", "draft"]),
|
|
1279
|
-
metadata: import_zod16.z.record(import_zod16.z.string(), import_zod16.z.unknown())
|
|
1282
|
+
metadata: import_zod16.z.record(import_zod16.z.string(), import_zod16.z.unknown()),
|
|
1283
|
+
numRuns: import_zod16.z.number(),
|
|
1284
|
+
maxRuns: import_zod16.z.number().optional()
|
|
1280
1285
|
});
|
|
1281
1286
|
|
|
1282
1287
|
// src/api/schemas/transaction.ts
|
|
@@ -1728,7 +1733,7 @@ var PaymentsService = class extends BaseService {
|
|
|
1728
1733
|
}
|
|
1729
1734
|
async buildPaymentRequest(requestBody) {
|
|
1730
1735
|
return this.makeRequest({
|
|
1731
|
-
url: "/
|
|
1736
|
+
url: "/orchestration/build",
|
|
1732
1737
|
method: HttpMethod.Post,
|
|
1733
1738
|
data: requestBody,
|
|
1734
1739
|
schema: paymentRequestBuildResponseSchema
|
|
@@ -1736,7 +1741,7 @@ var PaymentsService = class extends BaseService {
|
|
|
1736
1741
|
}
|
|
1737
1742
|
async newPaymentRequest(requestBody) {
|
|
1738
1743
|
return this.makeRequest({
|
|
1739
|
-
url: "/
|
|
1744
|
+
url: "/orchestration/new",
|
|
1740
1745
|
method: HttpMethod.Post,
|
|
1741
1746
|
data: requestBody,
|
|
1742
1747
|
validateResponse: () => true
|
|
@@ -1744,7 +1749,7 @@ var PaymentsService = class extends BaseService {
|
|
|
1744
1749
|
}
|
|
1745
1750
|
async getPaymentRequestDetails(requestBody) {
|
|
1746
1751
|
return this.makeRequest({
|
|
1747
|
-
url: "/
|
|
1752
|
+
url: "/orchestration/details",
|
|
1748
1753
|
method: HttpMethod.Get,
|
|
1749
1754
|
data: requestBody,
|
|
1750
1755
|
schema: paymentRequestDetailsResponseSchema
|
|
@@ -1752,7 +1757,7 @@ var PaymentsService = class extends BaseService {
|
|
|
1752
1757
|
}
|
|
1753
1758
|
async getPaymentRequests(request) {
|
|
1754
1759
|
return this.makePaginatedRequest({
|
|
1755
|
-
url: "/
|
|
1760
|
+
url: "/orchestrations",
|
|
1756
1761
|
method: HttpMethod.Get,
|
|
1757
1762
|
data: request,
|
|
1758
1763
|
schema: getPaymentRequestsResponseSchema
|