wapi-client 0.9.2 → 0.9.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.
Files changed (42) hide show
  1. package/dist/api/ws-client.cjs +1 -1
  2. package/dist/api/ws-client.js +1 -1
  3. package/dist/client.cjs +1 -1
  4. package/dist/client.d.ts +4 -4
  5. package/dist/client.js +1 -1
  6. package/dist/fns/aggregate-transfers/aggregate-transfers.d.ts +1 -1
  7. package/dist/fns/find-tokens/find-tokens.enums.d.ts +2 -3
  8. package/dist/fns/find-tokens/find-tokens.schema.input.json +1 -16
  9. package/dist/fns/find-transfer-groups/find-transfer-groups.enums.d.ts +2 -8
  10. package/dist/fns/find-transfer-groups/find-transfer-groups.schema.input.json +3 -34
  11. package/dist/fns/find-wallets/find-wallets.enums.d.ts +1 -1
  12. package/dist/fns/reverse-transfers/reverse-transfers.d.ts +1 -1
  13. package/dist/fns/update-transfer-groups/update-transfer-groups.d.ts +1 -1
  14. package/dist/fns/update-transfers/update-transfers.d.ts +1 -1
  15. package/dist/lib/errors.browser.cjs +25 -0
  16. package/dist/lib/errors.browser.js +25 -0
  17. package/dist/lib/errors.cjs +25 -0
  18. package/dist/lib/errors.d.ts +180 -95
  19. package/dist/lib/errors.js +25 -0
  20. package/dist/lib/query-builder.d.ts +6 -8
  21. package/dist/txs/create-distribution/create-distribution.enums.d.ts +1 -1
  22. package/dist/txs/find-balance-many/find-balance-many.enums.d.ts +1 -1
  23. package/dist/txs/find-token-many/find-token-many.enums.d.ts +4 -3
  24. package/dist/txs/find-token-many/find-token-many.schema.input.json +6 -0
  25. package/dist/txs/find-token-many/find-token-many.schema.output.json +8 -1
  26. package/dist/txs/find-transfer-group-many/find-transfer-group-many.enums.d.ts +10 -4
  27. package/dist/txs/find-transfer-group-many/find-transfer-group-many.schema.input.json +4 -3
  28. package/dist/txs/find-transfer-group-many/find-transfer-group-many.schema.output.json +23 -1
  29. package/dist/txs/find-transfer-many/find-transfer-many.enums.d.ts +1 -1
  30. package/dist/txs/get-balance-history/get-balance-history.enums.d.ts +5 -1
  31. package/dist/txs/get-balance-history/get-balance-history.schema.output.json +7 -1
  32. package/dist/txs/get-token/get-token.enums.d.ts +43 -1
  33. package/dist/txs/get-token/get-token.schema.input.json +5 -1
  34. package/dist/txs/get-token/get-token.schema.output.json +63 -2
  35. package/dist/txs/get-token-many/get-token-many.enums.d.ts +6 -2
  36. package/dist/txs/get-token-many/get-token-many.schema.input.json +5 -0
  37. package/dist/txs/get-token-many/get-token-many.schema.output.json +3 -0
  38. package/dist/txs/update-transfer-group/update-transfer-group.enums.d.ts +1 -1
  39. package/dist/types/index.d.ts +271 -138
  40. package/dist/wapi-client-web.iife.js +1 -1
  41. package/dist/wapi-client.iife.js +1 -1
  42. package/package.json +2 -3
@@ -61,7 +61,7 @@ var import_base_client = require('./base-client.cjs');
61
61
  var import_connection = require('./connection/connection.enums.cjs');
62
62
  var import__ = require('../index.cjs');
63
63
  var _a;
64
- var CLIENT_VERSION = (_a = '0.9.2') != null ? _a : "";
64
+ var CLIENT_VERSION = (_a = '0.9.5') != null ? _a : "";
65
65
  function createWsClient(opts) {
66
66
  const initialConnection = createConnection(opts);
67
67
  return new WsClient(initialConnection, opts);
@@ -31,7 +31,7 @@ import {
31
31
  } from "./connection/connection.enums";
32
32
  import { WapiClientType } from "../index";
33
33
  var _a;
34
- var CLIENT_VERSION = (_a = '0.9.2') != null ? _a : "";
34
+ var CLIENT_VERSION = (_a = '0.9.5') != null ? _a : "";
35
35
  function createWsClient(opts) {
36
36
  const initialConnection = createConnection(opts);
37
37
  return new WsClient(initialConnection, opts);
package/dist/client.cjs CHANGED
@@ -66,7 +66,7 @@ var import_errors = require('./lib/errors.cjs');
66
66
  var import_fns = require('./fns/index.cjs');
67
67
  var import_import_data = require('./fns/import-data/import-data.guards.cjs');
68
68
  var _a;
69
- var CLIENT_VERSION = (_a = '0.9.2') != null ? _a : "";
69
+ var CLIENT_VERSION = (_a = '0.9.5') != null ? _a : "";
70
70
  var Client = class {
71
71
  /**
72
72
  * @internal
package/dist/client.d.ts CHANGED
@@ -215,7 +215,7 @@ export declare class Client {
215
215
  * @returns {StreamPromise<AggregateTransfersFnOutput>}
216
216
  *
217
217
  */
218
- aggregateTransfers(): AggregateQueryBuilder<AggregateTransfersFnFields, AggregateTransfersFnStringFields, AggregateTransfersFnMetadataFields, AggregateTransfersFnGroupFields, AggregateTransfersFnOutput>;
218
+ aggregateTransfers(): AggregateQueryBuilder<AggregateTransfersFnFields, AggregateTransfersFnStringFields, AggregateTransfersFnMetadataFields, AggregateTransfersFnGroupFields, AggregateTransfersFnOptions, AggregateTransfersFnOutput>;
219
219
  aggregateTransfers(input: AggregateTransfersFnInput, options?: AggregateTransfersFnOptions): StreamPromise<AggregateTransfersFnOutput>;
220
220
  /**
221
221
  *
@@ -1515,7 +1515,7 @@ export declare class Client {
1515
1515
  * @returns {StreamPromise<ReverseTransfersFnOutput>}
1516
1516
  *
1517
1517
  */
1518
- reverseTransfers(): ReverseQueryBuilder<ReverseTransfersFnFields, ReverseTransfersFnStringFields, ReverseTransfersFnMetadataFields, ReverseTransfersFnModifications, ReverseTransfersFnOutput>;
1518
+ reverseTransfers(): ReverseQueryBuilder<ReverseTransfersFnFields, ReverseTransfersFnStringFields, ReverseTransfersFnMetadataFields, ReverseTransfersFnModifications, ReverseTransfersFnOptions, ReverseTransfersFnOutput>;
1519
1519
  reverseTransfers(input: ReverseTransfersFnInput, options?: ReverseTransfersFnOptions): StreamPromise<ReverseTransfersFnOutput>;
1520
1520
  /**
1521
1521
  *
@@ -1729,7 +1729,7 @@ export declare class Client {
1729
1729
  * @returns {StreamPromise<UpdateTransferGroupsFnOutput>}
1730
1730
  *
1731
1731
  */
1732
- updateTransferGroups(): UpdateQueryBuilder<UpdateTransferGroupsFnFields, UpdateTransferGroupsFnStringFields, UpdateTransferGroupsFnMetadataFields, UpdateTransferGroupsFnResultFields, UpdateTransferGroupsFnUpdateFields, UpdateTransferGroupsFnOutput>;
1732
+ updateTransferGroups(): UpdateQueryBuilder<UpdateTransferGroupsFnFields, UpdateTransferGroupsFnStringFields, UpdateTransferGroupsFnMetadataFields, UpdateTransferGroupsFnResultFields, UpdateTransferGroupsFnUpdateFields, UpdateTransferGroupsFnOptions, UpdateTransferGroupsFnOutput>;
1733
1733
  updateTransferGroups(input: UpdateTransferGroupsFnInput, options?: UpdateTransferGroupsFnOptions): StreamPromise<UpdateTransferGroupsFnOutput>;
1734
1734
  /**
1735
1735
  *
@@ -1758,7 +1758,7 @@ export declare class Client {
1758
1758
  * @returns {StreamPromise<UpdateTransfersFnOutput>}
1759
1759
  *
1760
1760
  */
1761
- updateTransfers(): UpdateQueryBuilder<UpdateTransfersFnFields, UpdateTransfersFnStringFields, UpdateTransfersFnMetadataFields, UpdateTransfersFnResultFields, UpdateTransfersFnUpdateFields, UpdateTransfersFnOutput>;
1761
+ updateTransfers(): UpdateQueryBuilder<UpdateTransfersFnFields, UpdateTransfersFnStringFields, UpdateTransfersFnMetadataFields, UpdateTransfersFnResultFields, UpdateTransfersFnUpdateFields, UpdateTransfersFnOptions, UpdateTransfersFnOutput>;
1762
1762
  updateTransfers(input: UpdateTransfersFnInput, options?: UpdateTransfersFnOptions): StreamPromise<UpdateTransfersFnOutput>;
1763
1763
  /**
1764
1764
  * Update Wallet
package/dist/client.js CHANGED
@@ -50,7 +50,7 @@ import {
50
50
  isImportDataFnInput
51
51
  } from "./fns/import-data/import-data.guards";
52
52
  var _a;
53
- var CLIENT_VERSION = (_a = '0.9.2') != null ? _a : "";
53
+ var CLIENT_VERSION = (_a = '0.9.5') != null ? _a : "";
54
54
  var Client = class {
55
55
  /**
56
56
  * @internal
@@ -15,5 +15,5 @@ export type AggregateTransfersFnGroupFields = AggregateTransferManyGroupByFields
15
15
  * Aggregate Transfers using either a simple filter or queryBuilder
16
16
  *
17
17
  */
18
- export declare function aggregateTransfers(options: ClientFunctionOptions): AggregateQueryBuilder<AggregateTransfersFnFields, AggregateTransfersFnStringFields, AggregateTransfersFnMetadataFields, AggregateTransfersFnGroupFields, AggregateTransfersFnOutput>;
18
+ export declare function aggregateTransfers(options: ClientFunctionOptions): AggregateQueryBuilder<AggregateTransfersFnFields, AggregateTransfersFnStringFields, AggregateTransfersFnMetadataFields, AggregateTransfersFnGroupFields, AggregateTransfersFnOptions, AggregateTransfersFnOutput>;
19
19
  export declare function aggregateTransfers(options: ClientFunctionOptions, input: AggregateTransfersFnInput, fnOptions?: AggregateTransfersFnOptions): StreamPromise<AggregateTransfersFnOutput>;
@@ -1,12 +1,11 @@
1
1
  import { DbFilterMetadata } from '../../db/consts.enums';
2
2
  import { IFnFindOptionsExtra } from '../fn-consts.enums';
3
- import { ITxLimitingOptions, ITxGeneralOptions, ITxSelectOptions, ITxDeselectOptions, ITxMetadataOptions } from '../../txs/tx-consts.enums';
4
- import { FindTokenManyOrderingOptions, FindTokenManyTxOutput } from '../../txs/find-token-many/find-token-many.enums';
3
+ import { FindTokenManyTxOptions, FindTokenManyTxOutput } from '../../txs/find-token-many/find-token-many.enums';
5
4
  export type FindTokensFnInputStringFields = 'foreign' | 'belongs_to';
6
5
  /**
7
6
  * findtokens function options
8
7
  */
9
- export type FindTokensFnOptions = IFnFindOptionsExtra & ITxLimitingOptions & FindTokenManyOrderingOptions & ITxGeneralOptions & ITxSelectOptions & ITxDeselectOptions & ITxMetadataOptions;
8
+ export type FindTokensFnOptions = IFnFindOptionsExtra & FindTokenManyTxOptions;
10
9
  /**
11
10
  * Input for findTokens
12
11
  *
@@ -32,22 +32,7 @@
32
32
  "$ref": "/fns/fn-consts.schema.json#/definitions/i_fn_find_options_extra"
33
33
  },
34
34
  {
35
- "$ref": "/txs/tx-consts.schema.json#/definitions/i_tx_limiting_options"
36
- },
37
- {
38
- "$ref": "/txs/find-token-many/find-token-many.schema.input.json#/definitions/find_token_many_ordering_options"
39
- },
40
- {
41
- "$ref": "/txs/tx-consts.schema.json#/definitions/i_tx_general_options"
42
- },
43
- {
44
- "$ref": "/txs/tx-consts.schema.json#/definitions/i_tx_select_options"
45
- },
46
- {
47
- "$ref": "/txs/tx-consts.schema.json#/definitions/i_tx_deselect_options"
48
- },
49
- {
50
- "$ref": "/txs/tx-consts.schema.json#/definitions/i_tx_metadata_options"
35
+ "$ref": "/txs/find-token-many/find-token-many.schema.input.json#/definitions/find_token_many_tx_options"
51
36
  }
52
37
  ]
53
38
  }
@@ -1,17 +1,11 @@
1
1
  import { DbFilterMetadata, TransferGroupType } from '../../db/consts.enums';
2
2
  import { IFnFindOptionsExtra } from '../fn-consts.enums';
3
- import { ITxLimitingOptions, ITxGeneralOptions, ITxSelectOptions, ITxDeselectOptions, ITxMetadataOptions } from '../../txs/tx-consts.enums';
4
- import { FindTransferGroupManyOrderingOptions, FindTransferGroupManyTxOutput } from '../../txs/find-transfer-group-many/find-transfer-group-many.enums';
5
- /**
6
- * simplified options for findTransferGroups
7
- */
8
- export interface FindTransferGroupsFnExtraOptions {
9
- }
3
+ import { FindTransferGroupManyTxOptions, FindTransferGroupManyTxOutput } from '../../txs/find-transfer-group-many/find-transfer-group-many.enums';
10
4
  export type FindTransferGroupsFnInputStringFields = 'identifier' | 'reverses';
11
5
  /**
12
6
  * findTransferGroups function options
13
7
  */
14
- export type FindTransferGroupsFnOptions = IFnFindOptionsExtra & ITxLimitingOptions & FindTransferGroupManyOrderingOptions & ITxGeneralOptions & FindTransferGroupsFnExtraOptions & ITxSelectOptions & ITxDeselectOptions & ITxMetadataOptions;
8
+ export type FindTransferGroupsFnOptions = IFnFindOptionsExtra & FindTransferGroupManyTxOptions;
15
9
  /**
16
10
  * Input for findTransferGroups
17
11
  *
@@ -7,10 +7,7 @@
7
7
  "properties": {
8
8
  "identifier": {
9
9
  "description": "Identifier of the transfer_group",
10
- "type": [
11
- "string",
12
- "integer"
13
- ]
10
+ "type": ["string", "integer"]
14
11
  },
15
12
  "transfer_status": {
16
13
  "description": "Status of the transfers",
@@ -26,10 +23,7 @@
26
23
  },
27
24
  "reverses": {
28
25
  "description": "Identifier of the transfer_group the transfer_group reverses",
29
- "type": [
30
- "string",
31
- "integer"
32
- ]
26
+ "type": ["string", "integer"]
33
27
  },
34
28
  "type": {
35
29
  "description": "Type of the transfer group",
@@ -47,34 +41,9 @@
47
41
  "$ref": "/fns/fn-consts.schema.json#/definitions/i_fn_find_options_extra"
48
42
  },
49
43
  {
50
- "$ref": "/txs/tx-consts.schema.json#/definitions/i_tx_limiting_options"
51
- },
52
- {
53
- "$ref": "/txs/find-transfer-group-many/find-transfer-group-many.schema.input.json#/definitions/find_transfer_group_many_ordering_options"
54
- },
55
- {
56
- "$ref": "/txs/tx-consts.schema.json#/definitions/i_tx_general_options"
57
- },
58
- {
59
- "$ref": "#/definitions/find_transfer_groups_fn_extra_options"
60
- },
61
- {
62
- "$ref": "/txs/tx-consts.schema.json#/definitions/i_tx_select_options"
63
- },
64
- {
65
- "$ref": "/txs/tx-consts.schema.json#/definitions/i_tx_deselect_options"
66
- },
67
- {
68
- "$ref": "/txs/tx-consts.schema.json#/definitions/i_tx_metadata_options"
44
+ "$ref": "/txs/find-transfer-group-many/find-transfer-group-many.schema.input.json#/definitions/find_transfer_group_many_tx_options"
69
45
  }
70
46
  ]
71
- },
72
- "find_transfer_groups_fn_extra_options": {
73
- "description": "simplified options for findTransferGroups",
74
- "type": "object",
75
- "properties": {
76
- },
77
- "$typescript": "{\"additionalProperties\":false}"
78
47
  }
79
48
  },
80
49
  "$queryBuilder": true,
@@ -10,7 +10,7 @@ export interface FindWalletsFnExtraOptions {
10
10
  /**
11
11
  * Optional flags for input
12
12
  */
13
- export type FindWalletsFnOptions = IFnFindOptionsExtra & FindWalletManyTxOptions & FindWalletsFnExtraOptions;
13
+ export type FindWalletsFnOptions = IFnFindOptionsExtra & Omit<FindWalletManyTxOptions, keyof FindWalletsFnExtraOptions> & FindWalletsFnExtraOptions;
14
14
  /**
15
15
  * Input for findWallets
16
16
  *
@@ -13,5 +13,5 @@ export type ReverseTransfersFnMetadataFields = TransferTableObjectFields;
13
13
  * @internal
14
14
  *
15
15
  */
16
- export declare function reverseTransfers(options: ClientFunctionOptions): ReverseQueryBuilder<ReverseTransfersFnFields, ReverseTransfersFnStringFields, ReverseTransfersFnMetadataFields, ReverseTransfersFnModifications, ReverseTransfersFnOutput>;
16
+ export declare function reverseTransfers(options: ClientFunctionOptions): ReverseQueryBuilder<ReverseTransfersFnFields, ReverseTransfersFnStringFields, ReverseTransfersFnMetadataFields, ReverseTransfersFnModifications, ReverseTransfersFnOptions, ReverseTransfersFnOutput>;
17
17
  export declare function reverseTransfers(options: ClientFunctionOptions, input: ReverseTransfersFnInput, fnOptions: ReverseTransfersFnOptions): StreamPromise<ReverseTransfersFnOutput>;
@@ -14,5 +14,5 @@ export type UpdateTransferGroupsFnMetadataFields = TransferGroupTableObjectField
14
14
  * @internal
15
15
  *
16
16
  */
17
- export declare function updateTransferGroups(options: ClientFunctionOptions): UpdateQueryBuilder<UpdateTransferGroupsFnFields, UpdateTransferGroupsFnStringFields, UpdateTransferGroupsFnMetadataFields, UpdateTransferGroupsFnResultFields, UpdateTransferGroupData, UpdateTransferGroupsFnOutput>;
17
+ export declare function updateTransferGroups(options: ClientFunctionOptions): UpdateQueryBuilder<UpdateTransferGroupsFnFields, UpdateTransferGroupsFnStringFields, UpdateTransferGroupsFnMetadataFields, UpdateTransferGroupsFnResultFields, UpdateTransferGroupData, UpdateTransferGroupsFnOptions, UpdateTransferGroupsFnOutput>;
18
18
  export declare function updateTransferGroups(options: ClientFunctionOptions, input: UpdateTransferGroupsFnInput, fnOptions?: UpdateTransferGroupsFnOptions): StreamPromise<UpdateTransferGroupsFnOutput>;
@@ -13,5 +13,5 @@ export type UpdateTransfersFnMetadataFields = TransferTableObjectFields;
13
13
  * @internal
14
14
  *
15
15
  */
16
- export declare function updateTransfers(options: ClientFunctionOptions): UpdateQueryBuilder<UpdateTransfersFnFields, UpdateTransfersFnStringFields, UpdateTransfersFnMetadataFields, UpdateTransfersFnResultFields, UpdateTransfersFnUpdateFields, UpdateTransfersFnOutput>;
16
+ export declare function updateTransfers(options: ClientFunctionOptions): UpdateQueryBuilder<UpdateTransfersFnFields, UpdateTransfersFnStringFields, UpdateTransfersFnMetadataFields, UpdateTransfersFnResultFields, UpdateTransfersFnUpdateFields, UpdateTransfersFnOptions, UpdateTransfersFnOutput>;
17
17
  export declare function updateTransfers(options: ClientFunctionOptions, input: UpdateTransfersFnInput, fnOptions?: UpdateTransfersFnOptions): StreamPromise<UpdateTransfersFnOutput>;
@@ -420,6 +420,11 @@ var ERROR_GROUPS = {
420
420
  message: "TR_WITHDRAWAL_CANT_RV_WITHOUT_FLAG",
421
421
  description: `Withdrawals are expected connection points with outside systems, thus extra validation is required. Reversing a Transfer.type = 'withdrawal' requires reverse_withdrawal option to be true.`
422
422
  },
423
+ TR_UNIQUE_IDENTIFIER: {
424
+ code: -19115,
425
+ message: "TR_UNIQUE_IDENTIFIER",
426
+ description: `The identifier for Transfer object must be unique`
427
+ },
423
428
  TRG_SINGLE_PENDING_TR_CANT_RV: {
424
429
  code: -19200,
425
430
  message: "TRG_SINGLE_PENDING_TR_CANT_RV",
@@ -439,6 +444,26 @@ var ERROR_GROUPS = {
439
444
  code: -19203,
440
445
  message: "TRG_WITHDRAWAL_CANT_RV_WITHOUT_FLAG",
441
446
  description: `TransferGroup includes Transfer.type = 'withdrawal', thus for extra validation the reverse_withdrawal option must be set true`
447
+ },
448
+ TRG_UNIQUE_IDENTIFIER: {
449
+ code: -19204,
450
+ message: "TRG_UNIQUE_IDENTIFIER",
451
+ description: `The identifier for TransferGroup object must be unique`
452
+ },
453
+ TOKEN_UNIQUE_FOREIGN: {
454
+ code: -19300,
455
+ message: "TOKEN_UNIQUE_FOREIGN",
456
+ description: `The foreign for Token object must be unique`
457
+ },
458
+ WALLET_UNIQUE_FOREIGN: {
459
+ code: -19400,
460
+ message: "WALLET_UNIQUE_FOREIGN",
461
+ description: `The foreign for Wallet object must be unique`
462
+ },
463
+ UNIQUE_CONSTRAINT: {
464
+ code: -19500,
465
+ message: "UNIQUE_CONSTRAINT",
466
+ description: `Insert violates unique constraint`
442
467
  }
443
468
  }
444
469
  },
@@ -382,6 +382,11 @@ var ERROR_GROUPS = {
382
382
  message: "TR_WITHDRAWAL_CANT_RV_WITHOUT_FLAG",
383
383
  description: `Withdrawals are expected connection points with outside systems, thus extra validation is required. Reversing a Transfer.type = 'withdrawal' requires reverse_withdrawal option to be true.`
384
384
  },
385
+ TR_UNIQUE_IDENTIFIER: {
386
+ code: -19115,
387
+ message: "TR_UNIQUE_IDENTIFIER",
388
+ description: `The identifier for Transfer object must be unique`
389
+ },
385
390
  TRG_SINGLE_PENDING_TR_CANT_RV: {
386
391
  code: -19200,
387
392
  message: "TRG_SINGLE_PENDING_TR_CANT_RV",
@@ -401,6 +406,26 @@ var ERROR_GROUPS = {
401
406
  code: -19203,
402
407
  message: "TRG_WITHDRAWAL_CANT_RV_WITHOUT_FLAG",
403
408
  description: `TransferGroup includes Transfer.type = 'withdrawal', thus for extra validation the reverse_withdrawal option must be set true`
409
+ },
410
+ TRG_UNIQUE_IDENTIFIER: {
411
+ code: -19204,
412
+ message: "TRG_UNIQUE_IDENTIFIER",
413
+ description: `The identifier for TransferGroup object must be unique`
414
+ },
415
+ TOKEN_UNIQUE_FOREIGN: {
416
+ code: -19300,
417
+ message: "TOKEN_UNIQUE_FOREIGN",
418
+ description: `The foreign for Token object must be unique`
419
+ },
420
+ WALLET_UNIQUE_FOREIGN: {
421
+ code: -19400,
422
+ message: "WALLET_UNIQUE_FOREIGN",
423
+ description: `The foreign for Wallet object must be unique`
424
+ },
425
+ UNIQUE_CONSTRAINT: {
426
+ code: -19500,
427
+ message: "UNIQUE_CONSTRAINT",
428
+ description: `Insert violates unique constraint`
404
429
  }
405
430
  }
406
431
  },
@@ -420,6 +420,11 @@ var ERROR_GROUPS = {
420
420
  message: "TR_WITHDRAWAL_CANT_RV_WITHOUT_FLAG",
421
421
  description: `Withdrawals are expected connection points with outside systems, thus extra validation is required. Reversing a Transfer.type = 'withdrawal' requires reverse_withdrawal option to be true.`
422
422
  },
423
+ TR_UNIQUE_IDENTIFIER: {
424
+ code: -19115,
425
+ message: "TR_UNIQUE_IDENTIFIER",
426
+ description: `The identifier for Transfer object must be unique`
427
+ },
423
428
  TRG_SINGLE_PENDING_TR_CANT_RV: {
424
429
  code: -19200,
425
430
  message: "TRG_SINGLE_PENDING_TR_CANT_RV",
@@ -439,6 +444,26 @@ var ERROR_GROUPS = {
439
444
  code: -19203,
440
445
  message: "TRG_WITHDRAWAL_CANT_RV_WITHOUT_FLAG",
441
446
  description: `TransferGroup includes Transfer.type = 'withdrawal', thus for extra validation the reverse_withdrawal option must be set true`
447
+ },
448
+ TRG_UNIQUE_IDENTIFIER: {
449
+ code: -19204,
450
+ message: "TRG_UNIQUE_IDENTIFIER",
451
+ description: `The identifier for TransferGroup object must be unique`
452
+ },
453
+ TOKEN_UNIQUE_FOREIGN: {
454
+ code: -19300,
455
+ message: "TOKEN_UNIQUE_FOREIGN",
456
+ description: `The foreign for Token object must be unique`
457
+ },
458
+ WALLET_UNIQUE_FOREIGN: {
459
+ code: -19400,
460
+ message: "WALLET_UNIQUE_FOREIGN",
461
+ description: `The foreign for Wallet object must be unique`
462
+ },
463
+ UNIQUE_CONSTRAINT: {
464
+ code: -19500,
465
+ message: "UNIQUE_CONSTRAINT",
466
+ description: `Insert violates unique constraint`
442
467
  }
443
468
  }
444
469
  },