@fairmint/open-captable-protocol-daml-js 0.2.36 → 0.2.37

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 (123) hide show
  1. package/README.md +1 -1
  2. package/generated/paymentStreams-factory-contract-id.json +22 -0
  3. package/generated/{subscriptions-factory-contract-id.json.d.ts → paymentStreams-factory-contract-id.json.d.ts} +2 -2
  4. package/lib/CantonPayments/PaymentStream/ActivePaymentStream/module.d.ts +225 -0
  5. package/lib/CantonPayments/PaymentStream/ActivePaymentStream/module.js +354 -0
  6. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/PartyMigrationProposal/module.d.ts +18 -18
  7. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/PartyMigrationProposal/module.js +27 -27
  8. package/lib/CantonPayments/PaymentStream/PaymentStreamFactory/module.d.ts +52 -0
  9. package/lib/CantonPayments/PaymentStream/PaymentStreamFactory/module.js +74 -0
  10. package/lib/CantonPayments/PaymentStream/ProposedPaymentStream/module.d.ts +103 -0
  11. package/lib/CantonPayments/PaymentStream/ProposedPaymentStream/module.js +161 -0
  12. package/lib/CantonPayments/PaymentStream/Types/ActivePaymentStreamData/module.d.ts +25 -0
  13. package/lib/CantonPayments/PaymentStream/Types/ActivePaymentStreamData/module.js +32 -0
  14. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/Approvals/module.d.ts +2 -2
  15. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/Approvals/module.js +2 -2
  16. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/LockFundsInput/module.d.ts +3 -3
  17. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/LockFundsInput/module.js +3 -3
  18. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PartyRole/module.d.ts +2 -2
  19. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PartyRole/module.js +3 -3
  20. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentContext/module.d.ts +1 -1
  21. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentResult/module.d.ts +4 -2
  22. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentResult/module.js +4 -2
  23. package/lib/{Fairmint/Subscriptions/Types/Subscription → CantonPayments/PaymentStream/Types/PaymentStream}/module.d.ts +8 -8
  24. package/lib/{Fairmint/Subscriptions/Types/Subscription → CantonPayments/PaymentStream/Types/PaymentStream}/module.js +6 -6
  25. package/lib/{Fairmint/Subscriptions/Types/SubscriptionAmount → CantonPayments/PaymentStream/Types/PaymentStreamAmount}/module.d.ts +4 -4
  26. package/lib/{Fairmint/Subscriptions/Types/SubscriptionAmount → CantonPayments/PaymentStream/Types/PaymentStreamAmount}/module.js +2 -2
  27. package/lib/{Fairmint/Subscriptions/Types/SubscriptionChanges → CantonPayments/PaymentStream/Types/PaymentStreamChanges}/module.d.ts +10 -10
  28. package/lib/{Fairmint/Subscriptions/Types/SubscriptionChanges → CantonPayments/PaymentStream/Types/PaymentStreamChanges}/module.js +8 -8
  29. package/lib/{Fairmint/Subscriptions/Types/SubscriptionProposal → CantonPayments/PaymentStream/Types/PaymentStreamProposal}/module.d.ts +11 -11
  30. package/lib/CantonPayments/PaymentStream/Types/PaymentStreamProposal/module.js +42 -0
  31. package/lib/{Fairmint/Subscriptions/Types/SubscriptionProposalChanges → CantonPayments/PaymentStream/Types/PaymentStreamProposalChanges}/module.d.ts +11 -11
  32. package/lib/CantonPayments/PaymentStream/Types/PaymentStreamProposalChanges/module.js +42 -0
  33. package/lib/{Fairmint/Subscriptions/Types/SubscriptionStats → CantonPayments/PaymentStream/Types/PaymentStreamStats}/module.d.ts +6 -6
  34. package/lib/{Fairmint/Subscriptions/Types/SubscriptionStats → CantonPayments/PaymentStream/Types/PaymentStreamStats}/module.js +4 -4
  35. package/lib/{Fairmint/Subscriptions/Types/SubscriptionTime → CantonPayments/PaymentStream/Types/PaymentStreamTime}/module.d.ts +4 -4
  36. package/lib/{Fairmint/Subscriptions/Types/SubscriptionTime → CantonPayments/PaymentStream/Types/PaymentStreamTime}/module.js +2 -2
  37. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/ProcessFreeTrialResult/module.d.ts +2 -2
  38. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/ProcessFreeTrialResult/module.js +2 -2
  39. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/ProcessorContext/module.d.ts +1 -1
  40. package/lib/CantonPayments/PaymentStream/Types/index.d.ts +30 -0
  41. package/lib/CantonPayments/PaymentStream/Types/index.js +37 -0
  42. package/lib/CantonPayments/PaymentStream/index.d.ts +10 -0
  43. package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/index.js +6 -6
  44. package/lib/CantonPayments/index.d.ts +2 -0
  45. package/lib/CantonPayments/index.js +9 -0
  46. package/lib/Fairmint/OpenCapTable/ConvertibleIssuance/module.js +1 -1
  47. package/lib/Fairmint/OpenCapTable/Document/module.js +1 -1
  48. package/lib/Fairmint/OpenCapTable/EquityCompensationExercise/module.js +1 -1
  49. package/lib/Fairmint/OpenCapTable/EquityCompensationIssuance/module.js +1 -1
  50. package/lib/Fairmint/OpenCapTable/Issuer/module.js +1 -1
  51. package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.js +1 -1
  52. package/lib/Fairmint/OpenCapTable/IssuerAuthorizedSharesAdjustment/module.js +1 -1
  53. package/lib/Fairmint/OpenCapTable/OcpFactory/module.js +1 -1
  54. package/lib/Fairmint/OpenCapTable/Stakeholder/module.js +1 -1
  55. package/lib/Fairmint/OpenCapTable/StockCancellation/module.js +1 -1
  56. package/lib/Fairmint/OpenCapTable/StockClass/module.js +1 -1
  57. package/lib/Fairmint/OpenCapTable/StockClassAuthorizedSharesAdjustment/module.js +1 -1
  58. package/lib/Fairmint/OpenCapTable/StockIssuance/module.js +1 -1
  59. package/lib/Fairmint/OpenCapTable/StockLegendTemplate/module.js +1 -1
  60. package/lib/Fairmint/OpenCapTable/StockPlan/module.js +1 -1
  61. package/lib/Fairmint/OpenCapTable/StockPlanPoolAdjustment/module.js +1 -1
  62. package/lib/Fairmint/OpenCapTable/Valuation/module.js +1 -1
  63. package/lib/Fairmint/OpenCapTable/VestingTerms/module.js +1 -1
  64. package/lib/Fairmint/OpenCapTable/WarrantIssuance/module.js +1 -1
  65. package/lib/Fairmint/index.d.ts +0 -1
  66. package/lib/Fairmint/index.js +0 -2
  67. package/lib/index.d.ts +2 -1
  68. package/lib/index.js +2 -0
  69. package/package.json +12 -12
  70. package/generated/subscriptions-factory-contract-id.json +0 -22
  71. package/lib/Fairmint/Subscriptions/ActiveSubscription/module.d.ts +0 -224
  72. package/lib/Fairmint/Subscriptions/ActiveSubscription/module.js +0 -353
  73. package/lib/Fairmint/Subscriptions/ProposedSubscription/module.d.ts +0 -103
  74. package/lib/Fairmint/Subscriptions/ProposedSubscription/module.js +0 -161
  75. package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.d.ts +0 -52
  76. package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.js +0 -74
  77. package/lib/Fairmint/Subscriptions/Types/ActiveSubscriptionData/module.d.ts +0 -25
  78. package/lib/Fairmint/Subscriptions/Types/ActiveSubscriptionData/module.js +0 -32
  79. package/lib/Fairmint/Subscriptions/Types/SubscriptionProposal/module.js +0 -42
  80. package/lib/Fairmint/Subscriptions/Types/SubscriptionProposalChanges/module.js +0 -42
  81. package/lib/Fairmint/Subscriptions/Types/index.d.ts +0 -30
  82. package/lib/Fairmint/Subscriptions/Types/index.js +0 -37
  83. package/lib/Fairmint/Subscriptions/index.d.ts +0 -10
  84. /package/lib/{Fairmint/Subscriptions/ActiveSubscription → CantonPayments/PaymentStream/ActivePaymentStream}/index.d.ts +0 -0
  85. /package/lib/{Fairmint/Subscriptions/ActiveSubscription → CantonPayments/PaymentStream/ActivePaymentStream}/index.js +0 -0
  86. /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/PartyMigrationProposal/index.d.ts +0 -0
  87. /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/PartyMigrationProposal/index.js +0 -0
  88. /package/lib/{Fairmint/Subscriptions/ProposedSubscription → CantonPayments/PaymentStream/PaymentStreamFactory}/index.d.ts +0 -0
  89. /package/lib/{Fairmint/Subscriptions/ProposedSubscription → CantonPayments/PaymentStream/PaymentStreamFactory}/index.js +0 -0
  90. /package/lib/{Fairmint/Subscriptions/SubscriptionFactory → CantonPayments/PaymentStream/ProposedPaymentStream}/index.d.ts +0 -0
  91. /package/lib/{Fairmint/Subscriptions/SubscriptionFactory → CantonPayments/PaymentStream/ProposedPaymentStream}/index.js +0 -0
  92. /package/lib/{Fairmint/Subscriptions/Types/ActiveSubscriptionData → CantonPayments/PaymentStream/Types/ActivePaymentStreamData}/index.d.ts +0 -0
  93. /package/lib/{Fairmint/Subscriptions/Types/ActiveSubscriptionData → CantonPayments/PaymentStream/Types/ActivePaymentStreamData}/index.js +0 -0
  94. /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/Approvals/index.d.ts +0 -0
  95. /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/Approvals/index.js +0 -0
  96. /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/LockFundsInput/index.d.ts +0 -0
  97. /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/LockFundsInput/index.js +0 -0
  98. /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PartyRole/index.d.ts +0 -0
  99. /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PartyRole/index.js +0 -0
  100. /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentContext/index.d.ts +0 -0
  101. /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentContext/index.js +0 -0
  102. /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentContext/module.js +0 -0
  103. /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentResult/index.d.ts +0 -0
  104. /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentResult/index.js +0 -0
  105. /package/lib/{Fairmint/Subscriptions/Types/ProcessFreeTrialResult → CantonPayments/PaymentStream/Types/PaymentStream}/index.d.ts +0 -0
  106. /package/lib/{Fairmint/Subscriptions/Types/ProcessFreeTrialResult → CantonPayments/PaymentStream/Types/PaymentStream}/index.js +0 -0
  107. /package/lib/{Fairmint/Subscriptions/Types/ProcessorContext → CantonPayments/PaymentStream/Types/PaymentStreamAmount}/index.d.ts +0 -0
  108. /package/lib/{Fairmint/Subscriptions/Types/ProcessorContext → CantonPayments/PaymentStream/Types/PaymentStreamAmount}/index.js +0 -0
  109. /package/lib/{Fairmint/Subscriptions/Types/Subscription → CantonPayments/PaymentStream/Types/PaymentStreamChanges}/index.d.ts +0 -0
  110. /package/lib/{Fairmint/Subscriptions/Types/Subscription → CantonPayments/PaymentStream/Types/PaymentStreamChanges}/index.js +0 -0
  111. /package/lib/{Fairmint/Subscriptions/Types/SubscriptionAmount → CantonPayments/PaymentStream/Types/PaymentStreamProposal}/index.d.ts +0 -0
  112. /package/lib/{Fairmint/Subscriptions/Types/SubscriptionAmount → CantonPayments/PaymentStream/Types/PaymentStreamProposal}/index.js +0 -0
  113. /package/lib/{Fairmint/Subscriptions/Types/SubscriptionChanges → CantonPayments/PaymentStream/Types/PaymentStreamProposalChanges}/index.d.ts +0 -0
  114. /package/lib/{Fairmint/Subscriptions/Types/SubscriptionChanges → CantonPayments/PaymentStream/Types/PaymentStreamProposalChanges}/index.js +0 -0
  115. /package/lib/{Fairmint/Subscriptions/Types/SubscriptionProposal → CantonPayments/PaymentStream/Types/PaymentStreamStats}/index.d.ts +0 -0
  116. /package/lib/{Fairmint/Subscriptions/Types/SubscriptionProposal → CantonPayments/PaymentStream/Types/PaymentStreamStats}/index.js +0 -0
  117. /package/lib/{Fairmint/Subscriptions/Types/SubscriptionProposalChanges → CantonPayments/PaymentStream/Types/PaymentStreamTime}/index.d.ts +0 -0
  118. /package/lib/{Fairmint/Subscriptions/Types/SubscriptionProposalChanges → CantonPayments/PaymentStream/Types/PaymentStreamTime}/index.js +0 -0
  119. /package/lib/{Fairmint/Subscriptions/Types/SubscriptionStats → CantonPayments/PaymentStream/Types/ProcessFreeTrialResult}/index.d.ts +0 -0
  120. /package/lib/{Fairmint/Subscriptions/Types/SubscriptionStats → CantonPayments/PaymentStream/Types/ProcessFreeTrialResult}/index.js +0 -0
  121. /package/lib/{Fairmint/Subscriptions/Types/SubscriptionTime → CantonPayments/PaymentStream/Types/ProcessorContext}/index.d.ts +0 -0
  122. /package/lib/{Fairmint/Subscriptions/Types/SubscriptionTime → CantonPayments/PaymentStream/Types/ProcessorContext}/index.js +0 -0
  123. /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/ProcessorContext/module.js +0 -0
@@ -1,103 +0,0 @@
1
- // Generated from Fairmint/Subscriptions/ProposedSubscription.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 pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4 from '../../../DA/Types';
12
- import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../DA/Internal/Template';
13
-
14
- import * as Fairmint_Subscriptions_ActiveSubscription from '../../../Fairmint/Subscriptions/ActiveSubscription/module';
15
- import * as Fairmint_Subscriptions_Types_Approvals from '../../../Fairmint/Subscriptions/Types/Approvals/module';
16
- import * as Fairmint_Subscriptions_Types_LockFundsInput from '../../../Fairmint/Subscriptions/Types/LockFundsInput/module';
17
- import * as Fairmint_Subscriptions_Types_PartyRole from '../../../Fairmint/Subscriptions/Types/PartyRole/module';
18
- import * as Fairmint_Subscriptions_Types_ProcessorContext from '../../../Fairmint/Subscriptions/Types/ProcessorContext/module';
19
- import * as Fairmint_Subscriptions_Types_SubscriptionProposal from '../../../Fairmint/Subscriptions/Types/SubscriptionProposal/module';
20
- import * as Fairmint_Subscriptions_Types_SubscriptionProposalChanges from '../../../Fairmint/Subscriptions/Types/SubscriptionProposalChanges/module';
21
-
22
- export declare type ProposedSubscription_ChangeParty = {
23
- partyType: Fairmint_Subscriptions_Types_PartyRole.PartyRole;
24
- oldParty: damlTypes.Party;
25
- newParty: damlTypes.Party;
26
- };
27
-
28
- export declare const ProposedSubscription_ChangeParty:
29
- damlTypes.Serializable<ProposedSubscription_ChangeParty> & {
30
- }
31
- ;
32
-
33
-
34
- export declare type ProposedSubscription_Withdraw = {
35
- actor: damlTypes.Party;
36
- description: damlTypes.Optional<string>;
37
- };
38
-
39
- export declare const ProposedSubscription_Withdraw:
40
- damlTypes.Serializable<ProposedSubscription_Withdraw> & {
41
- }
42
- ;
43
-
44
-
45
- export declare type ProposedSubscription_EditSubscriptionProposal = {
46
- actor: damlTypes.Party;
47
- changes: Fairmint_Subscriptions_Types_SubscriptionProposalChanges.SubscriptionProposalChanges;
48
- description: damlTypes.Optional<string>;
49
- };
50
-
51
- export declare const ProposedSubscription_EditSubscriptionProposal:
52
- damlTypes.Serializable<ProposedSubscription_EditSubscriptionProposal> & {
53
- }
54
- ;
55
-
56
-
57
- export declare type ProposedSubscription_StartSubscription = {
58
- lockFundsInput: Fairmint_Subscriptions_Types_LockFundsInput.LockFundsInput;
59
- };
60
-
61
- export declare const ProposedSubscription_StartSubscription:
62
- damlTypes.Serializable<ProposedSubscription_StartSubscription> & {
63
- }
64
- ;
65
-
66
-
67
- export declare type ProposedSubscription_Approve = {
68
- actor: damlTypes.Party;
69
- };
70
-
71
- export declare const ProposedSubscription_Approve:
72
- damlTypes.Serializable<ProposedSubscription_Approve> & {
73
- }
74
- ;
75
-
76
-
77
- export declare type ProposedSubscription = {
78
- subscriptionProposal: Fairmint_Subscriptions_Types_SubscriptionProposal.SubscriptionProposal;
79
- processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext;
80
- approvals: Fairmint_Subscriptions_Types_Approvals.Approvals;
81
- };
82
-
83
- export declare interface ProposedSubscriptionInterface {
84
- Archive: damlTypes.Choice<ProposedSubscription, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ProposedSubscription, undefined>>;
85
- ProposedSubscription_ChangeParty: damlTypes.Choice<ProposedSubscription, ProposedSubscription_ChangeParty, damlTypes.ContractId<ProposedSubscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ProposedSubscription, undefined>>;
86
- ProposedSubscription_Approve: damlTypes.Choice<ProposedSubscription, ProposedSubscription_Approve, damlTypes.ContractId<ProposedSubscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ProposedSubscription, undefined>>;
87
- ProposedSubscription_StartSubscription: damlTypes.Choice<ProposedSubscription, ProposedSubscription_StartSubscription, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2<damlTypes.ContractId<Fairmint_Subscriptions_ActiveSubscription.ActiveSubscription>, damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>>>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ProposedSubscription, undefined>>;
88
- ProposedSubscription_EditSubscriptionProposal: damlTypes.Choice<ProposedSubscription, ProposedSubscription_EditSubscriptionProposal, damlTypes.ContractId<ProposedSubscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ProposedSubscription, undefined>>;
89
- ProposedSubscription_Withdraw: damlTypes.Choice<ProposedSubscription, ProposedSubscription_Withdraw, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ProposedSubscription, undefined>>;
90
- }
91
- export declare const ProposedSubscription:
92
- damlTypes.Template<ProposedSubscription, undefined, '#Subscriptions-v09:Fairmint.Subscriptions.ProposedSubscription:ProposedSubscription'> &
93
- damlTypes.ToInterface<ProposedSubscription, never> &
94
- ProposedSubscriptionInterface;
95
-
96
- export declare namespace ProposedSubscription {
97
- export type CreateEvent = damlLedger.CreateEvent<ProposedSubscription, undefined, typeof ProposedSubscription.templateId>
98
- export type ArchiveEvent = damlLedger.ArchiveEvent<ProposedSubscription, typeof ProposedSubscription.templateId>
99
- export type Event = damlLedger.Event<ProposedSubscription, undefined, typeof ProposedSubscription.templateId>
100
- export type QueryResult = damlLedger.QueryResult<ProposedSubscription, undefined, typeof ProposedSubscription.templateId>
101
- }
102
-
103
-
@@ -1,161 +0,0 @@
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 pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4 = require('../../../DA/Types');
17
- var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../DA/Internal/Template');
18
-
19
- var Fairmint_Subscriptions_ActiveSubscription = require('../../../Fairmint/Subscriptions/ActiveSubscription/module');
20
- var Fairmint_Subscriptions_Types_Approvals = require('../../../Fairmint/Subscriptions/Types/Approvals/module');
21
- var Fairmint_Subscriptions_Types_LockFundsInput = require('../../../Fairmint/Subscriptions/Types/LockFundsInput/module');
22
- var Fairmint_Subscriptions_Types_PartyRole = require('../../../Fairmint/Subscriptions/Types/PartyRole/module');
23
- var Fairmint_Subscriptions_Types_ProcessorContext = require('../../../Fairmint/Subscriptions/Types/ProcessorContext/module');
24
- var Fairmint_Subscriptions_Types_SubscriptionProposal = require('../../../Fairmint/Subscriptions/Types/SubscriptionProposal/module');
25
- var Fairmint_Subscriptions_Types_SubscriptionProposalChanges = require('../../../Fairmint/Subscriptions/Types/SubscriptionProposalChanges/module');
26
-
27
-
28
- exports.ProposedSubscription_ChangeParty = {
29
- decoder: damlTypes.lazyMemo(function () { return jtv.object({partyType: Fairmint_Subscriptions_Types_PartyRole.PartyRole.decoder, oldParty: damlTypes.Party.decoder, newParty: damlTypes.Party.decoder, }); }),
30
- encode: function (__typed__) {
31
- return {
32
- partyType: Fairmint_Subscriptions_Types_PartyRole.PartyRole.encode(__typed__.partyType),
33
- oldParty: damlTypes.Party.encode(__typed__.oldParty),
34
- newParty: damlTypes.Party.encode(__typed__.newParty),
35
- };
36
- }
37
- ,
38
- };
39
-
40
-
41
-
42
- exports.ProposedSubscription_Withdraw = {
43
- decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
44
- encode: function (__typed__) {
45
- return {
46
- actor: damlTypes.Party.encode(__typed__.actor),
47
- description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
48
- };
49
- }
50
- ,
51
- };
52
-
53
-
54
-
55
- exports.ProposedSubscription_EditSubscriptionProposal = {
56
- decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, changes: Fairmint_Subscriptions_Types_SubscriptionProposalChanges.SubscriptionProposalChanges.decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
57
- encode: function (__typed__) {
58
- return {
59
- actor: damlTypes.Party.encode(__typed__.actor),
60
- changes: Fairmint_Subscriptions_Types_SubscriptionProposalChanges.SubscriptionProposalChanges.encode(__typed__.changes),
61
- description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
62
- };
63
- }
64
- ,
65
- };
66
-
67
-
68
-
69
- exports.ProposedSubscription_StartSubscription = {
70
- decoder: damlTypes.lazyMemo(function () { return jtv.object({lockFundsInput: Fairmint_Subscriptions_Types_LockFundsInput.LockFundsInput.decoder, }); }),
71
- encode: function (__typed__) {
72
- return {
73
- lockFundsInput: Fairmint_Subscriptions_Types_LockFundsInput.LockFundsInput.encode(__typed__.lockFundsInput),
74
- };
75
- }
76
- ,
77
- };
78
-
79
-
80
-
81
- exports.ProposedSubscription_Approve = {
82
- decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, }); }),
83
- encode: function (__typed__) {
84
- return {
85
- actor: damlTypes.Party.encode(__typed__.actor),
86
- };
87
- }
88
- ,
89
- };
90
-
91
-
92
-
93
- exports.ProposedSubscription = damlTypes.assembleTemplate(
94
- {
95
- templateId: '#Subscriptions-v09:Fairmint.Subscriptions.ProposedSubscription:ProposedSubscription',
96
- keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
97
- keyEncode: function () { throw 'EncodeError'; },
98
- decoder: damlTypes.lazyMemo(function () { return jtv.object({subscriptionProposal: Fairmint_Subscriptions_Types_SubscriptionProposal.SubscriptionProposal.decoder, processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext.decoder, approvals: Fairmint_Subscriptions_Types_Approvals.Approvals.decoder, }); }),
99
- encode: function (__typed__) {
100
- return {
101
- subscriptionProposal: Fairmint_Subscriptions_Types_SubscriptionProposal.SubscriptionProposal.encode(__typed__.subscriptionProposal),
102
- processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext.encode(__typed__.processorContext),
103
- approvals: Fairmint_Subscriptions_Types_Approvals.Approvals.encode(__typed__.approvals),
104
- };
105
- }
106
- ,
107
- Archive: {
108
- template: function () { return exports.ProposedSubscription; },
109
- choiceName: 'Archive',
110
- argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
111
- argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
112
- resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
113
- resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
114
- },
115
- ProposedSubscription_ChangeParty: {
116
- template: function () { return exports.ProposedSubscription; },
117
- choiceName: 'ProposedSubscription_ChangeParty',
118
- argumentDecoder: damlTypes.lazyMemo(function () { return exports.ProposedSubscription_ChangeParty.decoder; }),
119
- argumentEncode: function (__typed__) { return exports.ProposedSubscription_ChangeParty.encode(__typed__); },
120
- resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.ProposedSubscription).decoder; }),
121
- resultEncode: function (__typed__) { return damlTypes.ContractId(exports.ProposedSubscription).encode(__typed__); },
122
- },
123
- ProposedSubscription_Approve: {
124
- template: function () { return exports.ProposedSubscription; },
125
- choiceName: 'ProposedSubscription_Approve',
126
- argumentDecoder: damlTypes.lazyMemo(function () { return exports.ProposedSubscription_Approve.decoder; }),
127
- argumentEncode: function (__typed__) { return exports.ProposedSubscription_Approve.encode(__typed__); },
128
- resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.ProposedSubscription).decoder; }),
129
- resultEncode: function (__typed__) { return damlTypes.ContractId(exports.ProposedSubscription).encode(__typed__); },
130
- },
131
- ProposedSubscription_StartSubscription: {
132
- template: function () { return exports.ProposedSubscription; },
133
- choiceName: 'ProposedSubscription_StartSubscription',
134
- argumentDecoder: damlTypes.lazyMemo(function () { return exports.ProposedSubscription_StartSubscription.decoder; }),
135
- argumentEncode: function (__typed__) { return exports.ProposedSubscription_StartSubscription.encode(__typed__); },
136
- resultDecoder: damlTypes.lazyMemo(function () { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(Fairmint_Subscriptions_ActiveSubscription.ActiveSubscription), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet))).decoder; }),
137
- resultEncode: function (__typed__) { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(Fairmint_Subscriptions_ActiveSubscription.ActiveSubscription), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet))).encode(__typed__); },
138
- },
139
- ProposedSubscription_EditSubscriptionProposal: {
140
- template: function () { return exports.ProposedSubscription; },
141
- choiceName: 'ProposedSubscription_EditSubscriptionProposal',
142
- argumentDecoder: damlTypes.lazyMemo(function () { return exports.ProposedSubscription_EditSubscriptionProposal.decoder; }),
143
- argumentEncode: function (__typed__) { return exports.ProposedSubscription_EditSubscriptionProposal.encode(__typed__); },
144
- resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.ProposedSubscription).decoder; }),
145
- resultEncode: function (__typed__) { return damlTypes.ContractId(exports.ProposedSubscription).encode(__typed__); },
146
- },
147
- ProposedSubscription_Withdraw: {
148
- template: function () { return exports.ProposedSubscription; },
149
- choiceName: 'ProposedSubscription_Withdraw',
150
- argumentDecoder: damlTypes.lazyMemo(function () { return exports.ProposedSubscription_Withdraw.decoder; }),
151
- argumentEncode: function (__typed__) { return exports.ProposedSubscription_Withdraw.encode(__typed__); },
152
- resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
153
- resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
154
- },
155
- }
156
-
157
- );
158
-
159
-
160
- damlTypes.registerTemplate(exports.ProposedSubscription, ['813acf3938ed38d338823fd94c5afb4a885e0ae54546741cc1b036c76c22c825', '#Subscriptions-v09']);
161
-
@@ -1,52 +0,0 @@
1
- // Generated from Fairmint/Subscriptions/SubscriptionFactory.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 pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4 from '../../../DA/Types';
12
- import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../DA/Internal/Template';
13
-
14
- import * as Fairmint_Subscriptions_ActiveSubscription from '../../../Fairmint/Subscriptions/ActiveSubscription/module';
15
- import * as Fairmint_Subscriptions_ProposedSubscription from '../../../Fairmint/Subscriptions/ProposedSubscription/module';
16
- import * as Fairmint_Subscriptions_Types_LockFundsInput from '../../../Fairmint/Subscriptions/Types/LockFundsInput/module';
17
- import * as Fairmint_Subscriptions_Types_ProcessorContext from '../../../Fairmint/Subscriptions/Types/ProcessorContext/module';
18
- import * as Fairmint_Subscriptions_Types_SubscriptionProposal from '../../../Fairmint/Subscriptions/Types/SubscriptionProposal/module';
19
-
20
- export declare type SubscriptionFactory_CreateProposedSubscription = {
21
- actor: damlTypes.Party;
22
- subscriptionProposal: Fairmint_Subscriptions_Types_SubscriptionProposal.SubscriptionProposal;
23
- lockFundsInput: damlTypes.Optional<Fairmint_Subscriptions_Types_LockFundsInput.LockFundsInput>;
24
- };
25
-
26
- export declare const SubscriptionFactory_CreateProposedSubscription:
27
- damlTypes.Serializable<SubscriptionFactory_CreateProposedSubscription> & {
28
- }
29
- ;
30
-
31
-
32
- export declare type SubscriptionFactory = {
33
- processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext;
34
- };
35
-
36
- export declare interface SubscriptionFactoryInterface {
37
- Archive: damlTypes.Choice<SubscriptionFactory, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<SubscriptionFactory, undefined>>;
38
- SubscriptionFactory_CreateProposedSubscription: damlTypes.Choice<SubscriptionFactory, SubscriptionFactory_CreateProposedSubscription, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Either<damlTypes.ContractId<Fairmint_Subscriptions_ProposedSubscription.ProposedSubscription>, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2<damlTypes.ContractId<Fairmint_Subscriptions_ActiveSubscription.ActiveSubscription>, damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>>>>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<SubscriptionFactory, undefined>>;
39
- }
40
- export declare const SubscriptionFactory:
41
- damlTypes.Template<SubscriptionFactory, undefined, '#Subscriptions-v09:Fairmint.Subscriptions.SubscriptionFactory:SubscriptionFactory'> &
42
- damlTypes.ToInterface<SubscriptionFactory, never> &
43
- SubscriptionFactoryInterface;
44
-
45
- export declare namespace SubscriptionFactory {
46
- export type CreateEvent = damlLedger.CreateEvent<SubscriptionFactory, undefined, typeof SubscriptionFactory.templateId>
47
- export type ArchiveEvent = damlLedger.ArchiveEvent<SubscriptionFactory, typeof SubscriptionFactory.templateId>
48
- export type Event = damlLedger.Event<SubscriptionFactory, undefined, typeof SubscriptionFactory.templateId>
49
- export type QueryResult = damlLedger.QueryResult<SubscriptionFactory, undefined, typeof SubscriptionFactory.templateId>
50
- }
51
-
52
-
@@ -1,74 +0,0 @@
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 pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4 = require('../../../DA/Types');
17
- var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../DA/Internal/Template');
18
-
19
- var Fairmint_Subscriptions_ActiveSubscription = require('../../../Fairmint/Subscriptions/ActiveSubscription/module');
20
- var Fairmint_Subscriptions_ProposedSubscription = require('../../../Fairmint/Subscriptions/ProposedSubscription/module');
21
- var Fairmint_Subscriptions_Types_LockFundsInput = require('../../../Fairmint/Subscriptions/Types/LockFundsInput/module');
22
- var Fairmint_Subscriptions_Types_ProcessorContext = require('../../../Fairmint/Subscriptions/Types/ProcessorContext/module');
23
- var Fairmint_Subscriptions_Types_SubscriptionProposal = require('../../../Fairmint/Subscriptions/Types/SubscriptionProposal/module');
24
-
25
-
26
- exports.SubscriptionFactory_CreateProposedSubscription = {
27
- decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, subscriptionProposal: Fairmint_Subscriptions_Types_SubscriptionProposal.SubscriptionProposal.decoder, lockFundsInput: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_Subscriptions_Types_LockFundsInput.LockFundsInput).decoder), }); }),
28
- encode: function (__typed__) {
29
- return {
30
- actor: damlTypes.Party.encode(__typed__.actor),
31
- subscriptionProposal: Fairmint_Subscriptions_Types_SubscriptionProposal.SubscriptionProposal.encode(__typed__.subscriptionProposal),
32
- lockFundsInput: damlTypes.Optional(Fairmint_Subscriptions_Types_LockFundsInput.LockFundsInput).encode(__typed__.lockFundsInput),
33
- };
34
- }
35
- ,
36
- };
37
-
38
-
39
-
40
- exports.SubscriptionFactory = damlTypes.assembleTemplate(
41
- {
42
- templateId: '#Subscriptions-v09:Fairmint.Subscriptions.SubscriptionFactory:SubscriptionFactory',
43
- keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
44
- keyEncode: function () { throw 'EncodeError'; },
45
- decoder: damlTypes.lazyMemo(function () { return jtv.object({processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext.decoder, }); }),
46
- encode: function (__typed__) {
47
- return {
48
- processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext.encode(__typed__.processorContext),
49
- };
50
- }
51
- ,
52
- Archive: {
53
- template: function () { return exports.SubscriptionFactory; },
54
- choiceName: 'Archive',
55
- argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
56
- argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
57
- resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
58
- resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
59
- },
60
- SubscriptionFactory_CreateProposedSubscription: {
61
- template: function () { return exports.SubscriptionFactory; },
62
- choiceName: 'SubscriptionFactory_CreateProposedSubscription',
63
- argumentDecoder: damlTypes.lazyMemo(function () { return exports.SubscriptionFactory_CreateProposedSubscription.decoder; }),
64
- argumentEncode: function (__typed__) { return exports.SubscriptionFactory_CreateProposedSubscription.encode(__typed__); },
65
- resultDecoder: damlTypes.lazyMemo(function () { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Either(damlTypes.ContractId(Fairmint_Subscriptions_ProposedSubscription.ProposedSubscription), pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(Fairmint_Subscriptions_ActiveSubscription.ActiveSubscription), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)))).decoder; }),
66
- resultEncode: function (__typed__) { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Either(damlTypes.ContractId(Fairmint_Subscriptions_ProposedSubscription.ProposedSubscription), pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(Fairmint_Subscriptions_ActiveSubscription.ActiveSubscription), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)))).encode(__typed__); },
67
- },
68
- }
69
-
70
- );
71
-
72
-
73
- damlTypes.registerTemplate(exports.SubscriptionFactory, ['813acf3938ed38d338823fd94c5afb4a885e0ae54546741cc1b036c76c22c825', '#Subscriptions-v09']);
74
-
@@ -1,25 +0,0 @@
1
- // Generated from Fairmint/Subscriptions/Types/ActiveSubscriptionData.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 Fairmint_Subscriptions_Types_ProcessorContext from '../../../../Fairmint/Subscriptions/Types/ProcessorContext/module';
11
- import * as Fairmint_Subscriptions_Types_Subscription from '../../../../Fairmint/Subscriptions/Types/Subscription/module';
12
- import * as Fairmint_Subscriptions_Types_SubscriptionStats from '../../../../Fairmint/Subscriptions/Types/SubscriptionStats/module';
13
-
14
- export declare type ActiveSubscriptionData = {
15
- subscription: Fairmint_Subscriptions_Types_Subscription.Subscription;
16
- processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext;
17
- processedAndPaidUntil: damlTypes.Time;
18
- stats: Fairmint_Subscriptions_Types_SubscriptionStats.SubscriptionStats;
19
- };
20
-
21
- export declare const ActiveSubscriptionData:
22
- damlTypes.Serializable<ActiveSubscriptionData> & {
23
- }
24
- ;
25
-
@@ -1,32 +0,0 @@
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 Fairmint_Subscriptions_Types_ProcessorContext = require('../../../../Fairmint/Subscriptions/Types/ProcessorContext/module');
16
- var Fairmint_Subscriptions_Types_Subscription = require('../../../../Fairmint/Subscriptions/Types/Subscription/module');
17
- var Fairmint_Subscriptions_Types_SubscriptionStats = require('../../../../Fairmint/Subscriptions/Types/SubscriptionStats/module');
18
-
19
-
20
- exports.ActiveSubscriptionData = {
21
- decoder: damlTypes.lazyMemo(function () { return jtv.object({subscription: Fairmint_Subscriptions_Types_Subscription.Subscription.decoder, processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext.decoder, processedAndPaidUntil: damlTypes.Time.decoder, stats: Fairmint_Subscriptions_Types_SubscriptionStats.SubscriptionStats.decoder, }); }),
22
- encode: function (__typed__) {
23
- return {
24
- subscription: Fairmint_Subscriptions_Types_Subscription.Subscription.encode(__typed__.subscription),
25
- processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext.encode(__typed__.processorContext),
26
- processedAndPaidUntil: damlTypes.Time.encode(__typed__.processedAndPaidUntil),
27
- stats: Fairmint_Subscriptions_Types_SubscriptionStats.SubscriptionStats.encode(__typed__.stats),
28
- };
29
- }
30
- ,
31
- };
32
-
@@ -1,42 +0,0 @@
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, recipientPaymentPerDay: Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount.decoder, processorPaymentPerDay: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount).decoder), freeTrialExpiration: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionTime.SubscriptionTime).decoder), prepayWindow: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.decoder, paymentsEndAt: jtv.Decoder.withDefault(null, damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionTime.SubscriptionTime).decoder), provider: damlTypes.Party.decoder, appRewardBeneficiaries: damlTypes.List(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.AppRewardBeneficiary).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
- recipientPaymentPerDay: Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount.encode(__typed__.recipientPaymentPerDay),
29
- processorPaymentPerDay: damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionAmount.SubscriptionAmount).encode(__typed__.processorPaymentPerDay),
30
- freeTrialExpiration: damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionTime.SubscriptionTime).encode(__typed__.freeTrialExpiration),
31
- prepayWindow: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.encode(__typed__.prepayWindow),
32
- paymentsEndAt: damlTypes.Optional(Fairmint_Subscriptions_Types_SubscriptionTime.SubscriptionTime).encode(__typed__.paymentsEndAt),
33
- provider: damlTypes.Party.encode(__typed__.provider),
34
- appRewardBeneficiaries: damlTypes.List(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.AppRewardBeneficiary).encode(__typed__.appRewardBeneficiaries),
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
-
@@ -1,42 +0,0 @@
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), provider: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Party).decoder), appRewardBeneficiaries: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.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(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
- provider: damlTypes.Optional(damlTypes.Party).encode(__typed__.provider),
29
- appRewardBeneficiaries: damlTypes.Optional(damlTypes.List(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.AppRewardBeneficiary)).encode(__typed__.appRewardBeneficiaries),
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(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
-
@@ -1,30 +0,0 @@
1
- import * as ActiveSubscriptionData from './ActiveSubscriptionData';
2
- export { ActiveSubscriptionData } ;
3
- import * as Approvals from './Approvals';
4
- export { Approvals } ;
5
- import * as LockFundsInput from './LockFundsInput';
6
- export { LockFundsInput } ;
7
- import * as PartyRole from './PartyRole';
8
- export { PartyRole } ;
9
- import * as PaymentContext from './PaymentContext';
10
- export { PaymentContext } ;
11
- import * as PaymentResult from './PaymentResult';
12
- export { PaymentResult } ;
13
- import * as ProcessFreeTrialResult from './ProcessFreeTrialResult';
14
- export { ProcessFreeTrialResult } ;
15
- import * as ProcessorContext from './ProcessorContext';
16
- export { ProcessorContext } ;
17
- import * as Subscription from './Subscription';
18
- export { Subscription } ;
19
- import * as SubscriptionAmount from './SubscriptionAmount';
20
- export { SubscriptionAmount } ;
21
- import * as SubscriptionChanges from './SubscriptionChanges';
22
- export { SubscriptionChanges } ;
23
- import * as SubscriptionProposal from './SubscriptionProposal';
24
- export { SubscriptionProposal } ;
25
- import * as SubscriptionProposalChanges from './SubscriptionProposalChanges';
26
- export { SubscriptionProposalChanges } ;
27
- import * as SubscriptionStats from './SubscriptionStats';
28
- export { SubscriptionStats } ;
29
- import * as SubscriptionTime from './SubscriptionTime';
30
- export { SubscriptionTime } ;
@@ -1,37 +0,0 @@
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
- var ActiveSubscriptionData = require('./ActiveSubscriptionData');
9
- exports.ActiveSubscriptionData = ActiveSubscriptionData;
10
- var Approvals = require('./Approvals');
11
- exports.Approvals = Approvals;
12
- var LockFundsInput = require('./LockFundsInput');
13
- exports.LockFundsInput = LockFundsInput;
14
- var PartyRole = require('./PartyRole');
15
- exports.PartyRole = PartyRole;
16
- var PaymentContext = require('./PaymentContext');
17
- exports.PaymentContext = PaymentContext;
18
- var PaymentResult = require('./PaymentResult');
19
- exports.PaymentResult = PaymentResult;
20
- var ProcessFreeTrialResult = require('./ProcessFreeTrialResult');
21
- exports.ProcessFreeTrialResult = ProcessFreeTrialResult;
22
- var ProcessorContext = require('./ProcessorContext');
23
- exports.ProcessorContext = ProcessorContext;
24
- var Subscription = require('./Subscription');
25
- exports.Subscription = Subscription;
26
- var SubscriptionAmount = require('./SubscriptionAmount');
27
- exports.SubscriptionAmount = SubscriptionAmount;
28
- var SubscriptionChanges = require('./SubscriptionChanges');
29
- exports.SubscriptionChanges = SubscriptionChanges;
30
- var SubscriptionProposal = require('./SubscriptionProposal');
31
- exports.SubscriptionProposal = SubscriptionProposal;
32
- var SubscriptionProposalChanges = require('./SubscriptionProposalChanges');
33
- exports.SubscriptionProposalChanges = SubscriptionProposalChanges;
34
- var SubscriptionStats = require('./SubscriptionStats');
35
- exports.SubscriptionStats = SubscriptionStats;
36
- var SubscriptionTime = require('./SubscriptionTime');
37
- exports.SubscriptionTime = SubscriptionTime;
@@ -1,10 +0,0 @@
1
- import * as ActiveSubscription from './ActiveSubscription';
2
- export { ActiveSubscription } ;
3
- import * as PartyMigrationProposal from './PartyMigrationProposal';
4
- export { PartyMigrationProposal } ;
5
- import * as ProposedSubscription from './ProposedSubscription';
6
- export { ProposedSubscription } ;
7
- import * as SubscriptionFactory from './SubscriptionFactory';
8
- export { SubscriptionFactory } ;
9
- import * as Types from './Types';
10
- export { Types } ;