anymal-protocol 1.0.93 → 1.0.95

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/index.d.mts CHANGED
@@ -240,10 +240,12 @@ declare enum ActionSourceType {
240
240
  }
241
241
  declare enum ActionStatus {
242
242
  PENDING = "PENDING",
243
+ PROCESSING = "PROCESSING",
243
244
  VALIDATED = "VALIDATED_ONCHAIN",
244
245
  CLAIMING = "CLAIMING",
245
246
  CLAIMED = "CLAIMED",
246
- REJECTED = "REJECTED"
247
+ REJECTED = "REJECTED",
248
+ ERROR = "ERROR"
247
249
  }
248
250
  /**
249
251
  * How the marketplace item can be verified, stripe transaction, anymal transaction, etc
@@ -308,7 +310,7 @@ declare const convertToMultipleActionDefinitions: (frs: ActionDefinition[]) => A
308
310
  */
309
311
  interface BaseActionPayload {
310
312
  multiplier?: number;
311
- campaignId?: string;
313
+ campaign_id?: string;
312
314
  actionId: string;
313
315
  timestamp: string;
314
316
  nonce: string;
package/dist/index.d.ts CHANGED
@@ -240,10 +240,12 @@ declare enum ActionSourceType {
240
240
  }
241
241
  declare enum ActionStatus {
242
242
  PENDING = "PENDING",
243
+ PROCESSING = "PROCESSING",
243
244
  VALIDATED = "VALIDATED_ONCHAIN",
244
245
  CLAIMING = "CLAIMING",
245
246
  CLAIMED = "CLAIMED",
246
- REJECTED = "REJECTED"
247
+ REJECTED = "REJECTED",
248
+ ERROR = "ERROR"
247
249
  }
248
250
  /**
249
251
  * How the marketplace item can be verified, stripe transaction, anymal transaction, etc
@@ -308,7 +310,7 @@ declare const convertToMultipleActionDefinitions: (frs: ActionDefinition[]) => A
308
310
  */
309
311
  interface BaseActionPayload {
310
312
  multiplier?: number;
311
- campaignId?: string;
313
+ campaign_id?: string;
312
314
  actionId: string;
313
315
  timestamp: string;
314
316
  nonce: string;
package/dist/index.js CHANGED
@@ -2196,10 +2196,12 @@ var ActionSourceType = /* @__PURE__ */ ((ActionSourceType3) => {
2196
2196
  })(ActionSourceType || {});
2197
2197
  var ActionStatus = /* @__PURE__ */ ((ActionStatus2) => {
2198
2198
  ActionStatus2["PENDING"] = "PENDING";
2199
+ ActionStatus2["PROCESSING"] = "PROCESSING";
2199
2200
  ActionStatus2["VALIDATED"] = "VALIDATED_ONCHAIN";
2200
2201
  ActionStatus2["CLAIMING"] = "CLAIMING";
2201
2202
  ActionStatus2["CLAIMED"] = "CLAIMED";
2202
2203
  ActionStatus2["REJECTED"] = "REJECTED";
2204
+ ActionStatus2["ERROR"] = "ERROR";
2203
2205
  return ActionStatus2;
2204
2206
  })(ActionStatus || {});
2205
2207
  var MarketplacePaymentType = /* @__PURE__ */ ((MarketplacePaymentType2) => {
@@ -2474,7 +2476,7 @@ function useSubmitContractAction() {
2474
2476
  if (!idToken || !pid || !source || !endpoint || !payload) return;
2475
2477
  let sourceTypePayload = {};
2476
2478
  const basisType = {
2477
- campaignId: payload.campaignId,
2479
+ campaign_id: payload.campaign_id,
2478
2480
  multiplier: payload.multiplier,
2479
2481
  actionId: payload.actionId,
2480
2482
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
package/dist/index.mjs CHANGED
@@ -2053,10 +2053,12 @@ var ActionSourceType = /* @__PURE__ */ ((ActionSourceType3) => {
2053
2053
  })(ActionSourceType || {});
2054
2054
  var ActionStatus = /* @__PURE__ */ ((ActionStatus2) => {
2055
2055
  ActionStatus2["PENDING"] = "PENDING";
2056
+ ActionStatus2["PROCESSING"] = "PROCESSING";
2056
2057
  ActionStatus2["VALIDATED"] = "VALIDATED_ONCHAIN";
2057
2058
  ActionStatus2["CLAIMING"] = "CLAIMING";
2058
2059
  ActionStatus2["CLAIMED"] = "CLAIMED";
2059
2060
  ActionStatus2["REJECTED"] = "REJECTED";
2061
+ ActionStatus2["ERROR"] = "ERROR";
2060
2062
  return ActionStatus2;
2061
2063
  })(ActionStatus || {});
2062
2064
  var MarketplacePaymentType = /* @__PURE__ */ ((MarketplacePaymentType2) => {
@@ -2331,7 +2333,7 @@ function useSubmitContractAction() {
2331
2333
  if (!idToken || !pid || !source || !endpoint || !payload) return;
2332
2334
  let sourceTypePayload = {};
2333
2335
  const basisType = {
2334
- campaignId: payload.campaignId,
2336
+ campaign_id: payload.campaign_id,
2335
2337
  multiplier: payload.multiplier,
2336
2338
  actionId: payload.actionId,
2337
2339
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anymal-protocol",
3
- "version": "1.0.93",
3
+ "version": "1.0.95",
4
4
  "description": "A React/TypeScript-based utility library for reusable functions and hooks inside of the Anymal Ecosystem.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {