@delopay/sdk 0.204.0 → 0.204.1

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.cts CHANGED
@@ -6625,8 +6625,8 @@ type ExternalRecordTarget = {
6625
6625
  /**
6626
6626
  * Which environment the movement happened in, stated by the operator.
6627
6627
  *
6628
- * Required, and required here only: there is deliberately no default and
6629
- * no inference from the connector's current settings, because a record
6628
+ * Required: there is deliberately no default and no inference from the
6629
+ * connector's current settings, because a record
6630
6630
  * filed against the wrong environment is indistinguishable afterwards
6631
6631
  * from a real one.
6632
6632
  */
@@ -6675,6 +6675,11 @@ type ExternalRecordTarget = {
6675
6675
  resource: 'payout';
6676
6676
  payout_id: string;
6677
6677
  status: PayoutStatus;
6678
+ /**
6679
+ * Which environment the movement happened in, explicitly attested by the
6680
+ * operator. Required; never defaulted or inferred from connector settings.
6681
+ */
6682
+ environment: ExternalRecordEnvironment;
6678
6683
  };
6679
6684
  /**
6680
6685
  * Record that a payment, refund, dispute or payout reached a state DeloPay
package/dist/index.d.ts CHANGED
@@ -6625,8 +6625,8 @@ type ExternalRecordTarget = {
6625
6625
  /**
6626
6626
  * Which environment the movement happened in, stated by the operator.
6627
6627
  *
6628
- * Required, and required here only: there is deliberately no default and
6629
- * no inference from the connector's current settings, because a record
6628
+ * Required: there is deliberately no default and no inference from the
6629
+ * connector's current settings, because a record
6630
6630
  * filed against the wrong environment is indistinguishable afterwards
6631
6631
  * from a real one.
6632
6632
  */
@@ -6675,6 +6675,11 @@ type ExternalRecordTarget = {
6675
6675
  resource: 'payout';
6676
6676
  payout_id: string;
6677
6677
  status: PayoutStatus;
6678
+ /**
6679
+ * Which environment the movement happened in, explicitly attested by the
6680
+ * operator. Required; never defaulted or inferred from connector settings.
6681
+ */
6682
+ environment: ExternalRecordEnvironment;
6678
6683
  };
6679
6684
  /**
6680
6685
  * Record that a payment, refund, dispute or payout reached a state DeloPay
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delopay/sdk",
3
- "version": "0.204.0",
3
+ "version": "0.204.1",
4
4
  "description": "Official Delopay TypeScript SDK",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -32,6 +32,21 @@
32
32
  "files": [
33
33
  "dist"
34
34
  ],
35
+ "scripts": {
36
+ "build": "tsup",
37
+ "prepublishOnly": "pnpm check && tsup",
38
+ "test": "vitest run",
39
+ "test:watch": "vitest",
40
+ "typecheck": "tsc --noEmit",
41
+ "lint": "oxlint && eslint .",
42
+ "lint:fix": "oxlint --fix && eslint . --fix",
43
+ "format": "prettier --write .",
44
+ "format:check": "prettier --check .",
45
+ "check": "pnpm typecheck && pnpm lint && pnpm format:check && pnpm test && pnpm check:parity",
46
+ "check:parity": "node scripts/parity-check.mjs",
47
+ "validate:types": "npx tsx scripts/validate-types.ts",
48
+ "gen:parity-corpus": "npx tsx scripts/gen-custom-field-parity-corpus.ts ../delopay-backend/crates/router/src/core/payment_link/custom_fields_parity_corpus.json"
49
+ },
35
50
  "devDependencies": {
36
51
  "@eslint/js": "^10.0.1",
37
52
  "@types/node": "^25.6.0",
@@ -46,19 +61,5 @@
46
61
  "engines": {
47
62
  "node": ">=18.0.0"
48
63
  },
49
- "license": "MIT",
50
- "scripts": {
51
- "build": "tsup",
52
- "test": "vitest run",
53
- "test:watch": "vitest",
54
- "typecheck": "tsc --noEmit",
55
- "lint": "oxlint && eslint .",
56
- "lint:fix": "oxlint --fix && eslint . --fix",
57
- "format": "prettier --write .",
58
- "format:check": "prettier --check .",
59
- "check": "pnpm typecheck && pnpm lint && pnpm format:check && pnpm test && pnpm check:parity",
60
- "check:parity": "node scripts/parity-check.mjs",
61
- "validate:types": "npx tsx scripts/validate-types.ts",
62
- "gen:parity-corpus": "npx tsx scripts/gen-custom-field-parity-corpus.ts ../delopay-backend/crates/router/src/core/payment_link/custom_fields_parity_corpus.json"
63
- }
64
- }
64
+ "license": "MIT"
65
+ }