@fairmint/open-captable-protocol-daml-js 0.2.14 → 0.2.15
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/README.md +1 -1
- package/lib/Fairmint/OpenCapTable/ConvertibleIssuance/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/Document/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/EquityCompensationExercise/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/EquityCompensationIssuance/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/Issuer/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/IssuerAuthorizedSharesAdjustment/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/OcpFactory/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/Stakeholder/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockCancellation/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockClass/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockClassAuthorizedSharesAdjustment/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockIssuance/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockLegendTemplate/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockPlan/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockPlanPoolAdjustment/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/Valuation/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/VestingTerms/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/WarrantIssuance/module.js +1 -1
- package/lib/Fairmint/Subscriptions/ActiveSubscription/module.d.ts +191 -0
- package/lib/Fairmint/Subscriptions/ActiveSubscription/module.js +302 -0
- package/lib/Fairmint/Subscriptions/PartyMigrationProposal/module.d.ts +86 -0
- package/lib/Fairmint/Subscriptions/PartyMigrationProposal/module.js +135 -0
- package/lib/Fairmint/Subscriptions/ProposedSubscription/module.d.ts +90 -0
- package/lib/Fairmint/Subscriptions/ProposedSubscription/module.js +139 -0
- package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.d.ts +11 -9
- package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.js +17 -15
- package/lib/Fairmint/Subscriptions/Types/ActiveSubscriptionData/module.d.ts +25 -0
- package/lib/Fairmint/Subscriptions/Types/ActiveSubscriptionData/module.js +32 -0
- package/lib/Fairmint/Subscriptions/Types/Approvals/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/Approvals/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/Approvals/module.d.ts +20 -0
- package/lib/Fairmint/Subscriptions/Types/Approvals/module.js +27 -0
- package/lib/Fairmint/Subscriptions/Types/PartyRole/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/PartyRole/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/PartyRole/module.d.ts +21 -0
- package/lib/Fairmint/Subscriptions/Types/PartyRole/module.js +24 -0
- package/lib/Fairmint/Subscriptions/Types/PaymentContext/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/PaymentContext/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/PaymentContext/module.d.ts +22 -0
- package/lib/Fairmint/Subscriptions/Types/PaymentContext/module.js +29 -0
- package/lib/Fairmint/Subscriptions/Types/PaymentResult/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/PaymentResult/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/PaymentResult/module.d.ts +23 -0
- package/lib/Fairmint/Subscriptions/Types/PaymentResult/module.js +31 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessFreeTrialResult/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessFreeTrialResult/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessFreeTrialResult/module.d.ts +21 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessFreeTrialResult/module.js +29 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessingContext/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessingContext/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessingContext/module.d.ts +27 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessingContext/module.js +34 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessorContext/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessorContext/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessorContext/module.d.ts +19 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessorContext/module.js +26 -0
- package/lib/Fairmint/Subscriptions/Types/Subscription/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/Subscription/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/Subscription/module.d.ts +34 -0
- package/lib/Fairmint/Subscriptions/Types/Subscription/module.js +41 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionAmount/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionAmount/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionAmount/module.d.ts +19 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionAmount/module.js +27 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionChanges/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionChanges/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionChanges/module.d.ts +34 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionChanges/module.js +41 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposal/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposal/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposal/module.d.ts +35 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposal/module.js +42 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposalChanges/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposalChanges/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposalChanges/module.d.ts +35 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposalChanges/module.js +42 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionStats/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionStats/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionStats/module.d.ts +24 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionStats/module.js +31 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionTime/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionTime/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionTime/module.d.ts +21 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionTime/module.js +29 -0
- package/lib/Fairmint/Subscriptions/Types/index.d.ts +30 -0
- package/lib/Fairmint/Subscriptions/Types/index.js +37 -0
- package/lib/Fairmint/Subscriptions/index.d.ts +8 -8
- package/lib/Fairmint/Subscriptions/index.js +8 -8
- package/package.json +2 -2
- package/lib/Fairmint/Subscriptions/ProcessorApprovedSubscriptionProposal/module.d.ts +0 -75
- package/lib/Fairmint/Subscriptions/ProcessorApprovedSubscriptionProposal/module.js +0 -124
- package/lib/Fairmint/Subscriptions/Subscription/module.d.ts +0 -246
- package/lib/Fairmint/Subscriptions/Subscription/module.js +0 -400
- package/lib/Fairmint/Subscriptions/SubscriptionConfig/module.d.ts +0 -59
- package/lib/Fairmint/Subscriptions/SubscriptionConfig/module.js +0 -73
- package/lib/Fairmint/Subscriptions/SubscriptionProposal/module.d.ts +0 -75
- package/lib/Fairmint/Subscriptions/SubscriptionProposal/module.js +0 -124
- /package/lib/Fairmint/Subscriptions/{ProcessorApprovedSubscriptionProposal → ActiveSubscription}/index.d.ts +0 -0
- /package/lib/Fairmint/Subscriptions/{ProcessorApprovedSubscriptionProposal → ActiveSubscription}/index.js +0 -0
- /package/lib/Fairmint/Subscriptions/{Subscription → PartyMigrationProposal}/index.d.ts +0 -0
- /package/lib/Fairmint/Subscriptions/{Subscription → PartyMigrationProposal}/index.js +0 -0
- /package/lib/Fairmint/Subscriptions/{SubscriptionConfig → ProposedSubscription}/index.d.ts +0 -0
- /package/lib/Fairmint/Subscriptions/{SubscriptionConfig → ProposedSubscription}/index.js +0 -0
- /package/lib/Fairmint/Subscriptions/{SubscriptionProposal → Types/ActiveSubscriptionData}/index.d.ts +0 -0
- /package/lib/Fairmint/Subscriptions/{SubscriptionProposal → Types/ActiveSubscriptionData}/index.js +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3
|
+
function __export(m) {
|
|
4
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
9
|
+
var jtv = require('@mojotech/json-type-validation');
|
|
10
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
11
|
+
var damlTypes = require('@daml/types');
|
|
12
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
13
|
+
var damlLedger = require('@daml/ledger');
|
|
14
|
+
|
|
15
|
+
var pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda = require('../../../../Splice/Api/FeaturedAppRightV1');
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
exports.ProcessFreeTrialResult = function (t) { return ({
|
|
19
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({subscriptionCid: damlTypes.ContractId(t).decoder, recipientActivityMarkerCid: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppActivityMarker)).decoder), processorActivityMarkerCid: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppActivityMarker)).decoder), }); }),
|
|
20
|
+
encode: function (__typed__) {
|
|
21
|
+
return {
|
|
22
|
+
subscriptionCid: damlTypes.ContractId(t).encode(__typed__.subscriptionCid),
|
|
23
|
+
recipientActivityMarkerCid: damlTypes.Optional(damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppActivityMarker)).encode(__typed__.recipientActivityMarkerCid),
|
|
24
|
+
processorActivityMarkerCid: damlTypes.Optional(damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppActivityMarker)).encode(__typed__.processorActivityMarkerCid),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
,
|
|
28
|
+
}); };
|
|
29
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './module';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3
|
+
function __export(m) {
|
|
4
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
__export(require('./module'));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Generated from Fairmint/Subscriptions/Types/ProcessingContext.daml
|
|
2
|
+
/* eslint-disable @typescript-eslint/camelcase */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
5
|
+
import * as jtv from '@mojotech/json-type-validation';
|
|
6
|
+
import * as damlTypes from '@daml/types';
|
|
7
|
+
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
|
|
8
|
+
import * as damlLedger from '@daml/ledger';
|
|
9
|
+
|
|
10
|
+
import * as pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1 from '../../../..';
|
|
11
|
+
import * as pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda from '../../../../Splice/Api/FeaturedAppRightV1';
|
|
12
|
+
import * as pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 from '../../../../DA/Time/Types';
|
|
13
|
+
|
|
14
|
+
export declare type ProcessingContext = {
|
|
15
|
+
processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime;
|
|
16
|
+
processorProvider: damlTypes.Party;
|
|
17
|
+
recipientProvider: damlTypes.Optional<damlTypes.Party>;
|
|
18
|
+
recipientFeaturedAppRight: damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight>>;
|
|
19
|
+
processorFeaturedAppRight: damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight>>;
|
|
20
|
+
processorBeneficiaries: pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.AppRewardBeneficiary[];
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export declare const ProcessingContext:
|
|
24
|
+
damlTypes.Serializable<ProcessingContext> & {
|
|
25
|
+
}
|
|
26
|
+
;
|
|
27
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3
|
+
function __export(m) {
|
|
4
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
9
|
+
var jtv = require('@mojotech/json-type-validation');
|
|
10
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
11
|
+
var damlTypes = require('@daml/types');
|
|
12
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
13
|
+
var damlLedger = require('@daml/ledger');
|
|
14
|
+
|
|
15
|
+
var pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1 = require('../../../..');
|
|
16
|
+
var pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda = require('../../../../Splice/Api/FeaturedAppRightV1');
|
|
17
|
+
var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = require('../../../../DA/Time/Types');
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
exports.ProcessingContext = {
|
|
21
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.decoder, processorProvider: damlTypes.Party.decoder, recipientProvider: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Party).decoder), recipientFeaturedAppRight: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight)).decoder), processorFeaturedAppRight: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight)).decoder), processorBeneficiaries: damlTypes.List(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.AppRewardBeneficiary).decoder, }); }),
|
|
22
|
+
encode: function (__typed__) {
|
|
23
|
+
return {
|
|
24
|
+
processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.encode(__typed__.processingPeriod),
|
|
25
|
+
processorProvider: damlTypes.Party.encode(__typed__.processorProvider),
|
|
26
|
+
recipientProvider: damlTypes.Optional(damlTypes.Party).encode(__typed__.recipientProvider),
|
|
27
|
+
recipientFeaturedAppRight: damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight)).encode(__typed__.recipientFeaturedAppRight),
|
|
28
|
+
processorFeaturedAppRight: damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight)).encode(__typed__.processorFeaturedAppRight),
|
|
29
|
+
processorBeneficiaries: damlTypes.List(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.AppRewardBeneficiary).encode(__typed__.processorBeneficiaries),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
,
|
|
33
|
+
};
|
|
34
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './module';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3
|
+
function __export(m) {
|
|
4
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
__export(require('./module'));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Generated from Fairmint/Subscriptions/Types/ProcessorContext.daml
|
|
2
|
+
/* eslint-disable @typescript-eslint/camelcase */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
5
|
+
import * as jtv from '@mojotech/json-type-validation';
|
|
6
|
+
import * as damlTypes from '@daml/types';
|
|
7
|
+
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
|
|
8
|
+
import * as damlLedger from '@daml/ledger';
|
|
9
|
+
|
|
10
|
+
export declare type ProcessorContext = {
|
|
11
|
+
processor: damlTypes.Party;
|
|
12
|
+
dso: damlTypes.Party;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export declare const ProcessorContext:
|
|
16
|
+
damlTypes.Serializable<ProcessorContext> & {
|
|
17
|
+
}
|
|
18
|
+
;
|
|
19
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3
|
+
function __export(m) {
|
|
4
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
9
|
+
var jtv = require('@mojotech/json-type-validation');
|
|
10
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
11
|
+
var damlTypes = require('@daml/types');
|
|
12
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
13
|
+
var damlLedger = require('@daml/ledger');
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
exports.ProcessorContext = {
|
|
17
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({processor: damlTypes.Party.decoder, dso: damlTypes.Party.decoder, }); }),
|
|
18
|
+
encode: function (__typed__) {
|
|
19
|
+
return {
|
|
20
|
+
processor: damlTypes.Party.encode(__typed__.processor),
|
|
21
|
+
dso: damlTypes.Party.encode(__typed__.dso),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
,
|
|
25
|
+
};
|
|
26
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './module';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3
|
+
function __export(m) {
|
|
4
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
__export(require('./module'));
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Generated from Fairmint/Subscriptions/Types/Subscription.daml
|
|
2
|
+
/* eslint-disable @typescript-eslint/camelcase */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
5
|
+
import * as jtv from '@mojotech/json-type-validation';
|
|
6
|
+
import * as damlTypes from '@daml/types';
|
|
7
|
+
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
|
|
8
|
+
import * as damlLedger from '@daml/ledger';
|
|
9
|
+
|
|
10
|
+
import * as pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda from '../../../../Splice/Api/FeaturedAppRightV1';
|
|
11
|
+
import * as pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 from '../../../../DA/Time/Types';
|
|
12
|
+
|
|
13
|
+
import * as Fairmint_Subscriptions_Types_SubscriptionAmount from '../../../../Fairmint/Subscriptions/Types/SubscriptionAmount/module';
|
|
14
|
+
|
|
15
|
+
export declare type Subscription = {
|
|
16
|
+
subscriber: damlTypes.Party;
|
|
17
|
+
recipient: damlTypes.Party;
|
|
18
|
+
recipientProvider: damlTypes.Optional<damlTypes.Party>;
|
|
19
|
+
recipientBeneficiaries: damlTypes.Optional<pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.AppRewardBeneficiary[]>;
|
|
20
|
+
recipientPaymentPerDay: Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount;
|
|
21
|
+
processorPaymentPerDay: damlTypes.Optional<Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount>;
|
|
22
|
+
prepayWindow: damlTypes.Optional<pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime>;
|
|
23
|
+
paymentsEndAt: damlTypes.Optional<damlTypes.Time>;
|
|
24
|
+
trialEndsAt: damlTypes.Optional<damlTypes.Time>;
|
|
25
|
+
description: damlTypes.Optional<string>;
|
|
26
|
+
metadata: damlTypes.Optional<{ [key: string]: string }>;
|
|
27
|
+
observers: damlTypes.Party[];
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export declare const Subscription:
|
|
31
|
+
damlTypes.Serializable<Subscription> & {
|
|
32
|
+
}
|
|
33
|
+
;
|
|
34
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3
|
+
function __export(m) {
|
|
4
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
9
|
+
var jtv = require('@mojotech/json-type-validation');
|
|
10
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
11
|
+
var damlTypes = require('@daml/types');
|
|
12
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
13
|
+
var damlLedger = require('@daml/ledger');
|
|
14
|
+
|
|
15
|
+
var pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda = require('../../../../Splice/Api/FeaturedAppRightV1');
|
|
16
|
+
var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = require('../../../../DA/Time/Types');
|
|
17
|
+
|
|
18
|
+
var Fairmint_Subscriptions_Types_SubscriptionAmount = require('../../../../Fairmint/Subscriptions/Types/SubscriptionAmount/module');
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
exports.Subscription = {
|
|
22
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({subscriber: damlTypes.Party.decoder, recipient: damlTypes.Party.decoder, recipientProvider: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Party).decoder), recipientBeneficiaries: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.AppRewardBeneficiary)).decoder), recipientPaymentPerDay: Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount.decoder, processorPaymentPerDay: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount).decoder), prepayWindow: jtv.Decoder.withDefault(null, damlTypes.Optional(pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime).decoder), paymentsEndAt: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), trialEndsAt: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), metadata: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.TextMap(damlTypes.Text)).decoder), observers: damlTypes.List(damlTypes.Party).decoder, }); }),
|
|
23
|
+
encode: function (__typed__) {
|
|
24
|
+
return {
|
|
25
|
+
subscriber: damlTypes.Party.encode(__typed__.subscriber),
|
|
26
|
+
recipient: damlTypes.Party.encode(__typed__.recipient),
|
|
27
|
+
recipientProvider: damlTypes.Optional(damlTypes.Party).encode(__typed__.recipientProvider),
|
|
28
|
+
recipientBeneficiaries: damlTypes.Optional(damlTypes.List(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.AppRewardBeneficiary)).encode(__typed__.recipientBeneficiaries),
|
|
29
|
+
recipientPaymentPerDay: Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount.encode(__typed__.recipientPaymentPerDay),
|
|
30
|
+
processorPaymentPerDay: damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount).encode(__typed__.processorPaymentPerDay),
|
|
31
|
+
prepayWindow: damlTypes.Optional(pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime).encode(__typed__.prepayWindow),
|
|
32
|
+
paymentsEndAt: damlTypes.Optional(damlTypes.Time).encode(__typed__.paymentsEndAt),
|
|
33
|
+
trialEndsAt: damlTypes.Optional(damlTypes.Time).encode(__typed__.trialEndsAt),
|
|
34
|
+
description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
|
|
35
|
+
metadata: damlTypes.Optional(damlTypes.TextMap(damlTypes.Text)).encode(__typed__.metadata),
|
|
36
|
+
observers: damlTypes.List(damlTypes.Party).encode(__typed__.observers),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
,
|
|
40
|
+
};
|
|
41
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './module';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3
|
+
function __export(m) {
|
|
4
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
__export(require('./module'));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Generated from Fairmint/Subscriptions/Types/SubscriptionAmount.daml
|
|
2
|
+
/* eslint-disable @typescript-eslint/camelcase */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
5
|
+
import * as jtv from '@mojotech/json-type-validation';
|
|
6
|
+
import * as damlTypes from '@daml/types';
|
|
7
|
+
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
|
|
8
|
+
import * as damlLedger from '@daml/ledger';
|
|
9
|
+
|
|
10
|
+
export declare type SubscriptionAmount =
|
|
11
|
+
| { tag: 'AmuletAmount'; value: damlTypes.Numeric }
|
|
12
|
+
| { tag: 'USDAmount'; value: damlTypes.Numeric }
|
|
13
|
+
;
|
|
14
|
+
|
|
15
|
+
export declare const SubscriptionAmount:
|
|
16
|
+
damlTypes.Serializable<SubscriptionAmount> & {
|
|
17
|
+
}
|
|
18
|
+
;
|
|
19
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3
|
+
function __export(m) {
|
|
4
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
9
|
+
var jtv = require('@mojotech/json-type-validation');
|
|
10
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
11
|
+
var damlTypes = require('@daml/types');
|
|
12
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
13
|
+
var damlLedger = require('@daml/ledger');
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
exports.SubscriptionAmount = {
|
|
17
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('AmuletAmount'), value: damlTypes.Numeric(10).decoder, }), jtv.object({tag: jtv.constant('USDAmount'), value: damlTypes.Numeric(10).decoder, })); }),
|
|
18
|
+
encode: function (__typed__) {
|
|
19
|
+
switch(__typed__.tag) {
|
|
20
|
+
case 'AmuletAmount': return {tag: __typed__.tag, value: damlTypes.Numeric(10).encode(__typed__.value)};
|
|
21
|
+
case 'USDAmount': return {tag: __typed__.tag, value: damlTypes.Numeric(10).encode(__typed__.value)};
|
|
22
|
+
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type SubscriptionAmount';
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
,
|
|
26
|
+
};
|
|
27
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './module';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3
|
+
function __export(m) {
|
|
4
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
__export(require('./module'));
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Generated from Fairmint/Subscriptions/Types/SubscriptionChanges.daml
|
|
2
|
+
/* eslint-disable @typescript-eslint/camelcase */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
5
|
+
import * as jtv from '@mojotech/json-type-validation';
|
|
6
|
+
import * as damlTypes from '@daml/types';
|
|
7
|
+
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
|
|
8
|
+
import * as damlLedger from '@daml/ledger';
|
|
9
|
+
|
|
10
|
+
import * as pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda from '../../../../Splice/Api/FeaturedAppRightV1';
|
|
11
|
+
import * as pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 from '../../../../DA/Time/Types';
|
|
12
|
+
|
|
13
|
+
import * as Fairmint_Subscriptions_Types_SubscriptionAmount from '../../../../Fairmint/Subscriptions/Types/SubscriptionAmount/module';
|
|
14
|
+
import * as Fairmint_Subscriptions_Types_SubscriptionTime from '../../../../Fairmint/Subscriptions/Types/SubscriptionTime/module';
|
|
15
|
+
|
|
16
|
+
export declare type SubscriptionChanges = {
|
|
17
|
+
processedAndPaidUntilAdjustment: damlTypes.Optional<pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime>;
|
|
18
|
+
recipientProvider: damlTypes.Optional<damlTypes.Party>;
|
|
19
|
+
recipientBeneficiaries: damlTypes.Optional<damlTypes.Optional<pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.AppRewardBeneficiary[]>>;
|
|
20
|
+
recipientPaymentPerDay: damlTypes.Optional<Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount>;
|
|
21
|
+
processorPaymentPerDay: damlTypes.Optional<damlTypes.Optional<Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount>>;
|
|
22
|
+
prepayWindow: damlTypes.Optional<damlTypes.Optional<pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime>>;
|
|
23
|
+
paymentsEndAt: damlTypes.Optional<damlTypes.Optional<Fairmint_Subscriptions_Types_SubscriptionTime.SubscriptionTime>>;
|
|
24
|
+
trialEndsAt: damlTypes.Optional<damlTypes.Optional<Fairmint_Subscriptions_Types_SubscriptionTime.SubscriptionTime>>;
|
|
25
|
+
description: damlTypes.Optional<damlTypes.Optional<string>>;
|
|
26
|
+
metadata: damlTypes.Optional<damlTypes.Optional<{ [key: string]: string }>>;
|
|
27
|
+
observers: damlTypes.Optional<damlTypes.Party[]>;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export declare const SubscriptionChanges:
|
|
31
|
+
damlTypes.Serializable<SubscriptionChanges> & {
|
|
32
|
+
}
|
|
33
|
+
;
|
|
34
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3
|
+
function __export(m) {
|
|
4
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
9
|
+
var jtv = require('@mojotech/json-type-validation');
|
|
10
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
11
|
+
var damlTypes = require('@daml/types');
|
|
12
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
13
|
+
var damlLedger = require('@daml/ledger');
|
|
14
|
+
|
|
15
|
+
var pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda = require('../../../../Splice/Api/FeaturedAppRightV1');
|
|
16
|
+
var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = require('../../../../DA/Time/Types');
|
|
17
|
+
|
|
18
|
+
var Fairmint_Subscriptions_Types_SubscriptionAmount = require('../../../../Fairmint/Subscriptions/Types/SubscriptionAmount/module');
|
|
19
|
+
var Fairmint_Subscriptions_Types_SubscriptionTime = require('../../../../Fairmint/Subscriptions/Types/SubscriptionTime/module');
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
exports.SubscriptionChanges = {
|
|
23
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({processedAndPaidUntilAdjustment: jtv.Decoder.withDefault(null, damlTypes.Optional(pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime).decoder), recipientProvider: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Party).decoder), recipientBeneficiaries: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Optional(damlTypes.List(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.AppRewardBeneficiary))).decoder), recipientPaymentPerDay: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount).decoder), processorPaymentPerDay: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount)).decoder), prepayWindow: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Optional(pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime)).decoder), paymentsEndAt: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionTime.SubscriptionTime)).decoder), trialEndsAt: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionTime.SubscriptionTime)).decoder), description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Optional(damlTypes.Text)).decoder), metadata: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Optional(damlTypes.TextMap(damlTypes.Text))).decoder), observers: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(damlTypes.Party)).decoder), }); }),
|
|
24
|
+
encode: function (__typed__) {
|
|
25
|
+
return {
|
|
26
|
+
processedAndPaidUntilAdjustment: damlTypes.Optional(pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime).encode(__typed__.processedAndPaidUntilAdjustment),
|
|
27
|
+
recipientProvider: damlTypes.Optional(damlTypes.Party).encode(__typed__.recipientProvider),
|
|
28
|
+
recipientBeneficiaries: damlTypes.Optional(damlTypes.Optional(damlTypes.List(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.AppRewardBeneficiary))).encode(__typed__.recipientBeneficiaries),
|
|
29
|
+
recipientPaymentPerDay: damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount).encode(__typed__.recipientPaymentPerDay),
|
|
30
|
+
processorPaymentPerDay: damlTypes.Optional(damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount)).encode(__typed__.processorPaymentPerDay),
|
|
31
|
+
prepayWindow: damlTypes.Optional(damlTypes.Optional(pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime)).encode(__typed__.prepayWindow),
|
|
32
|
+
paymentsEndAt: damlTypes.Optional(damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionTime.SubscriptionTime)).encode(__typed__.paymentsEndAt),
|
|
33
|
+
trialEndsAt: damlTypes.Optional(damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionTime.SubscriptionTime)).encode(__typed__.trialEndsAt),
|
|
34
|
+
description: damlTypes.Optional(damlTypes.Optional(damlTypes.Text)).encode(__typed__.description),
|
|
35
|
+
metadata: damlTypes.Optional(damlTypes.Optional(damlTypes.TextMap(damlTypes.Text))).encode(__typed__.metadata),
|
|
36
|
+
observers: damlTypes.Optional(damlTypes.List(damlTypes.Party)).encode(__typed__.observers),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
,
|
|
40
|
+
};
|
|
41
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './module';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3
|
+
function __export(m) {
|
|
4
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
__export(require('./module'));
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// Generated from Fairmint/Subscriptions/Types/SubscriptionProposal.daml
|
|
2
|
+
/* eslint-disable @typescript-eslint/camelcase */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
5
|
+
import * as jtv from '@mojotech/json-type-validation';
|
|
6
|
+
import * as damlTypes from '@daml/types';
|
|
7
|
+
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
|
|
8
|
+
import * as damlLedger from '@daml/ledger';
|
|
9
|
+
|
|
10
|
+
import * as pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda from '../../../../Splice/Api/FeaturedAppRightV1';
|
|
11
|
+
import * as pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 from '../../../../DA/Time/Types';
|
|
12
|
+
|
|
13
|
+
import * as Fairmint_Subscriptions_Types_SubscriptionAmount from '../../../../Fairmint/Subscriptions/Types/SubscriptionAmount/module';
|
|
14
|
+
import * as Fairmint_Subscriptions_Types_SubscriptionTime from '../../../../Fairmint/Subscriptions/Types/SubscriptionTime/module';
|
|
15
|
+
|
|
16
|
+
export declare type SubscriptionProposal = {
|
|
17
|
+
subscriber: damlTypes.Party;
|
|
18
|
+
recipient: damlTypes.Party;
|
|
19
|
+
recipientProvider: damlTypes.Optional<damlTypes.Party>;
|
|
20
|
+
recipientBeneficiaries: damlTypes.Optional<pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.AppRewardBeneficiary[]>;
|
|
21
|
+
freeTrialExpiration: damlTypes.Optional<Fairmint_Subscriptions_Types_SubscriptionTime.SubscriptionTime>;
|
|
22
|
+
recipientPaymentPerDay: Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount;
|
|
23
|
+
processorPaymentPerDay: damlTypes.Optional<Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount>;
|
|
24
|
+
prepayWindow: damlTypes.Optional<pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime>;
|
|
25
|
+
paymentsEndAt: damlTypes.Optional<Fairmint_Subscriptions_Types_SubscriptionTime.SubscriptionTime>;
|
|
26
|
+
description: damlTypes.Optional<string>;
|
|
27
|
+
metadata: damlTypes.Optional<{ [key: string]: string }>;
|
|
28
|
+
observers: damlTypes.Party[];
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export declare const SubscriptionProposal:
|
|
32
|
+
damlTypes.Serializable<SubscriptionProposal> & {
|
|
33
|
+
}
|
|
34
|
+
;
|
|
35
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3
|
+
function __export(m) {
|
|
4
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
9
|
+
var jtv = require('@mojotech/json-type-validation');
|
|
10
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
11
|
+
var damlTypes = require('@daml/types');
|
|
12
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
13
|
+
var damlLedger = require('@daml/ledger');
|
|
14
|
+
|
|
15
|
+
var pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda = require('../../../../Splice/Api/FeaturedAppRightV1');
|
|
16
|
+
var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = require('../../../../DA/Time/Types');
|
|
17
|
+
|
|
18
|
+
var Fairmint_Subscriptions_Types_SubscriptionAmount = require('../../../../Fairmint/Subscriptions/Types/SubscriptionAmount/module');
|
|
19
|
+
var Fairmint_Subscriptions_Types_SubscriptionTime = require('../../../../Fairmint/Subscriptions/Types/SubscriptionTime/module');
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
exports.SubscriptionProposal = {
|
|
23
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({subscriber: damlTypes.Party.decoder, recipient: damlTypes.Party.decoder, recipientProvider: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Party).decoder), recipientBeneficiaries: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.AppRewardBeneficiary)).decoder), freeTrialExpiration: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionTime.SubscriptionTime).decoder), recipientPaymentPerDay: Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount.decoder, processorPaymentPerDay: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount).decoder), prepayWindow: jtv.Decoder.withDefault(null, damlTypes.Optional(pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime).decoder), paymentsEndAt: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionTime.SubscriptionTime).decoder), description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), metadata: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.TextMap(damlTypes.Text)).decoder), observers: damlTypes.List(damlTypes.Party).decoder, }); }),
|
|
24
|
+
encode: function (__typed__) {
|
|
25
|
+
return {
|
|
26
|
+
subscriber: damlTypes.Party.encode(__typed__.subscriber),
|
|
27
|
+
recipient: damlTypes.Party.encode(__typed__.recipient),
|
|
28
|
+
recipientProvider: damlTypes.Optional(damlTypes.Party).encode(__typed__.recipientProvider),
|
|
29
|
+
recipientBeneficiaries: damlTypes.Optional(damlTypes.List(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.AppRewardBeneficiary)).encode(__typed__.recipientBeneficiaries),
|
|
30
|
+
freeTrialExpiration: damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionTime.SubscriptionTime).encode(__typed__.freeTrialExpiration),
|
|
31
|
+
recipientPaymentPerDay: Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount.encode(__typed__.recipientPaymentPerDay),
|
|
32
|
+
processorPaymentPerDay: damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount).encode(__typed__.processorPaymentPerDay),
|
|
33
|
+
prepayWindow: damlTypes.Optional(pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime).encode(__typed__.prepayWindow),
|
|
34
|
+
paymentsEndAt: damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionTime.SubscriptionTime).encode(__typed__.paymentsEndAt),
|
|
35
|
+
description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
|
|
36
|
+
metadata: damlTypes.Optional(damlTypes.TextMap(damlTypes.Text)).encode(__typed__.metadata),
|
|
37
|
+
observers: damlTypes.List(damlTypes.Party).encode(__typed__.observers),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
,
|
|
41
|
+
};
|
|
42
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './module';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3
|
+
function __export(m) {
|
|
4
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
__export(require('./module'));
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// Generated from Fairmint/Subscriptions/Types/SubscriptionProposalChanges.daml
|
|
2
|
+
/* eslint-disable @typescript-eslint/camelcase */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
5
|
+
import * as jtv from '@mojotech/json-type-validation';
|
|
6
|
+
import * as damlTypes from '@daml/types';
|
|
7
|
+
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
|
|
8
|
+
import * as damlLedger from '@daml/ledger';
|
|
9
|
+
|
|
10
|
+
import * as pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda from '../../../../Splice/Api/FeaturedAppRightV1';
|
|
11
|
+
import * as pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 from '../../../../DA/Time/Types';
|
|
12
|
+
|
|
13
|
+
import * as Fairmint_Subscriptions_Types_SubscriptionAmount from '../../../../Fairmint/Subscriptions/Types/SubscriptionAmount/module';
|
|
14
|
+
import * as Fairmint_Subscriptions_Types_SubscriptionTime from '../../../../Fairmint/Subscriptions/Types/SubscriptionTime/module';
|
|
15
|
+
|
|
16
|
+
export declare type SubscriptionProposalChanges = {
|
|
17
|
+
subscriber: damlTypes.Optional<damlTypes.Party>;
|
|
18
|
+
recipient: damlTypes.Optional<damlTypes.Party>;
|
|
19
|
+
recipientProvider: damlTypes.Optional<damlTypes.Party>;
|
|
20
|
+
recipientBeneficiaries: damlTypes.Optional<damlTypes.Optional<pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.AppRewardBeneficiary[]>>;
|
|
21
|
+
recipientPaymentPerDay: damlTypes.Optional<Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount>;
|
|
22
|
+
processorPaymentPerDay: damlTypes.Optional<damlTypes.Optional<Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount>>;
|
|
23
|
+
paymentsEndAt: damlTypes.Optional<damlTypes.Optional<Fairmint_Subscriptions_Types_SubscriptionTime.SubscriptionTime>>;
|
|
24
|
+
prepayWindow: damlTypes.Optional<damlTypes.Optional<pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime>>;
|
|
25
|
+
freeTrialExpiration: damlTypes.Optional<damlTypes.Optional<Fairmint_Subscriptions_Types_SubscriptionTime.SubscriptionTime>>;
|
|
26
|
+
description: damlTypes.Optional<damlTypes.Optional<string>>;
|
|
27
|
+
metadata: damlTypes.Optional<damlTypes.Optional<{ [key: string]: string }>>;
|
|
28
|
+
observers: damlTypes.Optional<damlTypes.Party[]>;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export declare const SubscriptionProposalChanges:
|
|
32
|
+
damlTypes.Serializable<SubscriptionProposalChanges> & {
|
|
33
|
+
}
|
|
34
|
+
;
|
|
35
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3
|
+
function __export(m) {
|
|
4
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
9
|
+
var jtv = require('@mojotech/json-type-validation');
|
|
10
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
11
|
+
var damlTypes = require('@daml/types');
|
|
12
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
13
|
+
var damlLedger = require('@daml/ledger');
|
|
14
|
+
|
|
15
|
+
var pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda = require('../../../../Splice/Api/FeaturedAppRightV1');
|
|
16
|
+
var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = require('../../../../DA/Time/Types');
|
|
17
|
+
|
|
18
|
+
var Fairmint_Subscriptions_Types_SubscriptionAmount = require('../../../../Fairmint/Subscriptions/Types/SubscriptionAmount/module');
|
|
19
|
+
var Fairmint_Subscriptions_Types_SubscriptionTime = require('../../../../Fairmint/Subscriptions/Types/SubscriptionTime/module');
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
exports.SubscriptionProposalChanges = {
|
|
23
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({subscriber: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Party).decoder), recipient: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Party).decoder), recipientProvider: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Party).decoder), recipientBeneficiaries: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Optional(damlTypes.List(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.AppRewardBeneficiary))).decoder), recipientPaymentPerDay: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount).decoder), processorPaymentPerDay: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount)).decoder), paymentsEndAt: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionTime.SubscriptionTime)).decoder), prepayWindow: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Optional(pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime)).decoder), freeTrialExpiration: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionTime.SubscriptionTime)).decoder), description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Optional(damlTypes.Text)).decoder), metadata: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Optional(damlTypes.TextMap(damlTypes.Text))).decoder), observers: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(damlTypes.Party)).decoder), }); }),
|
|
24
|
+
encode: function (__typed__) {
|
|
25
|
+
return {
|
|
26
|
+
subscriber: damlTypes.Optional(damlTypes.Party).encode(__typed__.subscriber),
|
|
27
|
+
recipient: damlTypes.Optional(damlTypes.Party).encode(__typed__.recipient),
|
|
28
|
+
recipientProvider: damlTypes.Optional(damlTypes.Party).encode(__typed__.recipientProvider),
|
|
29
|
+
recipientBeneficiaries: damlTypes.Optional(damlTypes.Optional(damlTypes.List(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.AppRewardBeneficiary))).encode(__typed__.recipientBeneficiaries),
|
|
30
|
+
recipientPaymentPerDay: damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount).encode(__typed__.recipientPaymentPerDay),
|
|
31
|
+
processorPaymentPerDay: damlTypes.Optional(damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount)).encode(__typed__.processorPaymentPerDay),
|
|
32
|
+
paymentsEndAt: damlTypes.Optional(damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionTime.SubscriptionTime)).encode(__typed__.paymentsEndAt),
|
|
33
|
+
prepayWindow: damlTypes.Optional(damlTypes.Optional(pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime)).encode(__typed__.prepayWindow),
|
|
34
|
+
freeTrialExpiration: damlTypes.Optional(damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionTime.SubscriptionTime)).encode(__typed__.freeTrialExpiration),
|
|
35
|
+
description: damlTypes.Optional(damlTypes.Optional(damlTypes.Text)).encode(__typed__.description),
|
|
36
|
+
metadata: damlTypes.Optional(damlTypes.Optional(damlTypes.TextMap(damlTypes.Text))).encode(__typed__.metadata),
|
|
37
|
+
observers: damlTypes.Optional(damlTypes.List(damlTypes.Party)).encode(__typed__.observers),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
,
|
|
41
|
+
};
|
|
42
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './module';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3
|
+
function __export(m) {
|
|
4
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
__export(require('./module'));
|