@fairmint/open-captable-protocol-daml-js 0.2.112 → 0.2.113

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 (133) hide show
  1. package/OpenCapTable-v29/.daml/dist/OpenCapTable-v29-0.0.1.dar +0 -0
  2. package/lib/Fairmint/OpenCapTable/CapTable/module.d.ts +2 -2
  3. package/lib/Fairmint/OpenCapTable/CapTable/module.js +5 -5
  4. package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.d.ts +2 -2
  5. package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.js +5 -5
  6. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleAcceptance/module.d.ts +2 -2
  7. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleAcceptance/module.js +5 -5
  8. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleCancellation/module.d.ts +4 -3
  9. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleCancellation/module.js +8 -7
  10. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleConversion/module.d.ts +4 -3
  11. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleConversion/module.js +8 -7
  12. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleIssuance/module.d.ts +10 -7
  13. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleIssuance/module.js +15 -12
  14. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleRetraction/module.d.ts +2 -2
  15. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleRetraction/module.js +5 -5
  16. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleTransfer/module.d.ts +4 -3
  17. package/lib/Fairmint/OpenCapTable/OCF/ConvertibleTransfer/module.js +8 -7
  18. package/lib/Fairmint/OpenCapTable/OCF/Document/module.d.ts +2 -2
  19. package/lib/Fairmint/OpenCapTable/OCF/Document/module.js +5 -5
  20. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationAcceptance/module.d.ts +2 -2
  21. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationAcceptance/module.js +5 -5
  22. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationCancellation/module.d.ts +2 -2
  23. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationCancellation/module.js +5 -5
  24. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationExercise/module.d.ts +2 -2
  25. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationExercise/module.js +5 -5
  26. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationIssuance/module.d.ts +11 -8
  27. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationIssuance/module.js +15 -12
  28. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRelease/module.d.ts +4 -3
  29. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRelease/module.js +8 -7
  30. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRepricing/module.d.ts +4 -3
  31. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRepricing/module.js +8 -7
  32. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRetraction/module.d.ts +2 -2
  33. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRetraction/module.js +5 -5
  34. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationTransfer/module.d.ts +2 -2
  35. package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationTransfer/module.js +5 -5
  36. package/lib/Fairmint/OpenCapTable/OCF/Issuer/module.d.ts +10 -7
  37. package/lib/Fairmint/OpenCapTable/OCF/Issuer/module.js +14 -11
  38. package/lib/Fairmint/OpenCapTable/OCF/IssuerAuthorizedSharesAdjustment/module.d.ts +2 -2
  39. package/lib/Fairmint/OpenCapTable/OCF/IssuerAuthorizedSharesAdjustment/module.js +5 -5
  40. package/lib/Fairmint/OpenCapTable/OCF/Stakeholder/module.d.ts +12 -9
  41. package/lib/Fairmint/OpenCapTable/OCF/Stakeholder/module.js +18 -15
  42. package/lib/Fairmint/OpenCapTable/OCF/StakeholderRelationshipChangeEvent/module.d.ts +5 -4
  43. package/lib/Fairmint/OpenCapTable/OCF/StakeholderRelationshipChangeEvent/module.js +9 -8
  44. package/lib/Fairmint/OpenCapTable/OCF/StakeholderStatusChangeEvent/module.d.ts +2 -2
  45. package/lib/Fairmint/OpenCapTable/OCF/StakeholderStatusChangeEvent/module.js +5 -5
  46. package/lib/Fairmint/OpenCapTable/OCF/StockAcceptance/module.d.ts +2 -2
  47. package/lib/Fairmint/OpenCapTable/OCF/StockAcceptance/module.js +5 -5
  48. package/lib/Fairmint/OpenCapTable/OCF/StockCancellation/module.d.ts +2 -2
  49. package/lib/Fairmint/OpenCapTable/OCF/StockCancellation/module.js +5 -5
  50. package/lib/Fairmint/OpenCapTable/OCF/StockClass/module.d.ts +10 -7
  51. package/lib/Fairmint/OpenCapTable/OCF/StockClass/module.js +14 -11
  52. package/lib/Fairmint/OpenCapTable/OCF/StockClassAuthorizedSharesAdjustment/module.d.ts +2 -2
  53. package/lib/Fairmint/OpenCapTable/OCF/StockClassAuthorizedSharesAdjustment/module.js +5 -5
  54. package/lib/Fairmint/OpenCapTable/OCF/StockClassConversionRatioAdjustment/module.d.ts +4 -3
  55. package/lib/Fairmint/OpenCapTable/OCF/StockClassConversionRatioAdjustment/module.js +8 -7
  56. package/lib/Fairmint/OpenCapTable/OCF/StockClassSplit/module.d.ts +4 -3
  57. package/lib/Fairmint/OpenCapTable/OCF/StockClassSplit/module.js +8 -7
  58. package/lib/Fairmint/OpenCapTable/OCF/StockConsolidation/module.d.ts +2 -2
  59. package/lib/Fairmint/OpenCapTable/OCF/StockConsolidation/module.js +5 -5
  60. package/lib/Fairmint/OpenCapTable/OCF/StockConversion/module.d.ts +2 -2
  61. package/lib/Fairmint/OpenCapTable/OCF/StockConversion/module.js +5 -5
  62. package/lib/Fairmint/OpenCapTable/OCF/StockIssuance/module.d.ts +10 -7
  63. package/lib/Fairmint/OpenCapTable/OCF/StockIssuance/module.js +14 -11
  64. package/lib/Fairmint/OpenCapTable/OCF/StockLegendTemplate/module.d.ts +2 -2
  65. package/lib/Fairmint/OpenCapTable/OCF/StockLegendTemplate/module.js +5 -5
  66. package/lib/Fairmint/OpenCapTable/OCF/StockPlan/module.d.ts +2 -2
  67. package/lib/Fairmint/OpenCapTable/OCF/StockPlan/module.js +5 -5
  68. package/lib/Fairmint/OpenCapTable/OCF/StockPlanPoolAdjustment/module.d.ts +2 -2
  69. package/lib/Fairmint/OpenCapTable/OCF/StockPlanPoolAdjustment/module.js +5 -5
  70. package/lib/Fairmint/OpenCapTable/OCF/StockPlanReturnToPool/module.d.ts +2 -2
  71. package/lib/Fairmint/OpenCapTable/OCF/StockPlanReturnToPool/module.js +5 -5
  72. package/lib/Fairmint/OpenCapTable/OCF/StockReissuance/module.d.ts +2 -2
  73. package/lib/Fairmint/OpenCapTable/OCF/StockReissuance/module.js +5 -5
  74. package/lib/Fairmint/OpenCapTable/OCF/StockRepurchase/module.d.ts +4 -3
  75. package/lib/Fairmint/OpenCapTable/OCF/StockRepurchase/module.js +8 -7
  76. package/lib/Fairmint/OpenCapTable/OCF/StockRetraction/module.d.ts +2 -2
  77. package/lib/Fairmint/OpenCapTable/OCF/StockRetraction/module.js +5 -5
  78. package/lib/Fairmint/OpenCapTable/OCF/StockTransfer/module.d.ts +2 -2
  79. package/lib/Fairmint/OpenCapTable/OCF/StockTransfer/module.js +5 -5
  80. package/lib/Fairmint/OpenCapTable/OCF/Valuation/module.d.ts +4 -3
  81. package/lib/Fairmint/OpenCapTable/OCF/Valuation/module.js +8 -7
  82. package/lib/Fairmint/OpenCapTable/OCF/VestingAcceleration/module.d.ts +2 -2
  83. package/lib/Fairmint/OpenCapTable/OCF/VestingAcceleration/module.js +5 -5
  84. package/lib/Fairmint/OpenCapTable/OCF/VestingEvent/module.d.ts +2 -2
  85. package/lib/Fairmint/OpenCapTable/OCF/VestingEvent/module.js +5 -5
  86. package/lib/Fairmint/OpenCapTable/OCF/VestingStart/module.d.ts +2 -2
  87. package/lib/Fairmint/OpenCapTable/OCF/VestingStart/module.js +5 -5
  88. package/lib/Fairmint/OpenCapTable/OCF/VestingTerms/module.d.ts +2 -2
  89. package/lib/Fairmint/OpenCapTable/OCF/VestingTerms/module.js +5 -5
  90. package/lib/Fairmint/OpenCapTable/OCF/WarrantAcceptance/module.d.ts +2 -2
  91. package/lib/Fairmint/OpenCapTable/OCF/WarrantAcceptance/module.js +5 -5
  92. package/lib/Fairmint/OpenCapTable/OCF/WarrantCancellation/module.d.ts +2 -2
  93. package/lib/Fairmint/OpenCapTable/OCF/WarrantCancellation/module.js +5 -5
  94. package/lib/Fairmint/OpenCapTable/OCF/WarrantExercise/module.d.ts +2 -2
  95. package/lib/Fairmint/OpenCapTable/OCF/WarrantExercise/module.js +5 -5
  96. package/lib/Fairmint/OpenCapTable/OCF/WarrantIssuance/module.d.ts +12 -8
  97. package/lib/Fairmint/OpenCapTable/OCF/WarrantIssuance/module.js +16 -12
  98. package/lib/Fairmint/OpenCapTable/OCF/WarrantRetraction/module.d.ts +2 -2
  99. package/lib/Fairmint/OpenCapTable/OCF/WarrantRetraction/module.js +5 -5
  100. package/lib/Fairmint/OpenCapTable/OCF/WarrantTransfer/module.d.ts +2 -2
  101. package/lib/Fairmint/OpenCapTable/OCF/WarrantTransfer/module.js +5 -5
  102. package/lib/Fairmint/OpenCapTable/OcpFactory/module.js +2 -2
  103. package/lib/Fairmint/OpenCapTable/Types/Contact/index.d.ts +1 -0
  104. package/lib/Fairmint/OpenCapTable/Types/Contact/index.js +8 -0
  105. package/lib/Fairmint/OpenCapTable/Types/Contact/module.d.ts +55 -0
  106. package/lib/Fairmint/OpenCapTable/Types/Contact/module.js +60 -0
  107. package/lib/Fairmint/OpenCapTable/Types/Conversion/index.d.ts +1 -0
  108. package/lib/Fairmint/OpenCapTable/Types/Conversion/index.js +8 -0
  109. package/lib/Fairmint/OpenCapTable/Types/{module.d.ts → Conversion/module.d.ts} +88 -445
  110. package/lib/Fairmint/OpenCapTable/Types/{module.js → Conversion/module.js} +93 -457
  111. package/lib/Fairmint/OpenCapTable/Types/Core/index.d.ts +1 -0
  112. package/lib/Fairmint/OpenCapTable/Types/Core/index.js +8 -0
  113. package/lib/Fairmint/OpenCapTable/Types/Core/module.d.ts +28 -0
  114. package/lib/Fairmint/OpenCapTable/Types/Core/module.js +37 -0
  115. package/lib/Fairmint/OpenCapTable/Types/Monetary/index.d.ts +1 -0
  116. package/lib/Fairmint/OpenCapTable/Types/Monetary/index.js +8 -0
  117. package/lib/Fairmint/OpenCapTable/Types/Monetary/module.d.ts +56 -0
  118. package/lib/Fairmint/OpenCapTable/Types/Monetary/module.js +65 -0
  119. package/lib/Fairmint/OpenCapTable/Types/Stakeholder/index.d.ts +1 -0
  120. package/lib/Fairmint/OpenCapTable/Types/Stakeholder/index.js +8 -0
  121. package/lib/Fairmint/OpenCapTable/Types/Stakeholder/module.d.ts +29 -0
  122. package/lib/Fairmint/OpenCapTable/Types/Stakeholder/module.js +32 -0
  123. package/lib/Fairmint/OpenCapTable/Types/Stock/index.d.ts +1 -0
  124. package/lib/Fairmint/OpenCapTable/Types/Stock/index.js +8 -0
  125. package/lib/Fairmint/OpenCapTable/Types/Stock/module.d.ts +135 -0
  126. package/lib/Fairmint/OpenCapTable/Types/Stock/module.js +141 -0
  127. package/lib/Fairmint/OpenCapTable/Types/Vesting/index.d.ts +1 -0
  128. package/lib/Fairmint/OpenCapTable/Types/Vesting/index.js +8 -0
  129. package/lib/Fairmint/OpenCapTable/Types/Vesting/module.d.ts +95 -0
  130. package/lib/Fairmint/OpenCapTable/Types/Vesting/module.js +100 -0
  131. package/lib/Fairmint/OpenCapTable/Types/index.d.ts +14 -1
  132. package/lib/Fairmint/OpenCapTable/Types/index.js +14 -1
  133. package/package.json +1 -1
@@ -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,28 @@
1
+ // Generated from Fairmint/OpenCapTable/Types/Core.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
+
8
+ export declare type TransferOperation = {
9
+ recipient: damlTypes.Party;
10
+ quantity: damlTypes.Numeric;
11
+ };
12
+
13
+ export declare const TransferOperation:
14
+ damlTypes.Serializable<TransferOperation> & {
15
+ }
16
+ ;
17
+
18
+
19
+ export declare type Context = {
20
+ issuer: damlTypes.Party;
21
+ system_operator: damlTypes.Party;
22
+ };
23
+
24
+ export declare const Context:
25
+ damlTypes.Serializable<Context> & {
26
+ }
27
+ ;
28
+
@@ -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
+
13
+
14
+ exports.TransferOperation = {
15
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({recipient: damlTypes.Party.decoder, quantity: damlTypes.Numeric(10).decoder, }); }),
16
+ encode: function (__typed__) {
17
+ return {
18
+ recipient: damlTypes.Party.encode(__typed__.recipient),
19
+ quantity: damlTypes.Numeric(10).encode(__typed__.quantity),
20
+ };
21
+ }
22
+ ,
23
+ };
24
+
25
+
26
+
27
+ exports.Context = {
28
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({issuer: damlTypes.Party.decoder, system_operator: damlTypes.Party.decoder, }); }),
29
+ encode: function (__typed__) {
30
+ return {
31
+ issuer: damlTypes.Party.encode(__typed__.issuer),
32
+ system_operator: damlTypes.Party.encode(__typed__.system_operator),
33
+ };
34
+ }
35
+ ,
36
+ };
37
+
@@ -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,56 @@
1
+ // Generated from Fairmint/OpenCapTable/Types/Monetary.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
+
8
+ export declare type OcfAddress = {
9
+ address_type: OcfAddressType;
10
+ country: string;
11
+ city: damlTypes.Optional<string>;
12
+ country_subdivision: damlTypes.Optional<string>;
13
+ postal_code: damlTypes.Optional<string>;
14
+ street_suite: damlTypes.Optional<string>;
15
+ };
16
+
17
+ export declare const OcfAddress:
18
+ damlTypes.Serializable<OcfAddress> & {
19
+ }
20
+ ;
21
+
22
+
23
+ export declare type OcfAddressType =
24
+ | 'OcfAddressTypeLegal'
25
+ | 'OcfAddressTypeContact'
26
+ | 'OcfAddressTypeOther'
27
+ ;
28
+
29
+ export declare const OcfAddressType:
30
+ damlTypes.Serializable<OcfAddressType> & {
31
+ }
32
+ & { readonly keys: OcfAddressType[] } & { readonly [e in OcfAddressType]: e }
33
+ ;
34
+
35
+
36
+ export declare type OcfTaxID = {
37
+ country: string;
38
+ tax_id: string;
39
+ };
40
+
41
+ export declare const OcfTaxID:
42
+ damlTypes.Serializable<OcfTaxID> & {
43
+ }
44
+ ;
45
+
46
+
47
+ export declare type OcfMonetary = {
48
+ amount: damlTypes.Numeric;
49
+ currency: string;
50
+ };
51
+
52
+ export declare const OcfMonetary:
53
+ damlTypes.Serializable<OcfMonetary> & {
54
+ }
55
+ ;
56
+
@@ -0,0 +1,65 @@
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
+
13
+
14
+ exports.OcfAddress = {
15
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({address_type: exports.OcfAddressType.decoder, country: damlTypes.Text.decoder, city: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), country_subdivision: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), postal_code: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), street_suite: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
16
+ encode: function (__typed__) {
17
+ return {
18
+ address_type: exports.OcfAddressType.encode(__typed__.address_type),
19
+ country: damlTypes.Text.encode(__typed__.country),
20
+ city: damlTypes.Optional(damlTypes.Text).encode(__typed__.city),
21
+ country_subdivision: damlTypes.Optional(damlTypes.Text).encode(__typed__.country_subdivision),
22
+ postal_code: damlTypes.Optional(damlTypes.Text).encode(__typed__.postal_code),
23
+ street_suite: damlTypes.Optional(damlTypes.Text).encode(__typed__.street_suite),
24
+ };
25
+ }
26
+ ,
27
+ };
28
+
29
+
30
+
31
+ exports.OcfAddressType = {
32
+ OcfAddressTypeLegal: 'OcfAddressTypeLegal',
33
+ OcfAddressTypeContact: 'OcfAddressTypeContact',
34
+ OcfAddressTypeOther: 'OcfAddressTypeOther',
35
+ keys: ['OcfAddressTypeLegal','OcfAddressTypeContact','OcfAddressTypeOther',],
36
+ decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfAddressType.OcfAddressTypeLegal), jtv.constant(exports.OcfAddressType.OcfAddressTypeContact), jtv.constant(exports.OcfAddressType.OcfAddressTypeOther)); }),
37
+ encode: function (__typed__) { return __typed__; },
38
+ };
39
+
40
+
41
+
42
+ exports.OcfTaxID = {
43
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({country: damlTypes.Text.decoder, tax_id: damlTypes.Text.decoder, }); }),
44
+ encode: function (__typed__) {
45
+ return {
46
+ country: damlTypes.Text.encode(__typed__.country),
47
+ tax_id: damlTypes.Text.encode(__typed__.tax_id),
48
+ };
49
+ }
50
+ ,
51
+ };
52
+
53
+
54
+
55
+ exports.OcfMonetary = {
56
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({amount: damlTypes.Numeric(10).decoder, currency: damlTypes.Text.decoder, }); }),
57
+ encode: function (__typed__) {
58
+ return {
59
+ amount: damlTypes.Numeric(10).encode(__typed__.amount),
60
+ currency: damlTypes.Text.encode(__typed__.currency),
61
+ };
62
+ }
63
+ ,
64
+ };
65
+
@@ -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,29 @@
1
+ // Generated from Fairmint/OpenCapTable/Types/Stakeholder.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
+
8
+ export declare type OcfStakeholderRelationshipType =
9
+ | 'OcfRelAdvisor'
10
+ | 'OcfRelBoardMember'
11
+ | 'OcfRelConsultant'
12
+ | 'OcfRelEmployee'
13
+ | 'OcfRelExAdvisor'
14
+ | 'OcfRelExConsultant'
15
+ | 'OcfRelExEmployee'
16
+ | 'OcfRelExecutive'
17
+ | 'OcfRelFounder'
18
+ | 'OcfRelInvestor'
19
+ | 'OcfRelNonUsEmployee'
20
+ | 'OcfRelOfficer'
21
+ | 'OcfRelOther'
22
+ ;
23
+
24
+ export declare const OcfStakeholderRelationshipType:
25
+ damlTypes.Serializable<OcfStakeholderRelationshipType> & {
26
+ }
27
+ & { readonly keys: OcfStakeholderRelationshipType[] } & { readonly [e in OcfStakeholderRelationshipType]: e }
28
+ ;
29
+
@@ -0,0 +1,32 @@
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
+
13
+
14
+ exports.OcfStakeholderRelationshipType = {
15
+ OcfRelAdvisor: 'OcfRelAdvisor',
16
+ OcfRelBoardMember: 'OcfRelBoardMember',
17
+ OcfRelConsultant: 'OcfRelConsultant',
18
+ OcfRelEmployee: 'OcfRelEmployee',
19
+ OcfRelExAdvisor: 'OcfRelExAdvisor',
20
+ OcfRelExConsultant: 'OcfRelExConsultant',
21
+ OcfRelExEmployee: 'OcfRelExEmployee',
22
+ OcfRelExecutive: 'OcfRelExecutive',
23
+ OcfRelFounder: 'OcfRelFounder',
24
+ OcfRelInvestor: 'OcfRelInvestor',
25
+ OcfRelNonUsEmployee: 'OcfRelNonUsEmployee',
26
+ OcfRelOfficer: 'OcfRelOfficer',
27
+ OcfRelOther: 'OcfRelOther',
28
+ keys: ['OcfRelAdvisor','OcfRelBoardMember','OcfRelConsultant','OcfRelEmployee','OcfRelExAdvisor','OcfRelExConsultant','OcfRelExEmployee','OcfRelExecutive','OcfRelFounder','OcfRelInvestor','OcfRelNonUsEmployee','OcfRelOfficer','OcfRelOther',],
29
+ decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfStakeholderRelationshipType.OcfRelAdvisor), jtv.constant(exports.OcfStakeholderRelationshipType.OcfRelBoardMember), jtv.constant(exports.OcfStakeholderRelationshipType.OcfRelConsultant), jtv.constant(exports.OcfStakeholderRelationshipType.OcfRelEmployee), jtv.constant(exports.OcfStakeholderRelationshipType.OcfRelExAdvisor), jtv.constant(exports.OcfStakeholderRelationshipType.OcfRelExConsultant), jtv.constant(exports.OcfStakeholderRelationshipType.OcfRelExEmployee), jtv.constant(exports.OcfStakeholderRelationshipType.OcfRelExecutive), jtv.constant(exports.OcfStakeholderRelationshipType.OcfRelFounder), jtv.constant(exports.OcfStakeholderRelationshipType.OcfRelInvestor), jtv.constant(exports.OcfStakeholderRelationshipType.OcfRelNonUsEmployee), jtv.constant(exports.OcfStakeholderRelationshipType.OcfRelOfficer), jtv.constant(exports.OcfStakeholderRelationshipType.OcfRelOther)); }),
30
+ encode: function (__typed__) { return __typed__; },
31
+ };
32
+
@@ -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,135 @@
1
+ // Generated from Fairmint/OpenCapTable/Types/Stock.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
+
8
+ export declare type OcfFileType =
9
+ | 'OcfManifestFile'
10
+ | 'OcfStakeholdersFile'
11
+ | 'OcfStockClassesFile'
12
+ | 'OcfStockLegendTemplatesFile'
13
+ | 'OcfStockPlansFile'
14
+ | 'OcfTransactionsFile'
15
+ | 'OcfValuationsFile'
16
+ | 'OcfVestingTermsFile'
17
+ | 'OcfFinancingsFile'
18
+ | 'OcfDocumentsFile'
19
+ ;
20
+
21
+ export declare const OcfFileType:
22
+ damlTypes.Serializable<OcfFileType> & {
23
+ }
24
+ & { readonly keys: OcfFileType[] } & { readonly [e in OcfFileType]: e }
25
+ ;
26
+
27
+
28
+ export declare type OcfQuantitySourceType =
29
+ | 'OcfQuantityHumanEstimated'
30
+ | 'OcfQuantityMachineEstimated'
31
+ | 'OcfQuantityUnspecified'
32
+ | 'OcfQuantityInstrumentFixed'
33
+ | 'OcfQuantityInstrumentMax'
34
+ | 'OcfQuantityInstrumentMin'
35
+ ;
36
+
37
+ export declare const OcfQuantitySourceType:
38
+ damlTypes.Serializable<OcfQuantitySourceType> & {
39
+ }
40
+ & { readonly keys: OcfQuantitySourceType[] } & { readonly [e in OcfQuantitySourceType]: e }
41
+ ;
42
+
43
+
44
+ export declare type OcfInitialSharesAuthorized =
45
+ | { tag: 'OcfInitialSharesNumeric'; value: damlTypes.Numeric }
46
+ | { tag: 'OcfInitialSharesEnum'; value: OcfAuthorizedShares }
47
+ ;
48
+
49
+ export declare const OcfInitialSharesAuthorized:
50
+ damlTypes.Serializable<OcfInitialSharesAuthorized> & {
51
+ }
52
+ ;
53
+
54
+
55
+ export declare type OcfAuthorizedShares =
56
+ | 'OcfAuthorizedSharesNotApplicable'
57
+ | 'OcfAuthorizedSharesUnlimited'
58
+ ;
59
+
60
+ export declare const OcfAuthorizedShares:
61
+ damlTypes.Serializable<OcfAuthorizedShares> & {
62
+ }
63
+ & { readonly keys: OcfAuthorizedShares[] } & { readonly [e in OcfAuthorizedShares]: e }
64
+ ;
65
+
66
+
67
+ export declare type OcfShareNumberRange = {
68
+ starting_share_number: damlTypes.Numeric;
69
+ ending_share_number: damlTypes.Numeric;
70
+ };
71
+
72
+ export declare const OcfShareNumberRange:
73
+ damlTypes.Serializable<OcfShareNumberRange> & {
74
+ }
75
+ ;
76
+
77
+
78
+ export declare type OcfSecurityExemption = {
79
+ description: string;
80
+ jurisdiction: string;
81
+ };
82
+
83
+ export declare const OcfSecurityExemption:
84
+ damlTypes.Serializable<OcfSecurityExemption> & {
85
+ }
86
+ ;
87
+
88
+
89
+ export declare type OcfStockParent = {
90
+ parent_object_id: string;
91
+ parent_object_type: OcfParentSecurityType;
92
+ };
93
+
94
+ export declare const OcfStockParent:
95
+ damlTypes.Serializable<OcfStockParent> & {
96
+ }
97
+ ;
98
+
99
+
100
+ export declare type OcfParentSecurityType =
101
+ | 'OcfParentStockPlan'
102
+ | 'OcfParentStock'
103
+ | 'OcfParentWarrant'
104
+ | 'OcfParentConvertible'
105
+ ;
106
+
107
+ export declare const OcfParentSecurityType:
108
+ damlTypes.Serializable<OcfParentSecurityType> & {
109
+ }
110
+ & { readonly keys: OcfParentSecurityType[] } & { readonly [e in OcfParentSecurityType]: e }
111
+ ;
112
+
113
+
114
+ export declare type OcfRatio = {
115
+ numerator: damlTypes.Numeric;
116
+ denominator: damlTypes.Numeric;
117
+ };
118
+
119
+ export declare const OcfRatio:
120
+ damlTypes.Serializable<OcfRatio> & {
121
+ }
122
+ ;
123
+
124
+
125
+ export declare type OcfStockClassType =
126
+ | 'OcfStockClassTypeCommon'
127
+ | 'OcfStockClassTypePreferred'
128
+ ;
129
+
130
+ export declare const OcfStockClassType:
131
+ damlTypes.Serializable<OcfStockClassType> & {
132
+ }
133
+ & { readonly keys: OcfStockClassType[] } & { readonly [e in OcfStockClassType]: e }
134
+ ;
135
+
@@ -0,0 +1,141 @@
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
+
13
+
14
+ exports.OcfFileType = {
15
+ OcfManifestFile: 'OcfManifestFile',
16
+ OcfStakeholdersFile: 'OcfStakeholdersFile',
17
+ OcfStockClassesFile: 'OcfStockClassesFile',
18
+ OcfStockLegendTemplatesFile: 'OcfStockLegendTemplatesFile',
19
+ OcfStockPlansFile: 'OcfStockPlansFile',
20
+ OcfTransactionsFile: 'OcfTransactionsFile',
21
+ OcfValuationsFile: 'OcfValuationsFile',
22
+ OcfVestingTermsFile: 'OcfVestingTermsFile',
23
+ OcfFinancingsFile: 'OcfFinancingsFile',
24
+ OcfDocumentsFile: 'OcfDocumentsFile',
25
+ keys: ['OcfManifestFile','OcfStakeholdersFile','OcfStockClassesFile','OcfStockLegendTemplatesFile','OcfStockPlansFile','OcfTransactionsFile','OcfValuationsFile','OcfVestingTermsFile','OcfFinancingsFile','OcfDocumentsFile',],
26
+ decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfFileType.OcfManifestFile), jtv.constant(exports.OcfFileType.OcfStakeholdersFile), jtv.constant(exports.OcfFileType.OcfStockClassesFile), jtv.constant(exports.OcfFileType.OcfStockLegendTemplatesFile), jtv.constant(exports.OcfFileType.OcfStockPlansFile), jtv.constant(exports.OcfFileType.OcfTransactionsFile), jtv.constant(exports.OcfFileType.OcfValuationsFile), jtv.constant(exports.OcfFileType.OcfVestingTermsFile), jtv.constant(exports.OcfFileType.OcfFinancingsFile), jtv.constant(exports.OcfFileType.OcfDocumentsFile)); }),
27
+ encode: function (__typed__) { return __typed__; },
28
+ };
29
+
30
+
31
+
32
+ exports.OcfQuantitySourceType = {
33
+ OcfQuantityHumanEstimated: 'OcfQuantityHumanEstimated',
34
+ OcfQuantityMachineEstimated: 'OcfQuantityMachineEstimated',
35
+ OcfQuantityUnspecified: 'OcfQuantityUnspecified',
36
+ OcfQuantityInstrumentFixed: 'OcfQuantityInstrumentFixed',
37
+ OcfQuantityInstrumentMax: 'OcfQuantityInstrumentMax',
38
+ OcfQuantityInstrumentMin: 'OcfQuantityInstrumentMin',
39
+ keys: ['OcfQuantityHumanEstimated','OcfQuantityMachineEstimated','OcfQuantityUnspecified','OcfQuantityInstrumentFixed','OcfQuantityInstrumentMax','OcfQuantityInstrumentMin',],
40
+ decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfQuantitySourceType.OcfQuantityHumanEstimated), jtv.constant(exports.OcfQuantitySourceType.OcfQuantityMachineEstimated), jtv.constant(exports.OcfQuantitySourceType.OcfQuantityUnspecified), jtv.constant(exports.OcfQuantitySourceType.OcfQuantityInstrumentFixed), jtv.constant(exports.OcfQuantitySourceType.OcfQuantityInstrumentMax), jtv.constant(exports.OcfQuantitySourceType.OcfQuantityInstrumentMin)); }),
41
+ encode: function (__typed__) { return __typed__; },
42
+ };
43
+
44
+
45
+
46
+ exports.OcfInitialSharesAuthorized = {
47
+ decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('OcfInitialSharesNumeric'), value: damlTypes.Numeric(10).decoder, }), jtv.object({tag: jtv.constant('OcfInitialSharesEnum'), value: exports.OcfAuthorizedShares.decoder, })); }),
48
+ encode: function (__typed__) {
49
+ switch(__typed__.tag) {
50
+ case 'OcfInitialSharesNumeric': return {tag: __typed__.tag, value: damlTypes.Numeric(10).encode(__typed__.value)};
51
+ case 'OcfInitialSharesEnum': return {tag: __typed__.tag, value: exports.OcfAuthorizedShares.encode(__typed__.value)};
52
+ default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type OcfInitialSharesAuthorized';
53
+ }
54
+ }
55
+ ,
56
+ };
57
+
58
+
59
+
60
+ exports.OcfAuthorizedShares = {
61
+ OcfAuthorizedSharesNotApplicable: 'OcfAuthorizedSharesNotApplicable',
62
+ OcfAuthorizedSharesUnlimited: 'OcfAuthorizedSharesUnlimited',
63
+ keys: ['OcfAuthorizedSharesNotApplicable','OcfAuthorizedSharesUnlimited',],
64
+ decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfAuthorizedShares.OcfAuthorizedSharesNotApplicable), jtv.constant(exports.OcfAuthorizedShares.OcfAuthorizedSharesUnlimited)); }),
65
+ encode: function (__typed__) { return __typed__; },
66
+ };
67
+
68
+
69
+
70
+ exports.OcfShareNumberRange = {
71
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({starting_share_number: damlTypes.Numeric(10).decoder, ending_share_number: damlTypes.Numeric(10).decoder, }); }),
72
+ encode: function (__typed__) {
73
+ return {
74
+ starting_share_number: damlTypes.Numeric(10).encode(__typed__.starting_share_number),
75
+ ending_share_number: damlTypes.Numeric(10).encode(__typed__.ending_share_number),
76
+ };
77
+ }
78
+ ,
79
+ };
80
+
81
+
82
+
83
+ exports.OcfSecurityExemption = {
84
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({description: damlTypes.Text.decoder, jurisdiction: damlTypes.Text.decoder, }); }),
85
+ encode: function (__typed__) {
86
+ return {
87
+ description: damlTypes.Text.encode(__typed__.description),
88
+ jurisdiction: damlTypes.Text.encode(__typed__.jurisdiction),
89
+ };
90
+ }
91
+ ,
92
+ };
93
+
94
+
95
+
96
+ exports.OcfStockParent = {
97
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({parent_object_id: damlTypes.Text.decoder, parent_object_type: exports.OcfParentSecurityType.decoder, }); }),
98
+ encode: function (__typed__) {
99
+ return {
100
+ parent_object_id: damlTypes.Text.encode(__typed__.parent_object_id),
101
+ parent_object_type: exports.OcfParentSecurityType.encode(__typed__.parent_object_type),
102
+ };
103
+ }
104
+ ,
105
+ };
106
+
107
+
108
+
109
+ exports.OcfParentSecurityType = {
110
+ OcfParentStockPlan: 'OcfParentStockPlan',
111
+ OcfParentStock: 'OcfParentStock',
112
+ OcfParentWarrant: 'OcfParentWarrant',
113
+ OcfParentConvertible: 'OcfParentConvertible',
114
+ keys: ['OcfParentStockPlan','OcfParentStock','OcfParentWarrant','OcfParentConvertible',],
115
+ decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfParentSecurityType.OcfParentStockPlan), jtv.constant(exports.OcfParentSecurityType.OcfParentStock), jtv.constant(exports.OcfParentSecurityType.OcfParentWarrant), jtv.constant(exports.OcfParentSecurityType.OcfParentConvertible)); }),
116
+ encode: function (__typed__) { return __typed__; },
117
+ };
118
+
119
+
120
+
121
+ exports.OcfRatio = {
122
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({numerator: damlTypes.Numeric(10).decoder, denominator: damlTypes.Numeric(10).decoder, }); }),
123
+ encode: function (__typed__) {
124
+ return {
125
+ numerator: damlTypes.Numeric(10).encode(__typed__.numerator),
126
+ denominator: damlTypes.Numeric(10).encode(__typed__.denominator),
127
+ };
128
+ }
129
+ ,
130
+ };
131
+
132
+
133
+
134
+ exports.OcfStockClassType = {
135
+ OcfStockClassTypeCommon: 'OcfStockClassTypeCommon',
136
+ OcfStockClassTypePreferred: 'OcfStockClassTypePreferred',
137
+ keys: ['OcfStockClassTypeCommon','OcfStockClassTypePreferred',],
138
+ decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfStockClassType.OcfStockClassTypeCommon), jtv.constant(exports.OcfStockClassType.OcfStockClassTypePreferred)); }),
139
+ encode: function (__typed__) { return __typed__; },
140
+ };
141
+
@@ -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'));