@fairmint/open-captable-protocol-daml-js 0.2.24 → 0.2.27

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 (91) hide show
  1. package/README.md +1 -1
  2. package/generated/subscriptions-factory-contract-id.json +4 -4
  3. package/lib/DA/Date/Types/index.d.ts +1 -0
  4. package/lib/DA/Date/Types/index.js +8 -0
  5. package/lib/DA/Date/Types/module.d.ts +47 -0
  6. package/lib/DA/Date/Types/module.js +48 -0
  7. package/lib/DA/Date/index.d.ts +2 -0
  8. package/lib/DA/Date/index.js +9 -0
  9. package/lib/DA/Exception/ArithmeticError/index.d.ts +1 -0
  10. package/lib/DA/Exception/ArithmeticError/index.js +8 -0
  11. package/lib/DA/Exception/ArithmeticError/module.d.ts +18 -0
  12. package/lib/DA/Exception/ArithmeticError/module.js +25 -0
  13. package/lib/DA/Exception/AssertionFailed/index.d.ts +1 -0
  14. package/lib/DA/Exception/AssertionFailed/index.js +8 -0
  15. package/lib/DA/Exception/AssertionFailed/module.d.ts +18 -0
  16. package/lib/DA/Exception/AssertionFailed/module.js +25 -0
  17. package/lib/DA/Exception/GeneralError/index.d.ts +1 -0
  18. package/lib/DA/Exception/GeneralError/index.js +8 -0
  19. package/lib/DA/Exception/GeneralError/module.d.ts +18 -0
  20. package/lib/DA/Exception/GeneralError/module.js +25 -0
  21. package/lib/DA/Exception/PreconditionFailed/index.d.ts +1 -0
  22. package/lib/DA/Exception/PreconditionFailed/index.js +8 -0
  23. package/lib/DA/Exception/PreconditionFailed/module.d.ts +18 -0
  24. package/lib/DA/Exception/PreconditionFailed/module.js +25 -0
  25. package/lib/DA/Exception/index.d.ts +2 -0
  26. package/lib/DA/Exception/index.js +9 -0
  27. package/lib/DA/Internal/Down/index.d.ts +1 -0
  28. package/lib/DA/Internal/Down/index.js +8 -0
  29. package/lib/DA/Internal/Down/module.d.ts +17 -0
  30. package/lib/DA/Internal/Down/module.js +25 -0
  31. package/lib/DA/Logic/Types/index.d.ts +1 -0
  32. package/lib/DA/Logic/Types/index.js +8 -0
  33. package/lib/DA/Logic/Types/module.d.ts +20 -0
  34. package/lib/DA/Logic/Types/module.js +29 -0
  35. package/lib/DA/Logic/index.d.ts +2 -0
  36. package/lib/DA/Logic/index.js +9 -0
  37. package/lib/DA/Monoid/Types/index.d.ts +1 -0
  38. package/lib/DA/Monoid/Types/index.js +8 -0
  39. package/lib/DA/Monoid/Types/module.d.ts +46 -0
  40. package/lib/DA/Monoid/Types/module.js +61 -0
  41. package/lib/DA/Monoid/index.d.ts +2 -0
  42. package/lib/DA/Monoid/index.js +9 -0
  43. package/lib/DA/NonEmpty/Types/index.d.ts +1 -0
  44. package/lib/DA/NonEmpty/Types/index.js +8 -0
  45. package/lib/DA/NonEmpty/Types/module.d.ts +18 -0
  46. package/lib/DA/NonEmpty/Types/module.js +26 -0
  47. package/lib/DA/NonEmpty/index.d.ts +2 -0
  48. package/lib/DA/NonEmpty/index.js +9 -0
  49. package/lib/DA/Random/Types/index.d.ts +1 -0
  50. package/lib/DA/Random/Types/index.js +8 -0
  51. package/lib/DA/Random/Types/module.d.ts +18 -0
  52. package/lib/DA/Random/Types/module.js +26 -0
  53. package/lib/DA/Random/index.d.ts +2 -0
  54. package/lib/DA/Random/index.js +9 -0
  55. package/lib/DA/Semigroup/Types/index.d.ts +1 -0
  56. package/lib/DA/Semigroup/Types/index.js +8 -0
  57. package/lib/DA/Semigroup/Types/module.d.ts +26 -0
  58. package/lib/DA/Semigroup/Types/module.js +37 -0
  59. package/lib/DA/Semigroup/index.d.ts +2 -0
  60. package/lib/DA/Semigroup/index.js +9 -0
  61. package/lib/DA/Stack/Types/index.d.ts +1 -0
  62. package/lib/DA/Stack/Types/index.js +8 -0
  63. package/lib/DA/Stack/Types/module.d.ts +24 -0
  64. package/lib/DA/Stack/Types/module.js +31 -0
  65. package/lib/DA/Stack/index.d.ts +2 -0
  66. package/lib/DA/Stack/index.js +9 -0
  67. package/lib/DA/Validation/Types/index.d.ts +1 -0
  68. package/lib/DA/Validation/Types/index.js +8 -0
  69. package/lib/DA/Validation/Types/module.d.ts +20 -0
  70. package/lib/DA/Validation/Types/module.js +29 -0
  71. package/lib/DA/Validation/index.d.ts +2 -0
  72. package/lib/DA/Validation/index.js +9 -0
  73. package/lib/Fairmint/Subscriptions/ActiveSubscription/module.d.ts +4 -5
  74. package/lib/Fairmint/Subscriptions/ActiveSubscription/module.js +7 -8
  75. package/lib/Fairmint/Subscriptions/PartyMigrationProposal/module.d.ts +1 -1
  76. package/lib/Fairmint/Subscriptions/PartyMigrationProposal/module.js +2 -2
  77. package/lib/Fairmint/Subscriptions/ProposedSubscription/module.d.ts +3 -5
  78. package/lib/Fairmint/Subscriptions/ProposedSubscription/module.js +5 -7
  79. package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.d.ts +1 -1
  80. package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.js +2 -2
  81. package/lib/Fairmint/Subscriptions/Types/LockFundsInput/index.d.ts +1 -0
  82. package/lib/Fairmint/Subscriptions/Types/LockFundsInput/index.js +8 -0
  83. package/lib/Fairmint/Subscriptions/Types/LockFundsInput/module.d.ts +24 -0
  84. package/lib/Fairmint/Subscriptions/Types/LockFundsInput/module.js +31 -0
  85. package/lib/Fairmint/Subscriptions/Types/PaymentContext/module.d.ts +1 -0
  86. package/lib/Fairmint/Subscriptions/Types/PaymentContext/module.js +2 -1
  87. package/lib/Fairmint/Subscriptions/Types/index.d.ts +2 -0
  88. package/lib/Fairmint/Subscriptions/Types/index.js +2 -0
  89. package/lib/Splice/Api/Token/index.d.ts +2 -0
  90. package/lib/Splice/Api/Token/index.js +9 -0
  91. package/package.json +2 -2
@@ -0,0 +1,61 @@
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.All = {
17
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({getAll: damlTypes.Bool.decoder, }); }),
18
+ encode: function (__typed__) {
19
+ return {
20
+ getAll: damlTypes.Bool.encode(__typed__.getAll),
21
+ };
22
+ }
23
+ ,
24
+ };
25
+
26
+
27
+
28
+ exports.Any = {
29
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({getAny: damlTypes.Bool.decoder, }); }),
30
+ encode: function (__typed__) {
31
+ return {
32
+ getAny: damlTypes.Bool.encode(__typed__.getAny),
33
+ };
34
+ }
35
+ ,
36
+ };
37
+
38
+
39
+
40
+ exports.Sum = function (a) { return ({
41
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({unpack: a.decoder, }); }),
42
+ encode: function (__typed__) {
43
+ return {
44
+ unpack: a.encode(__typed__.unpack),
45
+ };
46
+ }
47
+ ,
48
+ }); };
49
+
50
+
51
+
52
+ exports.Product = function (a) { return ({
53
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({unpack: a.decoder, }); }),
54
+ encode: function (__typed__) {
55
+ return {
56
+ unpack: a.encode(__typed__.unpack),
57
+ };
58
+ }
59
+ ,
60
+ }); };
61
+
@@ -0,0 +1,2 @@
1
+ import * as Types from './Types';
2
+ export { Types } ;
@@ -0,0 +1,9 @@
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;
@@ -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,18 @@
1
+ // Generated from DA/NonEmpty/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
+ export declare type NonEmpty<a> = {
11
+ hd: a;
12
+ tl: a[];
13
+ };
14
+
15
+ export declare const NonEmpty :
16
+ (<a>(a: damlTypes.Serializable<a>) => damlTypes.Serializable<NonEmpty<a>>) & {
17
+ };
18
+
@@ -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.NonEmpty = function (a) { return ({
17
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({hd: a.decoder, tl: damlTypes.List(a).decoder, }); }),
18
+ encode: function (__typed__) {
19
+ return {
20
+ hd: a.encode(__typed__.hd),
21
+ tl: damlTypes.List(a).encode(__typed__.tl),
22
+ };
23
+ }
24
+ ,
25
+ }); };
26
+
@@ -0,0 +1,2 @@
1
+ import * as Types from './Types';
2
+ export { Types } ;
@@ -0,0 +1,9 @@
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;
@@ -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,18 @@
1
+ // Generated from DA/Random/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
+ export declare type Minstd =
11
+ | { tag: 'Minstd'; value: damlTypes.Int }
12
+ ;
13
+
14
+ export declare const Minstd:
15
+ damlTypes.Serializable<Minstd> & {
16
+ }
17
+ ;
18
+
@@ -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.Minstd = {
17
+ decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('Minstd'), value: damlTypes.Int.decoder, })); }),
18
+ encode: function (__typed__) {
19
+ switch(__typed__.tag) {
20
+ case 'Minstd': return {tag: __typed__.tag, value: damlTypes.Int.encode(__typed__.value)};
21
+ default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type Minstd';
22
+ }
23
+ }
24
+ ,
25
+ };
26
+
@@ -0,0 +1,2 @@
1
+ import * as Types from './Types';
2
+ export { Types } ;
@@ -0,0 +1,9 @@
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;
@@ -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,26 @@
1
+ // Generated from DA/Semigroup/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
+ export declare type Min<a> = {
11
+ unpack: a;
12
+ };
13
+
14
+ export declare const Min :
15
+ (<a>(a: damlTypes.Serializable<a>) => damlTypes.Serializable<Min<a>>) & {
16
+ };
17
+
18
+
19
+ export declare type Max<a> = {
20
+ unpack: a;
21
+ };
22
+
23
+ export declare const Max :
24
+ (<a>(a: damlTypes.Serializable<a>) => damlTypes.Serializable<Max<a>>) & {
25
+ };
26
+
@@ -0,0 +1,37 @@
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.Min = function (a) { return ({
17
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({unpack: a.decoder, }); }),
18
+ encode: function (__typed__) {
19
+ return {
20
+ unpack: a.encode(__typed__.unpack),
21
+ };
22
+ }
23
+ ,
24
+ }); };
25
+
26
+
27
+
28
+ exports.Max = function (a) { return ({
29
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({unpack: a.decoder, }); }),
30
+ encode: function (__typed__) {
31
+ return {
32
+ unpack: a.encode(__typed__.unpack),
33
+ };
34
+ }
35
+ ,
36
+ }); };
37
+
@@ -0,0 +1,2 @@
1
+ import * as Types from './Types';
2
+ export { Types } ;
@@ -0,0 +1,9 @@
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;
@@ -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,24 @@
1
+ // Generated from DA/Stack/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
+ export declare type SrcLoc = {
11
+ srcLocPackage: string;
12
+ srcLocModule: string;
13
+ srcLocFile: string;
14
+ srcLocStartLine: damlTypes.Int;
15
+ srcLocStartCol: damlTypes.Int;
16
+ srcLocEndLine: damlTypes.Int;
17
+ srcLocEndCol: damlTypes.Int;
18
+ };
19
+
20
+ export declare const SrcLoc:
21
+ damlTypes.Serializable<SrcLoc> & {
22
+ }
23
+ ;
24
+
@@ -0,0 +1,31 @@
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
+
@@ -0,0 +1,2 @@
1
+ import * as Types from './Types';
2
+ export { Types } ;
@@ -0,0 +1,9 @@
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;
@@ -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,20 @@
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
+
@@ -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 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
+
@@ -0,0 +1,2 @@
1
+ import * as Types from './Types';
2
+ export { Types } ;
@@ -0,0 +1,9 @@
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;
@@ -12,6 +12,7 @@ import * as pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4
12
12
  import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../DA/Internal/Template';
13
13
 
14
14
  import * as Fairmint_Subscriptions_Types_Approvals from '../../../Fairmint/Subscriptions/Types/Approvals/module';
15
+ import * as Fairmint_Subscriptions_Types_LockFundsInput from '../../../Fairmint/Subscriptions/Types/LockFundsInput/module';
15
16
  import * as Fairmint_Subscriptions_Types_PartyRole from '../../../Fairmint/Subscriptions/Types/PartyRole/module';
16
17
  import * as Fairmint_Subscriptions_Types_PaymentContext from '../../../Fairmint/Subscriptions/Types/PaymentContext/module';
17
18
  import * as Fairmint_Subscriptions_Types_PaymentResult from '../../../Fairmint/Subscriptions/Types/PaymentResult/module';
@@ -68,7 +69,7 @@ export declare interface SubscriptionChangeProposalInterface {
68
69
  Archive: damlTypes.Choice<SubscriptionChangeProposal, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<SubscriptionChangeProposal, undefined>>;
69
70
  }
70
71
  export declare const SubscriptionChangeProposal:
71
- damlTypes.Template<SubscriptionChangeProposal, undefined, '#Subscriptions-v05:Fairmint.Subscriptions.ActiveSubscription:SubscriptionChangeProposal'> &
72
+ damlTypes.Template<SubscriptionChangeProposal, undefined, '#Subscriptions-v06:Fairmint.Subscriptions.ActiveSubscription:SubscriptionChangeProposal'> &
72
73
  damlTypes.ToInterface<SubscriptionChangeProposal, never> &
73
74
  SubscriptionChangeProposalInterface;
74
75
 
@@ -117,10 +118,8 @@ export declare const ActiveSubscription_WithdrawFunds:
117
118
 
118
119
  export declare type ActiveSubscription_AddFunds = {
119
120
  actor: damlTypes.Party;
120
- amuletInputs: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>[];
121
- amountToLock: damlTypes.Numeric;
121
+ lockFundsInput: Fairmint_Subscriptions_Types_LockFundsInput.LockFundsInput;
122
122
  description: damlTypes.Optional<string>;
123
- paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext;
124
123
  };
125
124
 
126
125
  export declare const ActiveSubscription_AddFunds:
@@ -209,7 +208,7 @@ export declare interface ActiveSubscriptionInterface {
209
208
  Archive: damlTypes.Choice<ActiveSubscription, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
210
209
  }
211
210
  export declare const ActiveSubscription:
212
- damlTypes.Template<ActiveSubscription, undefined, '#Subscriptions-v05:Fairmint.Subscriptions.ActiveSubscription:ActiveSubscription'> &
211
+ damlTypes.Template<ActiveSubscription, undefined, '#Subscriptions-v06:Fairmint.Subscriptions.ActiveSubscription:ActiveSubscription'> &
213
212
  damlTypes.ToInterface<ActiveSubscription, never> &
214
213
  ActiveSubscriptionInterface;
215
214
 
@@ -17,6 +17,7 @@ var pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4 = requir
17
17
  var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../DA/Internal/Template');
18
18
 
19
19
  var Fairmint_Subscriptions_Types_Approvals = require('../../../Fairmint/Subscriptions/Types/Approvals/module');
20
+ var Fairmint_Subscriptions_Types_LockFundsInput = require('../../../Fairmint/Subscriptions/Types/LockFundsInput/module');
20
21
  var Fairmint_Subscriptions_Types_PartyRole = require('../../../Fairmint/Subscriptions/Types/PartyRole/module');
21
22
  var Fairmint_Subscriptions_Types_PaymentContext = require('../../../Fairmint/Subscriptions/Types/PaymentContext/module');
22
23
  var Fairmint_Subscriptions_Types_PaymentResult = require('../../../Fairmint/Subscriptions/Types/PaymentResult/module');
@@ -68,7 +69,7 @@ exports.SubscriptionChangeProposal_Approve = {
68
69
 
69
70
  exports.SubscriptionChangeProposal = damlTypes.assembleTemplate(
70
71
  {
71
- templateId: '#Subscriptions-v05:Fairmint.Subscriptions.ActiveSubscription:SubscriptionChangeProposal',
72
+ templateId: '#Subscriptions-v06:Fairmint.Subscriptions.ActiveSubscription:SubscriptionChangeProposal',
72
73
  keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
73
74
  keyEncode: function () { throw 'EncodeError'; },
74
75
  decoder: damlTypes.lazyMemo(function () { return jtv.object({subscription: Fairmint_Subscriptions_Types_Subscription.Subscription.decoder, processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext.decoder, subscriptionChanges: Fairmint_Subscriptions_Types_SubscriptionChanges.SubscriptionChanges.decoder, approvals: Fairmint_Subscriptions_Types_Approvals.Approvals.decoder, }); }),
@@ -118,7 +119,7 @@ exports.SubscriptionChangeProposal = damlTypes.assembleTemplate(
118
119
  );
119
120
 
120
121
 
121
- damlTypes.registerTemplate(exports.SubscriptionChangeProposal, ['eee64b94341673a7ab55cafd07bd54dc76891adb93d268e3a6fc9e1bef768d0f', '#Subscriptions-v05']);
122
+ damlTypes.registerTemplate(exports.SubscriptionChangeProposal, ['f68f1ce139e1a6a6bb602b53918a454a7854f8b3af55ccb1ccca200b6344826f', '#Subscriptions-v06']);
122
123
 
123
124
 
124
125
 
@@ -163,14 +164,12 @@ exports.ActiveSubscription_WithdrawFunds = {
163
164
 
164
165
 
165
166
  exports.ActiveSubscription_AddFunds = {
166
- decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, amuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).decoder, amountToLock: damlTypes.Numeric(10).decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.decoder, }); }),
167
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, lockFundsInput: Fairmint_Subscriptions_Types_LockFundsInput.LockFundsInput.decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
167
168
  encode: function (__typed__) {
168
169
  return {
169
170
  actor: damlTypes.Party.encode(__typed__.actor),
170
- amuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).encode(__typed__.amuletInputs),
171
- amountToLock: damlTypes.Numeric(10).encode(__typed__.amountToLock),
171
+ lockFundsInput: Fairmint_Subscriptions_Types_LockFundsInput.LockFundsInput.encode(__typed__.lockFundsInput),
172
172
  description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
173
- paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.encode(__typed__.paymentContext),
174
173
  };
175
174
  }
176
175
  ,
@@ -249,7 +248,7 @@ exports.ActiveSubscription_ProcessFreeTrial = {
249
248
 
250
249
  exports.ActiveSubscription = damlTypes.assembleTemplate(
251
250
  {
252
- templateId: '#Subscriptions-v05:Fairmint.Subscriptions.ActiveSubscription:ActiveSubscription',
251
+ templateId: '#Subscriptions-v06:Fairmint.Subscriptions.ActiveSubscription:ActiveSubscription',
253
252
  keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
254
253
  keyEncode: function () { throw 'EncodeError'; },
255
254
  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, lockedAmuletCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.LockedAmulet).decoder, stats: Fairmint_Subscriptions_Types_SubscriptionStats.SubscriptionStats.decoder, }); }),
@@ -348,5 +347,5 @@ exports.ActiveSubscription = damlTypes.assembleTemplate(
348
347
  );
349
348
 
350
349
 
351
- damlTypes.registerTemplate(exports.ActiveSubscription, ['eee64b94341673a7ab55cafd07bd54dc76891adb93d268e3a6fc9e1bef768d0f', '#Subscriptions-v05']);
350
+ damlTypes.registerTemplate(exports.ActiveSubscription, ['f68f1ce139e1a6a6bb602b53918a454a7854f8b3af55ccb1ccca200b6344826f', '#Subscriptions-v06']);
352
351
 
@@ -72,7 +72,7 @@ export declare interface PartyMigrationProposalInterface {
72
72
  Archive: damlTypes.Choice<PartyMigrationProposal, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<PartyMigrationProposal, undefined>>;
73
73
  }
74
74
  export declare const PartyMigrationProposal:
75
- damlTypes.Template<PartyMigrationProposal, undefined, '#Subscriptions-v05:Fairmint.Subscriptions.PartyMigrationProposal:PartyMigrationProposal'> &
75
+ damlTypes.Template<PartyMigrationProposal, undefined, '#Subscriptions-v06:Fairmint.Subscriptions.PartyMigrationProposal:PartyMigrationProposal'> &
76
76
  damlTypes.ToInterface<PartyMigrationProposal, never> &
77
77
  PartyMigrationProposalInterface;
78
78
 
@@ -72,7 +72,7 @@ exports.PartyMigrationProposal_Approve = {
72
72
 
73
73
  exports.PartyMigrationProposal = damlTypes.assembleTemplate(
74
74
  {
75
- templateId: '#Subscriptions-v05:Fairmint.Subscriptions.PartyMigrationProposal:PartyMigrationProposal',
75
+ templateId: '#Subscriptions-v06:Fairmint.Subscriptions.PartyMigrationProposal:PartyMigrationProposal',
76
76
  keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
77
77
  keyEncode: function () { throw 'EncodeError'; },
78
78
  decoder: damlTypes.lazyMemo(function () { return jtv.object({partyType: Fairmint_Subscriptions_Types_PartyRole.PartyRole.decoder, oldParty: damlTypes.Party.decoder, newParty: damlTypes.Party.decoder, oldPartyApproved: damlTypes.Bool.decoder, newPartyApproved: damlTypes.Bool.decoder, }); }),
@@ -131,5 +131,5 @@ exports.PartyMigrationProposal = damlTypes.assembleTemplate(
131
131
  );
132
132
 
133
133
 
134
- damlTypes.registerTemplate(exports.PartyMigrationProposal, ['eee64b94341673a7ab55cafd07bd54dc76891adb93d268e3a6fc9e1bef768d0f', '#Subscriptions-v05']);
134
+ damlTypes.registerTemplate(exports.PartyMigrationProposal, ['f68f1ce139e1a6a6bb602b53918a454a7854f8b3af55ccb1ccca200b6344826f', '#Subscriptions-v06']);
135
135
 
@@ -13,8 +13,8 @@ import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69
13
13
 
14
14
  import * as Fairmint_Subscriptions_ActiveSubscription from '../../../Fairmint/Subscriptions/ActiveSubscription/module';
15
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';
16
17
  import * as Fairmint_Subscriptions_Types_PartyRole from '../../../Fairmint/Subscriptions/Types/PartyRole/module';
17
- import * as Fairmint_Subscriptions_Types_PaymentContext from '../../../Fairmint/Subscriptions/Types/PaymentContext/module';
18
18
  import * as Fairmint_Subscriptions_Types_ProcessorContext from '../../../Fairmint/Subscriptions/Types/ProcessorContext/module';
19
19
  import * as Fairmint_Subscriptions_Types_SubscriptionProposal from '../../../Fairmint/Subscriptions/Types/SubscriptionProposal/module';
20
20
  import * as Fairmint_Subscriptions_Types_SubscriptionProposalChanges from '../../../Fairmint/Subscriptions/Types/SubscriptionProposalChanges/module';
@@ -56,9 +56,7 @@ export declare const ProposedSubscription_EditSubscriptionProposal:
56
56
 
57
57
  export declare type ProposedSubscription_Approve = {
58
58
  actor: damlTypes.Party;
59
- subscriberAmulets: damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>[]>;
60
- amountToLock: damlTypes.Numeric;
61
- paymentContext: damlTypes.Optional<Fairmint_Subscriptions_Types_PaymentContext.PaymentContext>;
59
+ lockFundsInput: damlTypes.Optional<Fairmint_Subscriptions_Types_LockFundsInput.LockFundsInput>;
62
60
  };
63
61
 
64
62
  export declare const ProposedSubscription_Approve:
@@ -81,7 +79,7 @@ export declare interface ProposedSubscriptionInterface {
81
79
  ProposedSubscription_Withdraw: damlTypes.Choice<ProposedSubscription, ProposedSubscription_Withdraw, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ProposedSubscription, undefined>>;
82
80
  }
83
81
  export declare const ProposedSubscription:
84
- damlTypes.Template<ProposedSubscription, undefined, '#Subscriptions-v05:Fairmint.Subscriptions.ProposedSubscription:ProposedSubscription'> &
82
+ damlTypes.Template<ProposedSubscription, undefined, '#Subscriptions-v06:Fairmint.Subscriptions.ProposedSubscription:ProposedSubscription'> &
85
83
  damlTypes.ToInterface<ProposedSubscription, never> &
86
84
  ProposedSubscriptionInterface;
87
85