@requestnetwork/types 0.35.1-next.1756 → 0.35.1-next.1758
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.
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { PnReferenceBased } from '../extension-types';
|
|
2
2
|
export { ACTION, IAddPaymentAddressParameters, IAddRefundAddressParameters, } from './pn-any-reference-based-types';
|
|
3
3
|
/** Parameters for the creation action */
|
|
4
|
-
export declare type ICreationParameters =
|
|
4
|
+
export declare type ICreationParameters = IOriginalRequestCreationParameters | ISubsequentRequestCreationParameters;
|
|
5
5
|
/** Parameters for the creation action of the first request of a series */
|
|
6
|
-
export interface
|
|
6
|
+
export interface IOriginalRequestCreationParameters extends PnReferenceBased.ICreationParameters {
|
|
7
7
|
expectedFlowRate: string;
|
|
8
8
|
expectedStartDate: string;
|
|
9
9
|
}
|
|
10
10
|
/** Parameters for the creation action of other requests of a series */
|
|
11
11
|
export interface ISubsequentRequestCreationParameters extends Partial<PnReferenceBased.ICreationParameters> {
|
|
12
12
|
previousRequestId: string;
|
|
13
|
-
|
|
13
|
+
originalRequestId: string;
|
|
14
14
|
recurrenceNumber: number;
|
|
15
15
|
}
|
|
16
16
|
//# sourceMappingURL=pn-any-stream-reference-based-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pn-any-stream-reference-based-types.d.ts","sourceRoot":"","sources":["../../src/extensions/pn-any-stream-reference-based-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EACL,MAAM,EACN,4BAA4B,EAC5B,2BAA2B,GAC5B,MAAM,gCAAgC,CAAC;AAExC,yCAAyC;AACzC,oBAAY,mBAAmB,GAC3B,
|
|
1
|
+
{"version":3,"file":"pn-any-stream-reference-based-types.d.ts","sourceRoot":"","sources":["../../src/extensions/pn-any-stream-reference-based-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EACL,MAAM,EACN,4BAA4B,EAC5B,2BAA2B,GAC5B,MAAM,gCAAgC,CAAC;AAExC,yCAAyC;AACzC,oBAAY,mBAAmB,GAC3B,kCAAkC,GAClC,oCAAoC,CAAC;AAEzC,0EAA0E;AAC1E,MAAM,WAAW,kCAAmC,SAAQ,gBAAgB,CAAC,mBAAmB;IAC9F,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,uEAAuE;AACvE,MAAM,WAAW,oCACf,SAAQ,OAAO,CAAC,gBAAgB,CAAC,mBAAmB,CAAC;IAErD,iBAAiB,EAAE,MAAM,CAAC;IAE1B,iBAAiB,EAAE,MAAM,CAAC;IAE1B,gBAAgB,EAAE,MAAM,CAAC;CAC1B"}
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { PaymentTypes } from '.';
|
|
2
|
-
import { ICreationParameters,
|
|
2
|
+
import { ICreationParameters, IOriginalRequestCreationParameters, ISubsequentRequestCreationParameters } from './extensions/pn-any-stream-reference-based-types';
|
|
3
3
|
/**
|
|
4
4
|
* Types a value like ExtensionType into a paymentNetworkID enum element if possible
|
|
5
5
|
* @param value Example: ExtensionTypes.ID.PAYMENT_NETWORK_ERC20_PROXY_CONTRACT
|
|
6
6
|
*/
|
|
7
7
|
export declare function isPaymentNetworkId(value: any): value is PaymentTypes.PAYMENT_NETWORK_ID;
|
|
8
8
|
/**
|
|
9
|
-
* Types the creation parameters as
|
|
9
|
+
* Types the creation parameters as IOriginalRequestCreationParameters if it satisfies the condition
|
|
10
10
|
* @param parameters to test
|
|
11
11
|
*/
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const isOriginalRequestCreationParameters: (parameters: ICreationParameters) => parameters is IOriginalRequestCreationParameters;
|
|
13
13
|
/**
|
|
14
14
|
* Types the creation parameters as ISubsequentRequestCreationParameters if it satisfies the condition
|
|
15
15
|
* @param parameters to test
|
package/dist/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,GAAG,CAAC;AACjC,OAAO,EACL,mBAAmB,EACnB,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,GAAG,CAAC;AACjC,OAAO,EACL,mBAAmB,EACnB,kCAAkC,EAClC,oCAAoC,EACrC,MAAM,kDAAkD,CAAC;AAE1D;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,YAAY,CAAC,kBAAkB,CAQvF;AAED;;;GAGG;AACH,eAAO,MAAM,mCAAmC,eAClC,mBAAmB,qDAGhC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qCAAqC,eACpC,mBAAmB,uDAGhC,CAAC"}
|
package/dist/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isSubsequentRequestCreationParameters = exports.
|
|
3
|
+
exports.isSubsequentRequestCreationParameters = exports.isOriginalRequestCreationParameters = exports.isPaymentNetworkId = void 0;
|
|
4
4
|
const _1 = require(".");
|
|
5
5
|
/**
|
|
6
6
|
* Types a value like ExtensionType into a paymentNetworkID enum element if possible
|
|
@@ -16,19 +16,19 @@ function isPaymentNetworkId(value) {
|
|
|
16
16
|
}
|
|
17
17
|
exports.isPaymentNetworkId = isPaymentNetworkId;
|
|
18
18
|
/**
|
|
19
|
-
* Types the creation parameters as
|
|
19
|
+
* Types the creation parameters as IOriginalRequestCreationParameters if it satisfies the condition
|
|
20
20
|
* @param parameters to test
|
|
21
21
|
*/
|
|
22
|
-
const
|
|
22
|
+
const isOriginalRequestCreationParameters = (parameters) => {
|
|
23
23
|
return Object.keys(parameters).includes('expectedFlowRate');
|
|
24
24
|
};
|
|
25
|
-
exports.
|
|
25
|
+
exports.isOriginalRequestCreationParameters = isOriginalRequestCreationParameters;
|
|
26
26
|
/**
|
|
27
27
|
* Types the creation parameters as ISubsequentRequestCreationParameters if it satisfies the condition
|
|
28
28
|
* @param parameters to test
|
|
29
29
|
*/
|
|
30
30
|
const isSubsequentRequestCreationParameters = (parameters) => {
|
|
31
|
-
return Object.keys(parameters).includes('
|
|
31
|
+
return Object.keys(parameters).includes('originalRequestId');
|
|
32
32
|
};
|
|
33
33
|
exports.isSubsequentRequestCreationParameters = isSubsequentRequestCreationParameters;
|
|
34
34
|
//# sourceMappingURL=utils.js.map
|
package/dist/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;AAAA,wBAAiC;AAOjC;;;GAGG;AACH,SAAgB,kBAAkB,CAAC,KAAU;IAC3C,KAAK,MAAM,EAAE,IAAI,eAAY,CAAC,kBAAkB,EAAE;QAChD,IAAI,eAAY,CAAC,kBAAkB,CAAC,EAAE,CAAC,KAAK,KAAK,EAAE;YACjD,OAAO,IAAI,CAAC;SACb;KACF;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AARD,gDAQC;AAED;;;GAGG;AACI,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;AAAA,wBAAiC;AAOjC;;;GAGG;AACH,SAAgB,kBAAkB,CAAC,KAAU;IAC3C,KAAK,MAAM,EAAE,IAAI,eAAY,CAAC,kBAAkB,EAAE;QAChD,IAAI,eAAY,CAAC,kBAAkB,CAAC,EAAE,CAAC,KAAK,KAAK,EAAE;YACjD,OAAO,IAAI,CAAC;SACb;KACF;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AARD,gDAQC;AAED;;;GAGG;AACI,MAAM,mCAAmC,GAAG,CACjD,UAA+B,EACmB,EAAE;IACpD,OAAO,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC;AAC9D,CAAC,CAAC;AAJW,QAAA,mCAAmC,uCAI9C;AAEF;;;GAGG;AACI,MAAM,qCAAqC,GAAG,CACnD,UAA+B,EACqB,EAAE;IACtD,OAAO,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AAC/D,CAAC,CAAC;AAJW,QAAA,qCAAqC,yCAIhD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@requestnetwork/types",
|
|
3
|
-
"version": "0.35.1-next.
|
|
3
|
+
"version": "0.35.1-next.1758+fd491d07",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"ts-node": "9.0.0",
|
|
48
48
|
"typescript": "4.4.4"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "fd491d07bfc48d5f5d2a9cd112d28a2485fea9aa"
|
|
51
51
|
}
|