@otim/utils 0.0.2 → 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.
@@ -1086,7 +1086,10 @@ var paymentRequestBuildRequestSchema = z16.object({
1086
1086
  payerAddress: hexStringSchema.nullish(),
1087
1087
  completionInstructions: z16.array(buildEphemeralInstructionSchema),
1088
1088
  instructions: z16.array(buildEphemeralInstructionSchema),
1089
- metadata: z16.record(z16.string(), z16.unknown()).optional().default({})
1089
+ metadata: z16.record(z16.string(), z16.unknown()).optional().default({}),
1090
+ maxRuns: z16.number().int().positive({ message: "maxRuns must be greater than 0" }).max(Number.MAX_SAFE_INTEGER, {
1091
+ message: "maxRuns must be less than MAX_SAFE_INTEGER"
1092
+ }).optional()
1090
1093
  });
1091
1094
  var feeResponseSchema2 = z16.object({
1092
1095
  token: hexStringSchema,
@@ -1134,7 +1137,9 @@ var paymentRequestDetailsResponseSchema = z16.object({
1134
1137
  ephemeralWalletAddress: hexStringSchema,
1135
1138
  ephemeralWalletId: z16.string().optional(),
1136
1139
  status: z16.enum(["pending", "inProgress", "paid", "cancelled", "draft"]),
1137
- metadata: z16.record(z16.string(), z16.unknown())
1140
+ metadata: z16.record(z16.string(), z16.unknown()),
1141
+ numRuns: z16.number(),
1142
+ maxRuns: z16.number().optional()
1138
1143
  });
1139
1144
 
1140
1145
  // src/api/schemas/transaction.ts
@@ -1152,7 +1157,7 @@ var transactionGetListRequestSchema = z17.object({
1152
1157
  var transactionGetListResponseSchema = z17.array(transactionSchema);
1153
1158
 
1154
1159
  // src/env.ts
1155
- var BUILD_MODE = "production";
1160
+ var BUILD_MODE = "development";
1156
1161
 
1157
1162
  // src/helpers/logger.ts
1158
1163
  var Logger = class {
@@ -1586,7 +1591,7 @@ var PaymentsService = class extends BaseService {
1586
1591
  }
1587
1592
  async buildPaymentRequest(requestBody) {
1588
1593
  return this.makeRequest({
1589
- url: "/payment/request/build",
1594
+ url: "/orchestration/build",
1590
1595
  method: HttpMethod.Post,
1591
1596
  data: requestBody,
1592
1597
  schema: paymentRequestBuildResponseSchema
@@ -1594,7 +1599,7 @@ var PaymentsService = class extends BaseService {
1594
1599
  }
1595
1600
  async newPaymentRequest(requestBody) {
1596
1601
  return this.makeRequest({
1597
- url: "/payment/request/new",
1602
+ url: "/orchestration/new",
1598
1603
  method: HttpMethod.Post,
1599
1604
  data: requestBody,
1600
1605
  validateResponse: () => true
@@ -1602,7 +1607,7 @@ var PaymentsService = class extends BaseService {
1602
1607
  }
1603
1608
  async getPaymentRequestDetails(requestBody) {
1604
1609
  return this.makeRequest({
1605
- url: "/payment/request/details",
1610
+ url: "/orchestration/details",
1606
1611
  method: HttpMethod.Get,
1607
1612
  data: requestBody,
1608
1613
  schema: paymentRequestDetailsResponseSchema
@@ -1610,7 +1615,7 @@ var PaymentsService = class extends BaseService {
1610
1615
  }
1611
1616
  async getPaymentRequests(request) {
1612
1617
  return this.makePaginatedRequest({
1613
- url: "/payment/requests",
1618
+ url: "/orchestrations",
1614
1619
  method: HttpMethod.Get,
1615
1620
  data: request,
1616
1621
  schema: getPaymentRequestsResponseSchema