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

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 (194) 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/{DA/Date → CantonPayments}/index.js +2 -2
  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/DA/Date/Types/module.d.ts +0 -47
  72. package/lib/DA/Date/Types/module.js +0 -48
  73. package/lib/DA/Date/index.d.ts +0 -2
  74. package/lib/DA/Exception/ArithmeticError/module.d.ts +0 -18
  75. package/lib/DA/Exception/ArithmeticError/module.js +0 -25
  76. package/lib/DA/Exception/AssertionFailed/module.d.ts +0 -18
  77. package/lib/DA/Exception/AssertionFailed/module.js +0 -25
  78. package/lib/DA/Exception/GeneralError/module.d.ts +0 -18
  79. package/lib/DA/Exception/GeneralError/module.js +0 -25
  80. package/lib/DA/Exception/PreconditionFailed/module.d.ts +0 -18
  81. package/lib/DA/Exception/PreconditionFailed/module.js +0 -25
  82. package/lib/DA/Exception/index.d.ts +0 -2
  83. package/lib/DA/Exception/index.js +0 -9
  84. package/lib/DA/Internal/Down/module.d.ts +0 -17
  85. package/lib/DA/Internal/Down/module.js +0 -25
  86. package/lib/DA/Logic/Types/module.d.ts +0 -20
  87. package/lib/DA/Logic/Types/module.js +0 -29
  88. package/lib/DA/Logic/index.d.ts +0 -2
  89. package/lib/DA/Logic/index.js +0 -9
  90. package/lib/DA/Monoid/Types/module.d.ts +0 -46
  91. package/lib/DA/Monoid/Types/module.js +0 -61
  92. package/lib/DA/Monoid/index.d.ts +0 -2
  93. package/lib/DA/Monoid/index.js +0 -9
  94. package/lib/DA/NonEmpty/Types/module.d.ts +0 -18
  95. package/lib/DA/NonEmpty/Types/module.js +0 -26
  96. package/lib/DA/NonEmpty/index.d.ts +0 -2
  97. package/lib/DA/NonEmpty/index.js +0 -9
  98. package/lib/DA/Random/Types/module.d.ts +0 -18
  99. package/lib/DA/Random/Types/module.js +0 -26
  100. package/lib/DA/Random/index.d.ts +0 -2
  101. package/lib/DA/Random/index.js +0 -9
  102. package/lib/DA/Semigroup/Types/module.d.ts +0 -26
  103. package/lib/DA/Semigroup/Types/module.js +0 -37
  104. package/lib/DA/Semigroup/index.d.ts +0 -2
  105. package/lib/DA/Semigroup/index.js +0 -9
  106. package/lib/DA/Stack/Types/module.d.ts +0 -24
  107. package/lib/DA/Stack/Types/module.js +0 -31
  108. package/lib/DA/Stack/index.d.ts +0 -2
  109. package/lib/DA/Stack/index.js +0 -9
  110. package/lib/DA/Validation/Types/module.d.ts +0 -20
  111. package/lib/DA/Validation/Types/module.js +0 -29
  112. package/lib/DA/Validation/index.d.ts +0 -2
  113. package/lib/DA/Validation/index.js +0 -9
  114. package/lib/Fairmint/Subscriptions/ActiveSubscription/module.d.ts +0 -224
  115. package/lib/Fairmint/Subscriptions/ActiveSubscription/module.js +0 -353
  116. package/lib/Fairmint/Subscriptions/ProposedSubscription/module.d.ts +0 -103
  117. package/lib/Fairmint/Subscriptions/ProposedSubscription/module.js +0 -161
  118. package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.d.ts +0 -52
  119. package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.js +0 -74
  120. package/lib/Fairmint/Subscriptions/Types/ActiveSubscriptionData/module.d.ts +0 -25
  121. package/lib/Fairmint/Subscriptions/Types/ActiveSubscriptionData/module.js +0 -32
  122. package/lib/Fairmint/Subscriptions/Types/LockFundsInput/index.d.ts +0 -1
  123. package/lib/Fairmint/Subscriptions/Types/LockFundsInput/index.js +0 -8
  124. package/lib/Fairmint/Subscriptions/Types/PartyRole/index.d.ts +0 -1
  125. package/lib/Fairmint/Subscriptions/Types/PartyRole/index.js +0 -8
  126. package/lib/Fairmint/Subscriptions/Types/PaymentContext/index.d.ts +0 -1
  127. package/lib/Fairmint/Subscriptions/Types/PaymentContext/index.js +0 -8
  128. package/lib/Fairmint/Subscriptions/Types/PaymentResult/index.d.ts +0 -1
  129. package/lib/Fairmint/Subscriptions/Types/PaymentResult/index.js +0 -8
  130. package/lib/Fairmint/Subscriptions/Types/ProcessFreeTrialResult/index.d.ts +0 -1
  131. package/lib/Fairmint/Subscriptions/Types/ProcessFreeTrialResult/index.js +0 -8
  132. package/lib/Fairmint/Subscriptions/Types/ProcessorContext/index.d.ts +0 -1
  133. package/lib/Fairmint/Subscriptions/Types/ProcessorContext/index.js +0 -8
  134. package/lib/Fairmint/Subscriptions/Types/Subscription/index.d.ts +0 -1
  135. package/lib/Fairmint/Subscriptions/Types/Subscription/index.js +0 -8
  136. package/lib/Fairmint/Subscriptions/Types/SubscriptionAmount/index.d.ts +0 -1
  137. package/lib/Fairmint/Subscriptions/Types/SubscriptionAmount/index.js +0 -8
  138. package/lib/Fairmint/Subscriptions/Types/SubscriptionChanges/index.d.ts +0 -1
  139. package/lib/Fairmint/Subscriptions/Types/SubscriptionChanges/index.js +0 -8
  140. package/lib/Fairmint/Subscriptions/Types/SubscriptionProposal/index.d.ts +0 -1
  141. package/lib/Fairmint/Subscriptions/Types/SubscriptionProposal/index.js +0 -8
  142. package/lib/Fairmint/Subscriptions/Types/SubscriptionProposal/module.js +0 -42
  143. package/lib/Fairmint/Subscriptions/Types/SubscriptionProposalChanges/index.d.ts +0 -1
  144. package/lib/Fairmint/Subscriptions/Types/SubscriptionProposalChanges/index.js +0 -8
  145. package/lib/Fairmint/Subscriptions/Types/SubscriptionProposalChanges/module.js +0 -42
  146. package/lib/Fairmint/Subscriptions/Types/SubscriptionStats/index.d.ts +0 -1
  147. package/lib/Fairmint/Subscriptions/Types/SubscriptionStats/index.js +0 -8
  148. package/lib/Fairmint/Subscriptions/Types/SubscriptionTime/index.d.ts +0 -1
  149. package/lib/Fairmint/Subscriptions/Types/SubscriptionTime/index.js +0 -8
  150. package/lib/Fairmint/Subscriptions/Types/index.d.ts +0 -30
  151. package/lib/Fairmint/Subscriptions/Types/index.js +0 -37
  152. package/lib/Fairmint/Subscriptions/index.d.ts +0 -10
  153. package/lib/Splice/Api/Token/index.d.ts +0 -2
  154. package/lib/Splice/Api/Token/index.js +0 -9
  155. /package/lib/{DA/Date/Types → CantonPayments/PaymentStream/ActivePaymentStream}/index.d.ts +0 -0
  156. /package/lib/{DA/Date/Types → CantonPayments/PaymentStream/ActivePaymentStream}/index.js +0 -0
  157. /package/lib/{DA/Exception/ArithmeticError → CantonPayments/PaymentStream/PartyMigrationProposal}/index.d.ts +0 -0
  158. /package/lib/{DA/Exception/ArithmeticError → CantonPayments/PaymentStream/PartyMigrationProposal}/index.js +0 -0
  159. /package/lib/{DA/Exception/AssertionFailed → CantonPayments/PaymentStream/PaymentStreamFactory}/index.d.ts +0 -0
  160. /package/lib/{DA/Exception/AssertionFailed → CantonPayments/PaymentStream/PaymentStreamFactory}/index.js +0 -0
  161. /package/lib/{DA/Exception/GeneralError → CantonPayments/PaymentStream/ProposedPaymentStream}/index.d.ts +0 -0
  162. /package/lib/{DA/Exception/GeneralError → CantonPayments/PaymentStream/ProposedPaymentStream}/index.js +0 -0
  163. /package/lib/{DA/Exception/PreconditionFailed → CantonPayments/PaymentStream/Types/ActivePaymentStreamData}/index.d.ts +0 -0
  164. /package/lib/{DA/Exception/PreconditionFailed → CantonPayments/PaymentStream/Types/ActivePaymentStreamData}/index.js +0 -0
  165. /package/lib/{DA/Internal/Down → CantonPayments/PaymentStream/Types/Approvals}/index.d.ts +0 -0
  166. /package/lib/{DA/Internal/Down → CantonPayments/PaymentStream/Types/Approvals}/index.js +0 -0
  167. /package/lib/{DA/Logic/Types → CantonPayments/PaymentStream/Types/LockFundsInput}/index.d.ts +0 -0
  168. /package/lib/{DA/Logic/Types → CantonPayments/PaymentStream/Types/LockFundsInput}/index.js +0 -0
  169. /package/lib/{DA/Monoid/Types → CantonPayments/PaymentStream/Types/PartyRole}/index.d.ts +0 -0
  170. /package/lib/{DA/Monoid/Types → CantonPayments/PaymentStream/Types/PartyRole}/index.js +0 -0
  171. /package/lib/{DA/NonEmpty/Types → CantonPayments/PaymentStream/Types/PaymentContext}/index.d.ts +0 -0
  172. /package/lib/{DA/NonEmpty/Types → CantonPayments/PaymentStream/Types/PaymentContext}/index.js +0 -0
  173. /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentContext/module.js +0 -0
  174. /package/lib/{DA/Random/Types → CantonPayments/PaymentStream/Types/PaymentResult}/index.d.ts +0 -0
  175. /package/lib/{DA/Random/Types → CantonPayments/PaymentStream/Types/PaymentResult}/index.js +0 -0
  176. /package/lib/{DA/Semigroup/Types → CantonPayments/PaymentStream/Types/PaymentStream}/index.d.ts +0 -0
  177. /package/lib/{DA/Semigroup/Types → CantonPayments/PaymentStream/Types/PaymentStream}/index.js +0 -0
  178. /package/lib/{DA/Stack/Types → CantonPayments/PaymentStream/Types/PaymentStreamAmount}/index.d.ts +0 -0
  179. /package/lib/{DA/Stack/Types → CantonPayments/PaymentStream/Types/PaymentStreamAmount}/index.js +0 -0
  180. /package/lib/{DA/Validation/Types → CantonPayments/PaymentStream/Types/PaymentStreamChanges}/index.d.ts +0 -0
  181. /package/lib/{DA/Validation/Types → CantonPayments/PaymentStream/Types/PaymentStreamChanges}/index.js +0 -0
  182. /package/lib/{Fairmint/Subscriptions/ActiveSubscription → CantonPayments/PaymentStream/Types/PaymentStreamProposal}/index.d.ts +0 -0
  183. /package/lib/{Fairmint/Subscriptions/ActiveSubscription → CantonPayments/PaymentStream/Types/PaymentStreamProposal}/index.js +0 -0
  184. /package/lib/{Fairmint/Subscriptions/PartyMigrationProposal → CantonPayments/PaymentStream/Types/PaymentStreamProposalChanges}/index.d.ts +0 -0
  185. /package/lib/{Fairmint/Subscriptions/PartyMigrationProposal → CantonPayments/PaymentStream/Types/PaymentStreamProposalChanges}/index.js +0 -0
  186. /package/lib/{Fairmint/Subscriptions/ProposedSubscription → CantonPayments/PaymentStream/Types/PaymentStreamStats}/index.d.ts +0 -0
  187. /package/lib/{Fairmint/Subscriptions/ProposedSubscription → CantonPayments/PaymentStream/Types/PaymentStreamStats}/index.js +0 -0
  188. /package/lib/{Fairmint/Subscriptions/SubscriptionFactory → CantonPayments/PaymentStream/Types/PaymentStreamTime}/index.d.ts +0 -0
  189. /package/lib/{Fairmint/Subscriptions/SubscriptionFactory → CantonPayments/PaymentStream/Types/PaymentStreamTime}/index.js +0 -0
  190. /package/lib/{Fairmint/Subscriptions/Types/ActiveSubscriptionData → CantonPayments/PaymentStream/Types/ProcessFreeTrialResult}/index.d.ts +0 -0
  191. /package/lib/{Fairmint/Subscriptions/Types/ActiveSubscriptionData → CantonPayments/PaymentStream/Types/ProcessFreeTrialResult}/index.js +0 -0
  192. /package/lib/{Fairmint/Subscriptions/Types/Approvals → CantonPayments/PaymentStream/Types/ProcessorContext}/index.d.ts +0 -0
  193. /package/lib/{Fairmint/Subscriptions/Types/Approvals → CantonPayments/PaymentStream/Types/ProcessorContext}/index.js +0 -0
  194. /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/ProcessorContext/module.js +0 -0
@@ -1,31 +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
-
16
- exports.SrcLoc = {
17
- decoder: damlTypes.lazyMemo(function () { return jtv.object({srcLocPackage: damlTypes.Text.decoder, srcLocModule: damlTypes.Text.decoder, srcLocFile: damlTypes.Text.decoder, srcLocStartLine: damlTypes.Int.decoder, srcLocStartCol: damlTypes.Int.decoder, srcLocEndLine: damlTypes.Int.decoder, srcLocEndCol: damlTypes.Int.decoder, }); }),
18
- encode: function (__typed__) {
19
- return {
20
- srcLocPackage: damlTypes.Text.encode(__typed__.srcLocPackage),
21
- srcLocModule: damlTypes.Text.encode(__typed__.srcLocModule),
22
- srcLocFile: damlTypes.Text.encode(__typed__.srcLocFile),
23
- srcLocStartLine: damlTypes.Int.encode(__typed__.srcLocStartLine),
24
- srcLocStartCol: damlTypes.Int.encode(__typed__.srcLocStartCol),
25
- srcLocEndLine: damlTypes.Int.encode(__typed__.srcLocEndLine),
26
- srcLocEndCol: damlTypes.Int.encode(__typed__.srcLocEndCol),
27
- };
28
- }
29
- ,
30
- };
31
-
@@ -1,2 +0,0 @@
1
- import * as Types from './Types';
2
- export { Types } ;
@@ -1,9 +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 Types = require('./Types');
9
- exports.Types = Types;
@@ -1,20 +0,0 @@
1
- // Generated from DA/Validation/Types.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 pkgbde4bd30749e99603e5afa354706608601029e225d4983324d617825b634253a from '@daml.js/daml-stdlib-DA-NonEmpty-Types-1.0.0';
11
-
12
- export declare type Validation<errs, a> =
13
- | { tag: 'Errors'; value: pkgbde4bd30749e99603e5afa354706608601029e225d4983324d617825b634253a.DA.NonEmpty.Types.NonEmpty<errs> }
14
- | { tag: 'Success'; value: a }
15
- ;
16
-
17
- export declare const Validation :
18
- (<errs, a>(errs: damlTypes.Serializable<errs>, a: damlTypes.Serializable<a>) => damlTypes.Serializable<Validation<errs, a>>) & {
19
- };
20
-
@@ -1,29 +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 pkgbde4bd30749e99603e5afa354706608601029e225d4983324d617825b634253a = require('@daml.js/daml-stdlib-DA-NonEmpty-Types-1.0.0');
16
-
17
-
18
- exports.Validation = function (errs, a) { return ({
19
- decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('Errors'), value: pkgbde4bd30749e99603e5afa354706608601029e225d4983324d617825b634253a.DA.NonEmpty.Types.NonEmpty(errs).decoder, }), jtv.object({tag: jtv.constant('Success'), value: a.decoder, })); }),
20
- encode: function (__typed__) {
21
- switch(__typed__.tag) {
22
- case 'Errors': return {tag: __typed__.tag, value: pkgbde4bd30749e99603e5afa354706608601029e225d4983324d617825b634253a.DA.NonEmpty.Types.NonEmpty(errs).encode(__typed__.value)};
23
- case 'Success': return {tag: __typed__.tag, value: a.encode(__typed__.value)};
24
- default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type Validation';
25
- }
26
- }
27
- ,
28
- }); };
29
-
@@ -1,2 +0,0 @@
1
- import * as Types from './Types';
2
- export { Types } ;
@@ -1,9 +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 Types = require('./Types');
9
- exports.Types = Types;
@@ -1,224 +0,0 @@
1
- // Generated from Fairmint/Subscriptions/ActiveSubscription.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
- import * as pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 from '../../../DA/Time/Types';
14
-
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_PaymentContext from '../../../Fairmint/Subscriptions/Types/PaymentContext/module';
19
- import * as Fairmint_Subscriptions_Types_PaymentResult from '../../../Fairmint/Subscriptions/Types/PaymentResult/module';
20
- import * as Fairmint_Subscriptions_Types_ProcessFreeTrialResult from '../../../Fairmint/Subscriptions/Types/ProcessFreeTrialResult/module';
21
- import * as Fairmint_Subscriptions_Types_ProcessorContext from '../../../Fairmint/Subscriptions/Types/ProcessorContext/module';
22
- import * as Fairmint_Subscriptions_Types_Subscription from '../../../Fairmint/Subscriptions/Types/Subscription/module';
23
- import * as Fairmint_Subscriptions_Types_SubscriptionChanges from '../../../Fairmint/Subscriptions/Types/SubscriptionChanges/module';
24
- import * as Fairmint_Subscriptions_Types_SubscriptionStats from '../../../Fairmint/Subscriptions/Types/SubscriptionStats/module';
25
-
26
- export declare type SubscriptionChangeProposal_Reject = {
27
- actor: damlTypes.Party;
28
- description: damlTypes.Optional<string>;
29
- };
30
-
31
- export declare const SubscriptionChangeProposal_Reject:
32
- damlTypes.Serializable<SubscriptionChangeProposal_Reject> & {
33
- }
34
- ;
35
-
36
-
37
- export declare type SubscriptionChangeProposal_Apply = {
38
- actor: damlTypes.Party;
39
- activeSubscriptionCid: damlTypes.ContractId<ActiveSubscription>;
40
- };
41
-
42
- export declare const SubscriptionChangeProposal_Apply:
43
- damlTypes.Serializable<SubscriptionChangeProposal_Apply> & {
44
- }
45
- ;
46
-
47
-
48
- export declare type SubscriptionChangeProposal_Approve = {
49
- actor: damlTypes.Party;
50
- };
51
-
52
- export declare const SubscriptionChangeProposal_Approve:
53
- damlTypes.Serializable<SubscriptionChangeProposal_Approve> & {
54
- }
55
- ;
56
-
57
-
58
- export declare type SubscriptionChangeProposal = {
59
- subscription: Fairmint_Subscriptions_Types_Subscription.Subscription;
60
- processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext;
61
- subscriptionChanges: Fairmint_Subscriptions_Types_SubscriptionChanges.SubscriptionChanges;
62
- approvals: Fairmint_Subscriptions_Types_Approvals.Approvals;
63
- };
64
-
65
- export declare interface SubscriptionChangeProposalInterface {
66
- SubscriptionChangeProposal_Approve: damlTypes.Choice<SubscriptionChangeProposal, SubscriptionChangeProposal_Approve, damlTypes.ContractId<SubscriptionChangeProposal>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<SubscriptionChangeProposal, undefined>>;
67
- SubscriptionChangeProposal_Apply: damlTypes.Choice<SubscriptionChangeProposal, SubscriptionChangeProposal_Apply, damlTypes.ContractId<ActiveSubscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<SubscriptionChangeProposal, undefined>>;
68
- SubscriptionChangeProposal_Reject: damlTypes.Choice<SubscriptionChangeProposal, SubscriptionChangeProposal_Reject, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<SubscriptionChangeProposal, undefined>>;
69
- Archive: damlTypes.Choice<SubscriptionChangeProposal, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<SubscriptionChangeProposal, undefined>>;
70
- }
71
- export declare const SubscriptionChangeProposal:
72
- damlTypes.Template<SubscriptionChangeProposal, undefined, '#Subscriptions-v09:Fairmint.Subscriptions.ActiveSubscription:SubscriptionChangeProposal'> &
73
- damlTypes.ToInterface<SubscriptionChangeProposal, never> &
74
- SubscriptionChangeProposalInterface;
75
-
76
- export declare namespace SubscriptionChangeProposal {
77
- export type CreateEvent = damlLedger.CreateEvent<SubscriptionChangeProposal, undefined, typeof SubscriptionChangeProposal.templateId>
78
- export type ArchiveEvent = damlLedger.ArchiveEvent<SubscriptionChangeProposal, typeof SubscriptionChangeProposal.templateId>
79
- export type Event = damlLedger.Event<SubscriptionChangeProposal, undefined, typeof SubscriptionChangeProposal.templateId>
80
- export type QueryResult = damlLedger.QueryResult<SubscriptionChangeProposal, undefined, typeof SubscriptionChangeProposal.templateId>
81
- }
82
-
83
-
84
-
85
- export declare type ActiveSubscription_ChangeParty = {
86
- partyType: Fairmint_Subscriptions_Types_PartyRole.PartyRole;
87
- oldParty: damlTypes.Party;
88
- newParty: damlTypes.Party;
89
- changePartyPaymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext;
90
- };
91
-
92
- export declare const ActiveSubscription_ChangeParty:
93
- damlTypes.Serializable<ActiveSubscription_ChangeParty> & {
94
- }
95
- ;
96
-
97
-
98
- export declare type ActiveSubscription_ArchiveInactiveSubscription = {
99
- actor: damlTypes.Party;
100
- paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext;
101
- };
102
-
103
- export declare const ActiveSubscription_ArchiveInactiveSubscription:
104
- damlTypes.Serializable<ActiveSubscription_ArchiveInactiveSubscription> & {
105
- }
106
- ;
107
-
108
-
109
- export declare type ActiveSubscription_WithdrawFunds = {
110
- amountToKeepLocked: damlTypes.Numeric;
111
- paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext;
112
- };
113
-
114
- export declare const ActiveSubscription_WithdrawFunds:
115
- damlTypes.Serializable<ActiveSubscription_WithdrawFunds> & {
116
- }
117
- ;
118
-
119
-
120
- export declare type ActiveSubscription_AddFunds = {
121
- actor: damlTypes.Party;
122
- lockFundsInput: Fairmint_Subscriptions_Types_LockFundsInput.LockFundsInput;
123
- description: damlTypes.Optional<string>;
124
- };
125
-
126
- export declare const ActiveSubscription_AddFunds:
127
- damlTypes.Serializable<ActiveSubscription_AddFunds> & {
128
- }
129
- ;
130
-
131
-
132
- export declare type ActiveSubscription_Refund = {
133
- paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext;
134
- recipientAmuletInputs: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>[];
135
- recipientFeaturedAppRight: damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight>>;
136
- };
137
-
138
- export declare const ActiveSubscription_Refund:
139
- damlTypes.Serializable<ActiveSubscription_Refund> & {
140
- }
141
- ;
142
-
143
-
144
- export declare type ActiveSubscription_Cancel = {
145
- actor: damlTypes.Party;
146
- disregardAvailablePaidPeriod: boolean;
147
- description: damlTypes.Optional<string>;
148
- paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext;
149
- };
150
-
151
- export declare const ActiveSubscription_Cancel:
152
- damlTypes.Serializable<ActiveSubscription_Cancel> & {
153
- }
154
- ;
155
-
156
-
157
- export declare type ActiveSubscription_ProposeChanges = {
158
- actor: damlTypes.Party;
159
- subscriptionChanges: Fairmint_Subscriptions_Types_SubscriptionChanges.SubscriptionChanges;
160
- description: damlTypes.Optional<string>;
161
- };
162
-
163
- export declare const ActiveSubscription_ProposeChanges:
164
- damlTypes.Serializable<ActiveSubscription_ProposeChanges> & {
165
- }
166
- ;
167
-
168
-
169
- export declare type ActiveSubscription_ProcessPayment = {
170
- processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime;
171
- paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext;
172
- skipProcessorPayment: boolean;
173
- };
174
-
175
- export declare const ActiveSubscription_ProcessPayment:
176
- damlTypes.Serializable<ActiveSubscription_ProcessPayment> & {
177
- }
178
- ;
179
-
180
-
181
- export declare type ActiveSubscription_ProcessFreeTrial = {
182
- processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime;
183
- featuredAppRight: damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight>>;
184
- };
185
-
186
- export declare const ActiveSubscription_ProcessFreeTrial:
187
- damlTypes.Serializable<ActiveSubscription_ProcessFreeTrial> & {
188
- }
189
- ;
190
-
191
-
192
- export declare type ActiveSubscription = {
193
- subscription: Fairmint_Subscriptions_Types_Subscription.Subscription;
194
- processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext;
195
- processedAndPaidUntil: damlTypes.Time;
196
- lockedAmuletCid: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.LockedAmulet>;
197
- stats: Fairmint_Subscriptions_Types_SubscriptionStats.SubscriptionStats;
198
- };
199
-
200
- export declare interface ActiveSubscriptionInterface {
201
- ActiveSubscription_ProcessFreeTrial: damlTypes.Choice<ActiveSubscription, ActiveSubscription_ProcessFreeTrial, Fairmint_Subscriptions_Types_ProcessFreeTrialResult.ProcessFreeTrialResult<ActiveSubscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
202
- ActiveSubscription_ProcessPayment: damlTypes.Choice<ActiveSubscription, ActiveSubscription_ProcessPayment, Fairmint_Subscriptions_Types_PaymentResult.ProcessPaymentResult<ActiveSubscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
203
- ActiveSubscription_ProposeChanges: damlTypes.Choice<ActiveSubscription, ActiveSubscription_ProposeChanges, damlTypes.ContractId<SubscriptionChangeProposal>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
204
- ActiveSubscription_Cancel: damlTypes.Choice<ActiveSubscription, ActiveSubscription_Cancel, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2<damlTypes.Optional<damlTypes.ContractId<ActiveSubscription>>, damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>>>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
205
- ActiveSubscription_Refund: damlTypes.Choice<ActiveSubscription, ActiveSubscription_Refund, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.TransferResult, damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
206
- ActiveSubscription_AddFunds: damlTypes.Choice<ActiveSubscription, ActiveSubscription_AddFunds, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2<damlTypes.ContractId<ActiveSubscription>, damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>>>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
207
- ActiveSubscription_WithdrawFunds: damlTypes.Choice<ActiveSubscription, ActiveSubscription_WithdrawFunds, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2<damlTypes.ContractId<ActiveSubscription>, damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
208
- ActiveSubscription_ArchiveInactiveSubscription: damlTypes.Choice<ActiveSubscription, ActiveSubscription_ArchiveInactiveSubscription, damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
209
- ActiveSubscription_ChangeParty: damlTypes.Choice<ActiveSubscription, ActiveSubscription_ChangeParty, damlTypes.ContractId<ActiveSubscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
210
- Archive: damlTypes.Choice<ActiveSubscription, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
211
- }
212
- export declare const ActiveSubscription:
213
- damlTypes.Template<ActiveSubscription, undefined, '#Subscriptions-v09:Fairmint.Subscriptions.ActiveSubscription:ActiveSubscription'> &
214
- damlTypes.ToInterface<ActiveSubscription, never> &
215
- ActiveSubscriptionInterface;
216
-
217
- export declare namespace ActiveSubscription {
218
- export type CreateEvent = damlLedger.CreateEvent<ActiveSubscription, undefined, typeof ActiveSubscription.templateId>
219
- export type ArchiveEvent = damlLedger.ArchiveEvent<ActiveSubscription, typeof ActiveSubscription.templateId>
220
- export type Event = damlLedger.Event<ActiveSubscription, undefined, typeof ActiveSubscription.templateId>
221
- export type QueryResult = damlLedger.QueryResult<ActiveSubscription, undefined, typeof ActiveSubscription.templateId>
222
- }
223
-
224
-