@fairmint/open-captable-protocol-daml-js 0.0.41 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated/ocp-factory-contract-id.json +4 -4
- package/lib/Fairmint/OpenCapTable/Issuer/module.d.ts +222 -2
- package/lib/Fairmint/OpenCapTable/Issuer/module.js +341 -8
- package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OcpFactory/module.d.ts +1 -1
- package/lib/Fairmint/OpenCapTable/OcpFactory/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/Stakeholder/module.d.ts +49 -0
- package/lib/Fairmint/OpenCapTable/Stakeholder/module.js +71 -0
- package/lib/Fairmint/OpenCapTable/StockClass/module.d.ts +340 -4
- package/lib/Fairmint/OpenCapTable/StockClass/module.js +487 -7
- package/lib/Fairmint/OpenCapTable/StockLegendTemplate/index.d.ts +1 -0
- package/lib/Fairmint/OpenCapTable/StockLegendTemplate/index.js +8 -0
- package/lib/Fairmint/OpenCapTable/StockLegendTemplate/module.d.ts +48 -0
- package/lib/Fairmint/OpenCapTable/StockLegendTemplate/module.js +70 -0
- package/lib/Fairmint/OpenCapTable/StockPlan/index.d.ts +1 -0
- package/lib/Fairmint/OpenCapTable/StockPlan/index.js +8 -0
- package/lib/Fairmint/OpenCapTable/StockPlan/module.d.ts +332 -0
- package/lib/Fairmint/OpenCapTable/StockPlan/module.js +482 -0
- package/lib/Fairmint/OpenCapTable/Types/module.d.ts +510 -3
- package/lib/Fairmint/OpenCapTable/Types/module.js +523 -9
- package/lib/Fairmint/OpenCapTable/Valuation/index.d.ts +1 -0
- package/lib/Fairmint/OpenCapTable/Valuation/index.js +8 -0
- package/lib/Fairmint/OpenCapTable/Valuation/module.d.ts +50 -0
- package/lib/Fairmint/OpenCapTable/Valuation/module.js +72 -0
- package/lib/Fairmint/OpenCapTable/VestingTerms/index.d.ts +1 -0
- package/lib/Fairmint/OpenCapTable/VestingTerms/index.js +8 -0
- package/lib/Fairmint/OpenCapTable/VestingTerms/module.d.ts +48 -0
- package/lib/Fairmint/OpenCapTable/VestingTerms/module.js +70 -0
- package/lib/Fairmint/OpenCapTable/index.d.ts +10 -2
- package/lib/Fairmint/OpenCapTable/index.js +10 -2
- package/package.json +3 -3
- package/lib/Fairmint/OpenCapTable/StockPosition/module.d.ts +0 -85
- package/lib/Fairmint/OpenCapTable/StockPosition/module.js +0 -124
- /package/lib/Fairmint/OpenCapTable/{StockPosition → Stakeholder}/index.d.ts +0 -0
- /package/lib/Fairmint/OpenCapTable/{StockPosition → Stakeholder}/index.js +0 -0
|
@@ -14,11 +14,31 @@ var damlLedger = require('@daml/ledger');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
exports.TransferOperation = {
|
|
17
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({recipient: damlTypes.Party.decoder, quantity: damlTypes.
|
|
17
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({recipient: damlTypes.Party.decoder, quantity: damlTypes.Numeric(10).decoder, }); }),
|
|
18
18
|
encode: function (__typed__) {
|
|
19
19
|
return {
|
|
20
20
|
recipient: damlTypes.Party.encode(__typed__.recipient),
|
|
21
|
-
quantity: damlTypes.
|
|
21
|
+
quantity: damlTypes.Numeric(10).encode(__typed__.quantity),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
,
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
exports.OcfStakeholderData = {
|
|
30
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({name: damlTypes.Text.decoder, stakeholder_type: exports.OcfStakeholderType.decoder, issuer_assigned_id: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), current_relationship: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), primary_contact: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfContactInfo).decoder), contact_info: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfContactInfoWithoutName).decoder), addresses: damlTypes.List(exports.OcfAddress).decoder, tax_ids: damlTypes.List(exports.OcfTaxID).decoder, comments: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(damlTypes.Text)).decoder), }); }),
|
|
31
|
+
encode: function (__typed__) {
|
|
32
|
+
return {
|
|
33
|
+
name: damlTypes.Text.encode(__typed__.name),
|
|
34
|
+
stakeholder_type: exports.OcfStakeholderType.encode(__typed__.stakeholder_type),
|
|
35
|
+
issuer_assigned_id: damlTypes.Optional(damlTypes.Text).encode(__typed__.issuer_assigned_id),
|
|
36
|
+
current_relationship: damlTypes.Optional(damlTypes.Text).encode(__typed__.current_relationship),
|
|
37
|
+
primary_contact: damlTypes.Optional(exports.OcfContactInfo).encode(__typed__.primary_contact),
|
|
38
|
+
contact_info: damlTypes.Optional(exports.OcfContactInfoWithoutName).encode(__typed__.contact_info),
|
|
39
|
+
addresses: damlTypes.List(exports.OcfAddress).encode(__typed__.addresses),
|
|
40
|
+
tax_ids: damlTypes.List(exports.OcfTaxID).encode(__typed__.tax_ids),
|
|
41
|
+
comments: damlTypes.Optional(damlTypes.List(damlTypes.Text)).encode(__typed__.comments),
|
|
22
42
|
};
|
|
23
43
|
}
|
|
24
44
|
,
|
|
@@ -27,7 +47,7 @@ exports.TransferOperation = {
|
|
|
27
47
|
|
|
28
48
|
|
|
29
49
|
exports.OcfStockClassData = {
|
|
30
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({name: damlTypes.Text.decoder, class_type: exports.OcfStockClassType.decoder, default_id_prefix: damlTypes.Text.decoder, initial_shares_authorized: exports.OcfInitialSharesAuthorized.decoder, votes_per_share: damlTypes.Numeric(10).decoder, seniority: damlTypes.Numeric(10).decoder, board_approval_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), stockholder_approval_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), par_value: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfMonetary).decoder), price_per_share: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfMonetary).decoder), liquidation_preference_multiple: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), participation_cap_multiple: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), conversion_rights: damlTypes.List(exports.OcfStockClassConversionRight).decoder, }); }),
|
|
50
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({name: damlTypes.Text.decoder, class_type: exports.OcfStockClassType.decoder, default_id_prefix: damlTypes.Text.decoder, initial_shares_authorized: exports.OcfInitialSharesAuthorized.decoder, votes_per_share: damlTypes.Numeric(10).decoder, seniority: damlTypes.Numeric(10).decoder, board_approval_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), stockholder_approval_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), par_value: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfMonetary).decoder), price_per_share: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfMonetary).decoder), liquidation_preference_multiple: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), participation_cap_multiple: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), conversion_rights: damlTypes.List(exports.OcfStockClassConversionRight).decoder, comments: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(damlTypes.Text)).decoder), }); }),
|
|
31
51
|
encode: function (__typed__) {
|
|
32
52
|
return {
|
|
33
53
|
name: damlTypes.Text.encode(__typed__.name),
|
|
@@ -43,6 +63,7 @@ exports.OcfStockClassData = {
|
|
|
43
63
|
liquidation_preference_multiple: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.liquidation_preference_multiple),
|
|
44
64
|
participation_cap_multiple: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.participation_cap_multiple),
|
|
45
65
|
conversion_rights: damlTypes.List(exports.OcfStockClassConversionRight).encode(__typed__.conversion_rights),
|
|
66
|
+
comments: damlTypes.Optional(damlTypes.List(damlTypes.Text)).encode(__typed__.comments),
|
|
46
67
|
};
|
|
47
68
|
}
|
|
48
69
|
,
|
|
@@ -51,7 +72,7 @@ exports.OcfStockClassData = {
|
|
|
51
72
|
|
|
52
73
|
|
|
53
74
|
exports.OcfIssuerData = {
|
|
54
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({legal_name: damlTypes.Text.decoder, formation_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), country_of_formation: damlTypes.Text.decoder, dba: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), country_subdivision_of_formation: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), tax_ids: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(exports.OcfTaxID)).decoder), email: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfEmail).decoder), phone: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), address: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfAddress).decoder), initial_shares_authorized: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), }); }),
|
|
75
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({legal_name: damlTypes.Text.decoder, formation_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), country_of_formation: damlTypes.Text.decoder, dba: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), country_subdivision_of_formation: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), tax_ids: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(exports.OcfTaxID)).decoder), email: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfEmail).decoder), phone: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), address: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfAddress).decoder), initial_shares_authorized: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), comments: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(damlTypes.Text)).decoder), }); }),
|
|
55
76
|
encode: function (__typed__) {
|
|
56
77
|
return {
|
|
57
78
|
legal_name: damlTypes.Text.encode(__typed__.legal_name),
|
|
@@ -64,6 +85,240 @@ exports.OcfIssuerData = {
|
|
|
64
85
|
phone: damlTypes.Optional(damlTypes.Text).encode(__typed__.phone),
|
|
65
86
|
address: damlTypes.Optional(exports.OcfAddress).encode(__typed__.address),
|
|
66
87
|
initial_shares_authorized: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.initial_shares_authorized),
|
|
88
|
+
comments: damlTypes.Optional(damlTypes.List(damlTypes.Text)).encode(__typed__.comments),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
,
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
exports.OcfStakeholderType = {
|
|
97
|
+
OcfStakeholderTypeIndividual: 'OcfStakeholderTypeIndividual',
|
|
98
|
+
OcfStakeholderTypeInstitution: 'OcfStakeholderTypeInstitution',
|
|
99
|
+
keys: ['OcfStakeholderTypeIndividual','OcfStakeholderTypeInstitution',],
|
|
100
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfStakeholderType.OcfStakeholderTypeIndividual), jtv.constant(exports.OcfStakeholderType.OcfStakeholderTypeInstitution)); }),
|
|
101
|
+
encode: function (__typed__) { return __typed__; },
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
exports.OcfContactInfoWithoutName = {
|
|
107
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({email: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfEmail).decoder), phone: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), address: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfAddress).decoder), }); }),
|
|
108
|
+
encode: function (__typed__) {
|
|
109
|
+
return {
|
|
110
|
+
email: damlTypes.Optional(exports.OcfEmail).encode(__typed__.email),
|
|
111
|
+
phone: damlTypes.Optional(damlTypes.Text).encode(__typed__.phone),
|
|
112
|
+
address: damlTypes.Optional(exports.OcfAddress).encode(__typed__.address),
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
,
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
exports.OcfContactInfo = {
|
|
121
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({name: damlTypes.Text.decoder, email: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfEmail).decoder), phone: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), address: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfAddress).decoder), }); }),
|
|
122
|
+
encode: function (__typed__) {
|
|
123
|
+
return {
|
|
124
|
+
name: damlTypes.Text.encode(__typed__.name),
|
|
125
|
+
email: damlTypes.Optional(exports.OcfEmail).encode(__typed__.email),
|
|
126
|
+
phone: damlTypes.Optional(damlTypes.Text).encode(__typed__.phone),
|
|
127
|
+
address: damlTypes.Optional(exports.OcfAddress).encode(__typed__.address),
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
,
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
exports.OcfStockPlanData = {
|
|
136
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({plan_name: damlTypes.Text.decoder, board_approval_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), stockholder_approval_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), initial_shares_reserved: damlTypes.Numeric(10).decoder, default_cancellation_behavior: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfStockPlanCancellationBehaviorType).decoder), comments: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(damlTypes.Text)).decoder), }); }),
|
|
137
|
+
encode: function (__typed__) {
|
|
138
|
+
return {
|
|
139
|
+
plan_name: damlTypes.Text.encode(__typed__.plan_name),
|
|
140
|
+
board_approval_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.board_approval_date),
|
|
141
|
+
stockholder_approval_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.stockholder_approval_date),
|
|
142
|
+
initial_shares_reserved: damlTypes.Numeric(10).encode(__typed__.initial_shares_reserved),
|
|
143
|
+
default_cancellation_behavior: damlTypes.Optional(exports.OcfStockPlanCancellationBehaviorType).encode(__typed__.default_cancellation_behavior),
|
|
144
|
+
comments: damlTypes.Optional(damlTypes.List(damlTypes.Text)).encode(__typed__.comments),
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
,
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
exports.OcfStockPlanCancellationBehaviorType = {
|
|
153
|
+
OcfPlanCancelRetire: 'OcfPlanCancelRetire',
|
|
154
|
+
OcfPlanCancelReturnToPool: 'OcfPlanCancelReturnToPool',
|
|
155
|
+
OcfPlanCancelHoldAsCapitalStock: 'OcfPlanCancelHoldAsCapitalStock',
|
|
156
|
+
OcfPlanCancelDefinedPerPlanSecurity: 'OcfPlanCancelDefinedPerPlanSecurity',
|
|
157
|
+
keys: ['OcfPlanCancelRetire','OcfPlanCancelReturnToPool','OcfPlanCancelHoldAsCapitalStock','OcfPlanCancelDefinedPerPlanSecurity',],
|
|
158
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfStockPlanCancellationBehaviorType.OcfPlanCancelRetire), jtv.constant(exports.OcfStockPlanCancellationBehaviorType.OcfPlanCancelReturnToPool), jtv.constant(exports.OcfStockPlanCancellationBehaviorType.OcfPlanCancelHoldAsCapitalStock), jtv.constant(exports.OcfStockPlanCancellationBehaviorType.OcfPlanCancelDefinedPerPlanSecurity)); }),
|
|
159
|
+
encode: function (__typed__) { return __typed__; },
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
exports.OcfStockLegendTemplateData = {
|
|
165
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({name: damlTypes.Text.decoder, text: damlTypes.Text.decoder, comments: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(damlTypes.Text)).decoder), }); }),
|
|
166
|
+
encode: function (__typed__) {
|
|
167
|
+
return {
|
|
168
|
+
name: damlTypes.Text.encode(__typed__.name),
|
|
169
|
+
text: damlTypes.Text.encode(__typed__.text),
|
|
170
|
+
comments: damlTypes.Optional(damlTypes.List(damlTypes.Text)).encode(__typed__.comments),
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
,
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
exports.OcfVestingTermsData = {
|
|
179
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({name: damlTypes.Text.decoder, description: damlTypes.Text.decoder, allocation_type: exports.OcfAllocationType.decoder, vesting_conditions: damlTypes.List(exports.OcfVestingCondition).decoder, comments: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(damlTypes.Text)).decoder), }); }),
|
|
180
|
+
encode: function (__typed__) {
|
|
181
|
+
return {
|
|
182
|
+
name: damlTypes.Text.encode(__typed__.name),
|
|
183
|
+
description: damlTypes.Text.encode(__typed__.description),
|
|
184
|
+
allocation_type: exports.OcfAllocationType.encode(__typed__.allocation_type),
|
|
185
|
+
vesting_conditions: damlTypes.List(exports.OcfVestingCondition).encode(__typed__.vesting_conditions),
|
|
186
|
+
comments: damlTypes.Optional(damlTypes.List(damlTypes.Text)).encode(__typed__.comments),
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
,
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
exports.OcfVestingCondition = {
|
|
195
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({id_: damlTypes.Text.decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), portion: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfVestingConditionPortion).decoder), quantity: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), trigger: exports.OcfVestingTrigger.decoder, next_condition_ids: damlTypes.List(damlTypes.Text).decoder, }); }),
|
|
196
|
+
encode: function (__typed__) {
|
|
197
|
+
return {
|
|
198
|
+
id_: damlTypes.Text.encode(__typed__.id_),
|
|
199
|
+
description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
|
|
200
|
+
portion: damlTypes.Optional(exports.OcfVestingConditionPortion).encode(__typed__.portion),
|
|
201
|
+
quantity: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.quantity),
|
|
202
|
+
trigger: exports.OcfVestingTrigger.encode(__typed__.trigger),
|
|
203
|
+
next_condition_ids: damlTypes.List(damlTypes.Text).encode(__typed__.next_condition_ids),
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
,
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
exports.OcfVestingConditionPortion = {
|
|
212
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({numerator: damlTypes.Numeric(10).decoder, denominator: damlTypes.Numeric(10).decoder, remainder: damlTypes.Bool.decoder, }); }),
|
|
213
|
+
encode: function (__typed__) {
|
|
214
|
+
return {
|
|
215
|
+
numerator: damlTypes.Numeric(10).encode(__typed__.numerator),
|
|
216
|
+
denominator: damlTypes.Numeric(10).encode(__typed__.denominator),
|
|
217
|
+
remainder: damlTypes.Bool.encode(__typed__.remainder),
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
,
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
exports.OcfVestingTrigger = {
|
|
226
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('OcfVestingStartTrigger'), value: damlTypes.Unit.decoder, }), jtv.object({tag: jtv.constant('OcfVestingScheduleAbsoluteTrigger'), value: damlTypes.Time.decoder, }), jtv.object({tag: jtv.constant('OcfVestingScheduleRelativeTrigger'), value: exports.OcfVestingTrigger.OcfVestingScheduleRelativeTrigger.decoder, }), jtv.object({tag: jtv.constant('OcfVestingEventTrigger'), value: damlTypes.Unit.decoder, })); }),
|
|
227
|
+
encode: function (__typed__) {
|
|
228
|
+
switch(__typed__.tag) {
|
|
229
|
+
case 'OcfVestingStartTrigger': return {tag: __typed__.tag, value: damlTypes.Unit.encode(__typed__.value)};
|
|
230
|
+
case 'OcfVestingScheduleAbsoluteTrigger': return {tag: __typed__.tag, value: damlTypes.Time.encode(__typed__.value)};
|
|
231
|
+
case 'OcfVestingScheduleRelativeTrigger': return {tag: __typed__.tag, value: exports.OcfVestingTrigger.OcfVestingScheduleRelativeTrigger.encode(__typed__.value)};
|
|
232
|
+
case 'OcfVestingEventTrigger': return {tag: __typed__.tag, value: damlTypes.Unit.encode(__typed__.value)};
|
|
233
|
+
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type OcfVestingTrigger';
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
,
|
|
237
|
+
OcfVestingScheduleRelativeTrigger:({
|
|
238
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({period: exports.OcfVestingPeriod.decoder, relative_to_condition_id: damlTypes.Text.decoder, }); }),
|
|
239
|
+
encode: function (__typed__) {
|
|
240
|
+
return {
|
|
241
|
+
period: exports.OcfVestingPeriod.encode(__typed__.period),
|
|
242
|
+
relative_to_condition_id: damlTypes.Text.encode(__typed__.relative_to_condition_id),
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
,
|
|
246
|
+
}),
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
exports.OcfVestingPeriod = {
|
|
254
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('OcfVestingPeriodDays'), value: damlTypes.Int.decoder, }), jtv.object({tag: jtv.constant('OcfVestingPeriodMonths'), value: damlTypes.Int.decoder, })); }),
|
|
255
|
+
encode: function (__typed__) {
|
|
256
|
+
switch(__typed__.tag) {
|
|
257
|
+
case 'OcfVestingPeriodDays': return {tag: __typed__.tag, value: damlTypes.Int.encode(__typed__.value)};
|
|
258
|
+
case 'OcfVestingPeriodMonths': return {tag: __typed__.tag, value: damlTypes.Int.encode(__typed__.value)};
|
|
259
|
+
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type OcfVestingPeriod';
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
,
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
exports.OcfAllocationType = {
|
|
268
|
+
OcfAllocationCumulativeRounding: 'OcfAllocationCumulativeRounding',
|
|
269
|
+
OcfAllocationCumulativeRoundDown: 'OcfAllocationCumulativeRoundDown',
|
|
270
|
+
OcfAllocationFrontLoaded: 'OcfAllocationFrontLoaded',
|
|
271
|
+
OcfAllocationBackLoaded: 'OcfAllocationBackLoaded',
|
|
272
|
+
OcfAllocationFrontLoadedToSingleTranche: 'OcfAllocationFrontLoadedToSingleTranche',
|
|
273
|
+
OcfAllocationBackLoadedToSingleTranche: 'OcfAllocationBackLoadedToSingleTranche',
|
|
274
|
+
OcfAllocationFractional: 'OcfAllocationFractional',
|
|
275
|
+
keys: ['OcfAllocationCumulativeRounding','OcfAllocationCumulativeRoundDown','OcfAllocationFrontLoaded','OcfAllocationBackLoaded','OcfAllocationFrontLoadedToSingleTranche','OcfAllocationBackLoadedToSingleTranche','OcfAllocationFractional',],
|
|
276
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfAllocationType.OcfAllocationCumulativeRounding), jtv.constant(exports.OcfAllocationType.OcfAllocationCumulativeRoundDown), jtv.constant(exports.OcfAllocationType.OcfAllocationFrontLoaded), jtv.constant(exports.OcfAllocationType.OcfAllocationBackLoaded), jtv.constant(exports.OcfAllocationType.OcfAllocationFrontLoadedToSingleTranche), jtv.constant(exports.OcfAllocationType.OcfAllocationBackLoadedToSingleTranche), jtv.constant(exports.OcfAllocationType.OcfAllocationFractional)); }),
|
|
277
|
+
encode: function (__typed__) { return __typed__; },
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
exports.OcfEquityCompensationIssuanceData = {
|
|
283
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({compensation_type: exports.OcfCompensationType.decoder, quantity: damlTypes.Numeric(10).decoder, exercise_price: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfMonetary).decoder), base_price: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfMonetary).decoder), early_exercisable: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Bool).decoder), vestings: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(exports.OcfVesting)).decoder), expiration_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), termination_exercise_windows: damlTypes.List(exports.OcfTerminationWindow).decoder, comments: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(damlTypes.Text)).decoder), }); }),
|
|
284
|
+
encode: function (__typed__) {
|
|
285
|
+
return {
|
|
286
|
+
compensation_type: exports.OcfCompensationType.encode(__typed__.compensation_type),
|
|
287
|
+
quantity: damlTypes.Numeric(10).encode(__typed__.quantity),
|
|
288
|
+
exercise_price: damlTypes.Optional(exports.OcfMonetary).encode(__typed__.exercise_price),
|
|
289
|
+
base_price: damlTypes.Optional(exports.OcfMonetary).encode(__typed__.base_price),
|
|
290
|
+
early_exercisable: damlTypes.Optional(damlTypes.Bool).encode(__typed__.early_exercisable),
|
|
291
|
+
vestings: damlTypes.Optional(damlTypes.List(exports.OcfVesting)).encode(__typed__.vestings),
|
|
292
|
+
expiration_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.expiration_date),
|
|
293
|
+
termination_exercise_windows: damlTypes.List(exports.OcfTerminationWindow).encode(__typed__.termination_exercise_windows),
|
|
294
|
+
comments: damlTypes.Optional(damlTypes.List(damlTypes.Text)).encode(__typed__.comments),
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
,
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
exports.OcfVesting = {
|
|
303
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({date: damlTypes.Time.decoder, amount: damlTypes.Numeric(10).decoder, }); }),
|
|
304
|
+
encode: function (__typed__) {
|
|
305
|
+
return {
|
|
306
|
+
date: damlTypes.Time.encode(__typed__.date),
|
|
307
|
+
amount: damlTypes.Numeric(10).encode(__typed__.amount),
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
,
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
exports.OcfTerminationWindow = {
|
|
316
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({reason: exports.OcfTerminationWindowType.decoder, period: damlTypes.Int.decoder, period_type: exports.OcfPeriodType.decoder, }); }),
|
|
317
|
+
encode: function (__typed__) {
|
|
318
|
+
return {
|
|
319
|
+
reason: exports.OcfTerminationWindowType.encode(__typed__.reason),
|
|
320
|
+
period: damlTypes.Int.encode(__typed__.period),
|
|
321
|
+
period_type: exports.OcfPeriodType.encode(__typed__.period_type),
|
|
67
322
|
};
|
|
68
323
|
}
|
|
69
324
|
,
|
|
@@ -71,16 +326,91 @@ exports.OcfIssuerData = {
|
|
|
71
326
|
|
|
72
327
|
|
|
73
328
|
|
|
329
|
+
exports.OcfTerminationWindowType = {
|
|
330
|
+
OcfTermVoluntaryOther: 'OcfTermVoluntaryOther',
|
|
331
|
+
OcfTermVoluntaryGoodCause: 'OcfTermVoluntaryGoodCause',
|
|
332
|
+
OcfTermVoluntaryRetirement: 'OcfTermVoluntaryRetirement',
|
|
333
|
+
OcfTermInvoluntaryOther: 'OcfTermInvoluntaryOther',
|
|
334
|
+
OcfTermInvoluntaryDeath: 'OcfTermInvoluntaryDeath',
|
|
335
|
+
OcfTermInvoluntaryDisability: 'OcfTermInvoluntaryDisability',
|
|
336
|
+
OcfTermInvoluntaryWithCause: 'OcfTermInvoluntaryWithCause',
|
|
337
|
+
keys: ['OcfTermVoluntaryOther','OcfTermVoluntaryGoodCause','OcfTermVoluntaryRetirement','OcfTermInvoluntaryOther','OcfTermInvoluntaryDeath','OcfTermInvoluntaryDisability','OcfTermInvoluntaryWithCause',],
|
|
338
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfTerminationWindowType.OcfTermVoluntaryOther), jtv.constant(exports.OcfTerminationWindowType.OcfTermVoluntaryGoodCause), jtv.constant(exports.OcfTerminationWindowType.OcfTermVoluntaryRetirement), jtv.constant(exports.OcfTerminationWindowType.OcfTermInvoluntaryOther), jtv.constant(exports.OcfTerminationWindowType.OcfTermInvoluntaryDeath), jtv.constant(exports.OcfTerminationWindowType.OcfTermInvoluntaryDisability), jtv.constant(exports.OcfTerminationWindowType.OcfTermInvoluntaryWithCause)); }),
|
|
339
|
+
encode: function (__typed__) { return __typed__; },
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
exports.OcfPeriodType = {
|
|
345
|
+
OcfPeriodDays: 'OcfPeriodDays',
|
|
346
|
+
OcfPeriodMonths: 'OcfPeriodMonths',
|
|
347
|
+
OcfPeriodYears: 'OcfPeriodYears',
|
|
348
|
+
keys: ['OcfPeriodDays','OcfPeriodMonths','OcfPeriodYears',],
|
|
349
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfPeriodType.OcfPeriodDays), jtv.constant(exports.OcfPeriodType.OcfPeriodMonths), jtv.constant(exports.OcfPeriodType.OcfPeriodYears)); }),
|
|
350
|
+
encode: function (__typed__) { return __typed__; },
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
exports.OcfCompensationType = {
|
|
356
|
+
OcfCompensationTypeOptionNSO: 'OcfCompensationTypeOptionNSO',
|
|
357
|
+
OcfCompensationTypeOptionISO: 'OcfCompensationTypeOptionISO',
|
|
358
|
+
OcfCompensationTypeOption: 'OcfCompensationTypeOption',
|
|
359
|
+
OcfCompensationTypeRSU: 'OcfCompensationTypeRSU',
|
|
360
|
+
OcfCompensationTypeCSAR: 'OcfCompensationTypeCSAR',
|
|
361
|
+
OcfCompensationTypeSSAR: 'OcfCompensationTypeSSAR',
|
|
362
|
+
keys: ['OcfCompensationTypeOptionNSO','OcfCompensationTypeOptionISO','OcfCompensationTypeOption','OcfCompensationTypeRSU','OcfCompensationTypeCSAR','OcfCompensationTypeSSAR',],
|
|
363
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfCompensationType.OcfCompensationTypeOptionNSO), jtv.constant(exports.OcfCompensationType.OcfCompensationTypeOptionISO), jtv.constant(exports.OcfCompensationType.OcfCompensationTypeOption), jtv.constant(exports.OcfCompensationType.OcfCompensationTypeRSU), jtv.constant(exports.OcfCompensationType.OcfCompensationTypeCSAR), jtv.constant(exports.OcfCompensationType.OcfCompensationTypeSSAR)); }),
|
|
364
|
+
encode: function (__typed__) { return __typed__; },
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
exports.OcfValuationData = {
|
|
370
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({provider: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), board_approval_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), stockholder_approval_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), comments: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(damlTypes.Text)).decoder), price_per_share: exports.OcfMonetary.decoder, effective_date: damlTypes.Time.decoder, valuation_type: exports.OcfValuationType.decoder, }); }),
|
|
371
|
+
encode: function (__typed__) {
|
|
372
|
+
return {
|
|
373
|
+
provider: damlTypes.Optional(damlTypes.Text).encode(__typed__.provider),
|
|
374
|
+
board_approval_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.board_approval_date),
|
|
375
|
+
stockholder_approval_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.stockholder_approval_date),
|
|
376
|
+
comments: damlTypes.Optional(damlTypes.List(damlTypes.Text)).encode(__typed__.comments),
|
|
377
|
+
price_per_share: exports.OcfMonetary.encode(__typed__.price_per_share),
|
|
378
|
+
effective_date: damlTypes.Time.encode(__typed__.effective_date),
|
|
379
|
+
valuation_type: exports.OcfValuationType.encode(__typed__.valuation_type),
|
|
380
|
+
};
|
|
381
|
+
}
|
|
382
|
+
,
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
exports.OcfValuationType = {
|
|
388
|
+
OcfValuationType409A: 'OcfValuationType409A',
|
|
389
|
+
keys: ['OcfValuationType409A',],
|
|
390
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfValuationType.OcfValuationType409A)); }),
|
|
391
|
+
encode: function (__typed__) { return __typed__; },
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
|
|
74
396
|
exports.OcfStockClassConversionRight = {
|
|
75
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({type_: damlTypes.Text.decoder, conversion_mechanism: exports.OcfConversionMechanism.decoder, conversion_trigger: exports.OcfConversionTrigger.decoder, converts_to_stock_class_id: damlTypes.Text.decoder,
|
|
397
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({type_: damlTypes.Text.decoder, conversion_mechanism: exports.OcfConversionMechanism.decoder, conversion_trigger: exports.OcfConversionTrigger.decoder, converts_to_stock_class_id: damlTypes.Text.decoder, ratio: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfRatio).decoder), percent_of_capitalization: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), conversion_price: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfMonetary).decoder), reference_share_price: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfMonetary).decoder), reference_valuation_price_per_share: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfMonetary).decoder), discount_rate: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), valuation_cap: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfMonetary).decoder), floor_price_per_share: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfMonetary).decoder), ceiling_price_per_share: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfMonetary).decoder), custom_description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), expires_at: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), }); }),
|
|
76
398
|
encode: function (__typed__) {
|
|
77
399
|
return {
|
|
78
400
|
type_: damlTypes.Text.encode(__typed__.type_),
|
|
79
401
|
conversion_mechanism: exports.OcfConversionMechanism.encode(__typed__.conversion_mechanism),
|
|
80
402
|
conversion_trigger: exports.OcfConversionTrigger.encode(__typed__.conversion_trigger),
|
|
81
403
|
converts_to_stock_class_id: damlTypes.Text.encode(__typed__.converts_to_stock_class_id),
|
|
82
|
-
|
|
404
|
+
ratio: damlTypes.Optional(exports.OcfRatio).encode(__typed__.ratio),
|
|
405
|
+
percent_of_capitalization: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.percent_of_capitalization),
|
|
83
406
|
conversion_price: damlTypes.Optional(exports.OcfMonetary).encode(__typed__.conversion_price),
|
|
407
|
+
reference_share_price: damlTypes.Optional(exports.OcfMonetary).encode(__typed__.reference_share_price),
|
|
408
|
+
reference_valuation_price_per_share: damlTypes.Optional(exports.OcfMonetary).encode(__typed__.reference_valuation_price_per_share),
|
|
409
|
+
discount_rate: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.discount_rate),
|
|
410
|
+
valuation_cap: damlTypes.Optional(exports.OcfMonetary).encode(__typed__.valuation_cap),
|
|
411
|
+
floor_price_per_share: damlTypes.Optional(exports.OcfMonetary).encode(__typed__.floor_price_per_share),
|
|
412
|
+
ceiling_price_per_share: damlTypes.Optional(exports.OcfMonetary).encode(__typed__.ceiling_price_per_share),
|
|
413
|
+
custom_description: damlTypes.Optional(damlTypes.Text).encode(__typed__.custom_description),
|
|
84
414
|
expires_at: damlTypes.Optional(damlTypes.Time).encode(__typed__.expires_at),
|
|
85
415
|
};
|
|
86
416
|
}
|
|
@@ -89,6 +419,19 @@ exports.OcfStockClassConversionRight = {
|
|
|
89
419
|
|
|
90
420
|
|
|
91
421
|
|
|
422
|
+
exports.OcfRatio = {
|
|
423
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({numerator: damlTypes.Numeric(10).decoder, denominator: damlTypes.Numeric(10).decoder, }); }),
|
|
424
|
+
encode: function (__typed__) {
|
|
425
|
+
return {
|
|
426
|
+
numerator: damlTypes.Numeric(10).encode(__typed__.numerator),
|
|
427
|
+
denominator: damlTypes.Numeric(10).encode(__typed__.denominator),
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
,
|
|
431
|
+
};
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
|
|
92
435
|
exports.OcfConversionTrigger = {
|
|
93
436
|
OcfConversionTriggerAutomatic: 'OcfConversionTriggerAutomatic',
|
|
94
437
|
OcfConversionTriggerOptional: 'OcfConversionTriggerOptional',
|
|
@@ -101,10 +444,15 @@ exports.OcfConversionTrigger = {
|
|
|
101
444
|
|
|
102
445
|
exports.OcfConversionMechanism = {
|
|
103
446
|
OcfConversionMechanismRatioConversion: 'OcfConversionMechanismRatioConversion',
|
|
104
|
-
|
|
447
|
+
OcfConversionMechanismPercentCapitalizationConversion: 'OcfConversionMechanismPercentCapitalizationConversion',
|
|
105
448
|
OcfConversionMechanismFixedAmountConversion: 'OcfConversionMechanismFixedAmountConversion',
|
|
106
|
-
|
|
107
|
-
|
|
449
|
+
OcfConversionMechanismValuationBasedConversion: 'OcfConversionMechanismValuationBasedConversion',
|
|
450
|
+
OcfConversionMechanismSharePriceBasedConversion: 'OcfConversionMechanismSharePriceBasedConversion',
|
|
451
|
+
OcfConversionMechanismSAFEConversion: 'OcfConversionMechanismSAFEConversion',
|
|
452
|
+
OcfConversionMechanismNoteConversion: 'OcfConversionMechanismNoteConversion',
|
|
453
|
+
OcfConversionMechanismCustomConversion: 'OcfConversionMechanismCustomConversion',
|
|
454
|
+
keys: ['OcfConversionMechanismRatioConversion','OcfConversionMechanismPercentCapitalizationConversion','OcfConversionMechanismFixedAmountConversion','OcfConversionMechanismValuationBasedConversion','OcfConversionMechanismSharePriceBasedConversion','OcfConversionMechanismSAFEConversion','OcfConversionMechanismNoteConversion','OcfConversionMechanismCustomConversion',],
|
|
455
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfConversionMechanism.OcfConversionMechanismRatioConversion), jtv.constant(exports.OcfConversionMechanism.OcfConversionMechanismPercentCapitalizationConversion), jtv.constant(exports.OcfConversionMechanism.OcfConversionMechanismFixedAmountConversion), jtv.constant(exports.OcfConversionMechanism.OcfConversionMechanismValuationBasedConversion), jtv.constant(exports.OcfConversionMechanism.OcfConversionMechanismSharePriceBasedConversion), jtv.constant(exports.OcfConversionMechanism.OcfConversionMechanismSAFEConversion), jtv.constant(exports.OcfConversionMechanism.OcfConversionMechanismNoteConversion), jtv.constant(exports.OcfConversionMechanism.OcfConversionMechanismCustomConversion)); }),
|
|
108
456
|
encode: function (__typed__) { return __typed__; },
|
|
109
457
|
};
|
|
110
458
|
|
|
@@ -219,3 +567,169 @@ exports.OcfEmailType = {
|
|
|
219
567
|
encode: function (__typed__) { return __typed__; },
|
|
220
568
|
};
|
|
221
569
|
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
exports.OcfWarrantIssuanceData = {
|
|
573
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({quantity: damlTypes.Numeric(10).decoder, exercise_price: exports.OcfMonetary.decoder, purchase_price: exports.OcfMonetary.decoder, exercise_triggers: damlTypes.List(exports.OcfConversionTrigger).decoder, warrant_expiration_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), vesting_terms_id: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), comments: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(damlTypes.Text)).decoder), }); }),
|
|
574
|
+
encode: function (__typed__) {
|
|
575
|
+
return {
|
|
576
|
+
quantity: damlTypes.Numeric(10).encode(__typed__.quantity),
|
|
577
|
+
exercise_price: exports.OcfMonetary.encode(__typed__.exercise_price),
|
|
578
|
+
purchase_price: exports.OcfMonetary.encode(__typed__.purchase_price),
|
|
579
|
+
exercise_triggers: damlTypes.List(exports.OcfConversionTrigger).encode(__typed__.exercise_triggers),
|
|
580
|
+
warrant_expiration_date: damlTypes.Optional(damlTypes.Time).encode(__typed__.warrant_expiration_date),
|
|
581
|
+
vesting_terms_id: damlTypes.Optional(damlTypes.Text).encode(__typed__.vesting_terms_id),
|
|
582
|
+
comments: damlTypes.Optional(damlTypes.List(damlTypes.Text)).encode(__typed__.comments),
|
|
583
|
+
};
|
|
584
|
+
}
|
|
585
|
+
,
|
|
586
|
+
};
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
exports.OcfConvertibleIssuanceData = {
|
|
591
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({investment_amount: exports.OcfMonetary.decoder, convertible_type: exports.OcfConvertibleType.decoder, conversion_triggers: damlTypes.List(exports.OcfConversionTrigger).decoder, seniority: damlTypes.Int.decoder, pro_rata: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), comments: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(damlTypes.Text)).decoder), }); }),
|
|
592
|
+
encode: function (__typed__) {
|
|
593
|
+
return {
|
|
594
|
+
investment_amount: exports.OcfMonetary.encode(__typed__.investment_amount),
|
|
595
|
+
convertible_type: exports.OcfConvertibleType.encode(__typed__.convertible_type),
|
|
596
|
+
conversion_triggers: damlTypes.List(exports.OcfConversionTrigger).encode(__typed__.conversion_triggers),
|
|
597
|
+
seniority: damlTypes.Int.encode(__typed__.seniority),
|
|
598
|
+
pro_rata: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.pro_rata),
|
|
599
|
+
comments: damlTypes.Optional(damlTypes.List(damlTypes.Text)).encode(__typed__.comments),
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
,
|
|
603
|
+
};
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
exports.OcfConvertibleType = {
|
|
608
|
+
OcfConvertibleNote: 'OcfConvertibleNote',
|
|
609
|
+
OcfConvertibleSafe: 'OcfConvertibleSafe',
|
|
610
|
+
OcfConvertibleSecurity: 'OcfConvertibleSecurity',
|
|
611
|
+
keys: ['OcfConvertibleNote','OcfConvertibleSafe','OcfConvertibleSecurity',],
|
|
612
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfConvertibleType.OcfConvertibleNote), jtv.constant(exports.OcfConvertibleType.OcfConvertibleSafe), jtv.constant(exports.OcfConvertibleType.OcfConvertibleSecurity)); }),
|
|
613
|
+
encode: function (__typed__) { return __typed__; },
|
|
614
|
+
};
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
exports.OcfParentSecurityType = {
|
|
619
|
+
OcfParentStockPlan: 'OcfParentStockPlan',
|
|
620
|
+
OcfParentStock: 'OcfParentStock',
|
|
621
|
+
OcfParentWarrant: 'OcfParentWarrant',
|
|
622
|
+
OcfParentConvertible: 'OcfParentConvertible',
|
|
623
|
+
keys: ['OcfParentStockPlan','OcfParentStock','OcfParentWarrant','OcfParentConvertible',],
|
|
624
|
+
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)); }),
|
|
625
|
+
encode: function (__typed__) { return __typed__; },
|
|
626
|
+
};
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
exports.OcfOptionType = {
|
|
631
|
+
OcfOptionNSO: 'OcfOptionNSO',
|
|
632
|
+
OcfOptionISO: 'OcfOptionISO',
|
|
633
|
+
OcfOptionIntl: 'OcfOptionIntl',
|
|
634
|
+
keys: ['OcfOptionNSO','OcfOptionISO','OcfOptionIntl',],
|
|
635
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfOptionType.OcfOptionNSO), jtv.constant(exports.OcfOptionType.OcfOptionISO), jtv.constant(exports.OcfOptionType.OcfOptionIntl)); }),
|
|
636
|
+
encode: function (__typed__) { return __typed__; },
|
|
637
|
+
};
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
exports.OcfAccrualPeriodType = {
|
|
642
|
+
OcfAccrualDaily: 'OcfAccrualDaily',
|
|
643
|
+
OcfAccrualMonthly: 'OcfAccrualMonthly',
|
|
644
|
+
OcfAccrualQuarterly: 'OcfAccrualQuarterly',
|
|
645
|
+
OcfAccrualSemiAnnual: 'OcfAccrualSemiAnnual',
|
|
646
|
+
OcfAccrualAnnual: 'OcfAccrualAnnual',
|
|
647
|
+
keys: ['OcfAccrualDaily','OcfAccrualMonthly','OcfAccrualQuarterly','OcfAccrualSemiAnnual','OcfAccrualAnnual',],
|
|
648
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfAccrualPeriodType.OcfAccrualDaily), jtv.constant(exports.OcfAccrualPeriodType.OcfAccrualMonthly), jtv.constant(exports.OcfAccrualPeriodType.OcfAccrualQuarterly), jtv.constant(exports.OcfAccrualPeriodType.OcfAccrualSemiAnnual), jtv.constant(exports.OcfAccrualPeriodType.OcfAccrualAnnual)); }),
|
|
649
|
+
encode: function (__typed__) { return __typed__; },
|
|
650
|
+
};
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
exports.OcfInterestRate = {
|
|
655
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({rate: damlTypes.Numeric(10).decoder, payout_type: exports.OcfInterestPayoutType.decoder, compounding_type: exports.OcfCompoundingType.decoder, day_count_type: exports.OcfDayCountType.decoder, }); }),
|
|
656
|
+
encode: function (__typed__) {
|
|
657
|
+
return {
|
|
658
|
+
rate: damlTypes.Numeric(10).encode(__typed__.rate),
|
|
659
|
+
payout_type: exports.OcfInterestPayoutType.encode(__typed__.payout_type),
|
|
660
|
+
compounding_type: exports.OcfCompoundingType.encode(__typed__.compounding_type),
|
|
661
|
+
day_count_type: exports.OcfDayCountType.encode(__typed__.day_count_type),
|
|
662
|
+
};
|
|
663
|
+
}
|
|
664
|
+
,
|
|
665
|
+
};
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
exports.OcfFileType = {
|
|
670
|
+
OcfManifestFile: 'OcfManifestFile',
|
|
671
|
+
OcfStakeholdersFile: 'OcfStakeholdersFile',
|
|
672
|
+
OcfStockClassesFile: 'OcfStockClassesFile',
|
|
673
|
+
OcfStockLegendTemplatesFile: 'OcfStockLegendTemplatesFile',
|
|
674
|
+
OcfStockPlansFile: 'OcfStockPlansFile',
|
|
675
|
+
OcfTransactionsFile: 'OcfTransactionsFile',
|
|
676
|
+
OcfValuationsFile: 'OcfValuationsFile',
|
|
677
|
+
OcfVestingTermsFile: 'OcfVestingTermsFile',
|
|
678
|
+
keys: ['OcfManifestFile','OcfStakeholdersFile','OcfStockClassesFile','OcfStockLegendTemplatesFile','OcfStockPlansFile','OcfTransactionsFile','OcfValuationsFile','OcfVestingTermsFile',],
|
|
679
|
+
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)); }),
|
|
680
|
+
encode: function (__typed__) { return __typed__; },
|
|
681
|
+
};
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
exports.OcfRoundingType = {
|
|
686
|
+
OcfRoundingCeiling: 'OcfRoundingCeiling',
|
|
687
|
+
OcfRoundingFloor: 'OcfRoundingFloor',
|
|
688
|
+
OcfRoundingNormal: 'OcfRoundingNormal',
|
|
689
|
+
keys: ['OcfRoundingCeiling','OcfRoundingFloor','OcfRoundingNormal',],
|
|
690
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfRoundingType.OcfRoundingCeiling), jtv.constant(exports.OcfRoundingType.OcfRoundingFloor), jtv.constant(exports.OcfRoundingType.OcfRoundingNormal)); }),
|
|
691
|
+
encode: function (__typed__) { return __typed__; },
|
|
692
|
+
};
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
exports.OcfDayCountType = {
|
|
697
|
+
OcfDayCountActual365: 'OcfDayCountActual365',
|
|
698
|
+
OcfDayCount30_360: 'OcfDayCount30_360',
|
|
699
|
+
keys: ['OcfDayCountActual365','OcfDayCount30_360',],
|
|
700
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfDayCountType.OcfDayCountActual365), jtv.constant(exports.OcfDayCountType.OcfDayCount30_360)); }),
|
|
701
|
+
encode: function (__typed__) { return __typed__; },
|
|
702
|
+
};
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
exports.OcfCompoundingType = {
|
|
707
|
+
OcfCompounding: 'OcfCompounding',
|
|
708
|
+
OcfSimple: 'OcfSimple',
|
|
709
|
+
keys: ['OcfCompounding','OcfSimple',],
|
|
710
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfCompoundingType.OcfCompounding), jtv.constant(exports.OcfCompoundingType.OcfSimple)); }),
|
|
711
|
+
encode: function (__typed__) { return __typed__; },
|
|
712
|
+
};
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
exports.OcfInterestPayoutType = {
|
|
717
|
+
OcfInterestPayoutDeferred: 'OcfInterestPayoutDeferred',
|
|
718
|
+
OcfInterestPayoutCash: 'OcfInterestPayoutCash',
|
|
719
|
+
keys: ['OcfInterestPayoutDeferred','OcfInterestPayoutCash',],
|
|
720
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfInterestPayoutType.OcfInterestPayoutDeferred), jtv.constant(exports.OcfInterestPayoutType.OcfInterestPayoutCash)); }),
|
|
721
|
+
encode: function (__typed__) { return __typed__; },
|
|
722
|
+
};
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
exports.OcfPhoneType = {
|
|
727
|
+
OcfPhoneHome: 'OcfPhoneHome',
|
|
728
|
+
OcfPhoneMobile: 'OcfPhoneMobile',
|
|
729
|
+
OcfPhoneBusiness: 'OcfPhoneBusiness',
|
|
730
|
+
OcfPhoneOther: 'OcfPhoneOther',
|
|
731
|
+
keys: ['OcfPhoneHome','OcfPhoneMobile','OcfPhoneBusiness','OcfPhoneOther',],
|
|
732
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfPhoneType.OcfPhoneHome), jtv.constant(exports.OcfPhoneType.OcfPhoneMobile), jtv.constant(exports.OcfPhoneType.OcfPhoneBusiness), jtv.constant(exports.OcfPhoneType.OcfPhoneOther)); }),
|
|
733
|
+
encode: function (__typed__) { return __typed__; },
|
|
734
|
+
};
|
|
735
|
+
|
|
@@ -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'));
|