@fairmint/open-captable-protocol-daml-js 0.1.3 → 0.2.1

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 (30) hide show
  1. package/generated/ocp-factory-contract-id.json +4 -4
  2. package/lib/Fairmint/OpenCapTable/Document/index.d.ts +1 -0
  3. package/lib/Fairmint/OpenCapTable/Document/index.js +8 -0
  4. package/lib/Fairmint/OpenCapTable/Document/module.d.ts +135 -0
  5. package/lib/Fairmint/OpenCapTable/Document/module.js +159 -0
  6. package/lib/Fairmint/OpenCapTable/Issuer/module.d.ts +63 -424
  7. package/lib/Fairmint/OpenCapTable/Issuer/module.js +86 -614
  8. package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.d.ts +3 -6
  9. package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.js +6 -9
  10. package/lib/Fairmint/OpenCapTable/OcpFactory/module.d.ts +1 -1
  11. package/lib/Fairmint/OpenCapTable/OcpFactory/module.js +2 -2
  12. package/lib/Fairmint/OpenCapTable/Stakeholder/module.d.ts +83 -83
  13. package/lib/Fairmint/OpenCapTable/Stakeholder/module.js +72 -102
  14. package/lib/Fairmint/OpenCapTable/StockClass/module.d.ts +118 -403
  15. package/lib/Fairmint/OpenCapTable/StockClass/module.js +103 -573
  16. package/lib/Fairmint/OpenCapTable/StockLegendTemplate/module.d.ts +19 -11
  17. package/lib/Fairmint/OpenCapTable/StockLegendTemplate/module.js +27 -17
  18. package/lib/Fairmint/OpenCapTable/StockPlan/module.d.ts +24 -403
  19. package/lib/Fairmint/OpenCapTable/StockPlan/module.js +29 -587
  20. package/lib/Fairmint/OpenCapTable/Types/module.d.ts +8 -565
  21. package/lib/Fairmint/OpenCapTable/Types/module.js +7 -582
  22. package/lib/Fairmint/OpenCapTable/Valuation/module.d.ts +34 -13
  23. package/lib/Fairmint/OpenCapTable/Valuation/module.js +40 -19
  24. package/lib/Fairmint/OpenCapTable/VestingTerms/module.d.ts +98 -11
  25. package/lib/Fairmint/OpenCapTable/VestingTerms/module.js +117 -17
  26. package/lib/Fairmint/OpenCapTable/index.d.ts +2 -0
  27. package/lib/Fairmint/OpenCapTable/index.js +2 -0
  28. package/lib/Fairmint/OpenCapTableReports/CompanyValuationReport/module.js +1 -1
  29. package/lib/Fairmint/OpenCapTableReports/ReportsFactory/module.js +1 -1
  30. package/package.json +3 -3
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "mainnet": {
3
- "ocpFactoryContractId": "00ea6f9f52a5c4cf9ed298863e39c7769edbbdd0d21f5cddc1fe9281bc0d751bccca1112202de3062c4ee7c6cb1db6b53dd6fecc851307e681da9c9a2834b1bf6f3dab0817",
4
- "templateId": "a22b30e9890713436459a82beb484343b723f78de6c9b77eca7b23fdf71c9e2a:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
3
+ "ocpFactoryContractId": "0050f165743debe2a5ae9d185237d8aabe3381c6515169517b4c96d4c68b754e13ca111220f9dd514c0f93d333095bab80f4c12a29750de3c6c0ffec5d36c9354c1fd69c4a",
4
+ "templateId": "d5481975b2907e9204ea4b43f52d59c57c4897a116b80e8f1e74128db96c0581:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
5
5
  },
6
6
  "devnet": {
7
- "ocpFactoryContractId": "00a4d3c48087e1a1cd2d5d4b47288c1ece94079ed922b0191bfd7b75a98a890b80ca11122024ff4ba490fefb6b5fb63bb2245f7ac096639eb9d360d49bd467da0fed046578",
8
- "templateId": "a22b30e9890713436459a82beb484343b723f78de6c9b77eca7b23fdf71c9e2a:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
7
+ "ocpFactoryContractId": "00ca2497ecf4db2527891cf34cf7749b2966b2e54baa365f6adad546c23be2e7d2ca111220074d281f707dfb90a8ba27a24fd30d75757381703731b49c25f2de9c39420291",
8
+ "templateId": "d5481975b2907e9204ea4b43f52d59c57c4897a116b80e8f1e74128db96c0581:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
9
9
  }
10
10
  }
@@ -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/Document.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 pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../DA/Internal/Template';
11
+
12
+ import * as Fairmint_OpenCapTable_Types from '../../../Fairmint/OpenCapTable/Types/module';
13
+
14
+ export declare type ArchiveByIssuer = {
15
+ };
16
+
17
+ export declare const ArchiveByIssuer:
18
+ damlTypes.Serializable<ArchiveByIssuer> & {
19
+ }
20
+ ;
21
+
22
+
23
+ export declare type Document = {
24
+ context: Fairmint_OpenCapTable_Types.Context;
25
+ document_data: OcfDocument;
26
+ };
27
+
28
+ export declare interface DocumentInterface {
29
+ Archive: damlTypes.Choice<Document, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Document, undefined>>;
30
+ ArchiveByIssuer: damlTypes.Choice<Document, ArchiveByIssuer, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Document, undefined>>;
31
+ }
32
+ export declare const Document:
33
+ damlTypes.Template<Document, undefined, '#OpenCapTable-v17:Fairmint.OpenCapTable.Document:Document'> &
34
+ damlTypes.ToInterface<Document, never> &
35
+ DocumentInterface;
36
+
37
+ export declare namespace Document {
38
+ export type CreateEvent = damlLedger.CreateEvent<Document, undefined, typeof Document.templateId>
39
+ export type ArchiveEvent = damlLedger.ArchiveEvent<Document, typeof Document.templateId>
40
+ export type Event = damlLedger.Event<Document, undefined, typeof Document.templateId>
41
+ export type QueryResult = damlLedger.QueryResult<Document, undefined, typeof Document.templateId>
42
+ }
43
+
44
+
45
+
46
+ export declare type OcfObjectType =
47
+ | 'OcfObjIssuer'
48
+ | 'OcfObjStakeholder'
49
+ | 'OcfObjStockClass'
50
+ | 'OcfObjStockLegendTemplate'
51
+ | 'OcfObjStockPlan'
52
+ | 'OcfObjValuation'
53
+ | 'OcfObjVestingTerms'
54
+ | 'OcfObjFinancing'
55
+ | 'OcfObjDocument'
56
+ | 'OcfObjCeStakeholderRelationship'
57
+ | 'OcfObjCeStakeholderStatus'
58
+ | 'OcfObjTxIssuerAuthorizedSharesAdjustment'
59
+ | 'OcfObjTxStockClassConversionRatioAdjustment'
60
+ | 'OcfObjTxStockClassAuthorizedSharesAdjustment'
61
+ | 'OcfObjTxStockClassSplit'
62
+ | 'OcfObjTxStockPlanPoolAdjustment'
63
+ | 'OcfObjTxStockPlanReturnToPool'
64
+ | 'OcfObjTxConvertibleAcceptance'
65
+ | 'OcfObjTxConvertibleCancellation'
66
+ | 'OcfObjTxConvertibleConversion'
67
+ | 'OcfObjTxConvertibleIssuance'
68
+ | 'OcfObjTxConvertibleRetraction'
69
+ | 'OcfObjTxConvertibleTransfer'
70
+ | 'OcfObjTxEquityCompensationAcceptance'
71
+ | 'OcfObjTxEquityCompensationCancellation'
72
+ | 'OcfObjTxEquityCompensationExercise'
73
+ | 'OcfObjTxEquityCompensationIssuance'
74
+ | 'OcfObjTxEquityCompensationRelease'
75
+ | 'OcfObjTxEquityCompensationRetraction'
76
+ | 'OcfObjTxEquityCompensationTransfer'
77
+ | 'OcfObjTxEquityCompensationRepricing'
78
+ | 'OcfObjTxPlanSecurityAcceptance'
79
+ | 'OcfObjTxPlanSecurityCancellation'
80
+ | 'OcfObjTxPlanSecurityExercise'
81
+ | 'OcfObjTxPlanSecurityIssuance'
82
+ | 'OcfObjTxPlanSecurityRelease'
83
+ | 'OcfObjTxPlanSecurityRetraction'
84
+ | 'OcfObjTxPlanSecurityTransfer'
85
+ | 'OcfObjTxStockAcceptance'
86
+ | 'OcfObjTxStockCancellation'
87
+ | 'OcfObjTxStockConversion'
88
+ | 'OcfObjTxStockIssuance'
89
+ | 'OcfObjTxStockReissuance'
90
+ | 'OcfObjTxStockConsolidation'
91
+ | 'OcfObjTxStockRepurchase'
92
+ | 'OcfObjTxStockRetraction'
93
+ | 'OcfObjTxStockTransfer'
94
+ | 'OcfObjTxWarrantAcceptance'
95
+ | 'OcfObjTxWarrantCancellation'
96
+ | 'OcfObjTxWarrantExercise'
97
+ | 'OcfObjTxWarrantIssuance'
98
+ | 'OcfObjTxWarrantRetraction'
99
+ | 'OcfObjTxWarrantTransfer'
100
+ | 'OcfObjTxVestingAcceleration'
101
+ | 'OcfObjTxVestingStart'
102
+ | 'OcfObjTxVestingEvent'
103
+ ;
104
+
105
+ export declare const OcfObjectType:
106
+ damlTypes.Serializable<OcfObjectType> & {
107
+ }
108
+ & { readonly keys: OcfObjectType[] } & { readonly [e in OcfObjectType]: e }
109
+ ;
110
+
111
+
112
+ export declare type OcfObjectReference = {
113
+ object_type: OcfObjectType;
114
+ object_id: string;
115
+ };
116
+
117
+ export declare const OcfObjectReference:
118
+ damlTypes.Serializable<OcfObjectReference> & {
119
+ }
120
+ ;
121
+
122
+
123
+ export declare type OcfDocument = {
124
+ path: damlTypes.Optional<string>;
125
+ uri: damlTypes.Optional<string>;
126
+ md5: string;
127
+ related_objects: damlTypes.Optional<OcfObjectReference[]>;
128
+ comments: damlTypes.Optional<string[]>;
129
+ };
130
+
131
+ export declare const OcfDocument:
132
+ damlTypes.Serializable<OcfDocument> & {
133
+ }
134
+ ;
135
+
@@ -0,0 +1,159 @@
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 pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../DA/Internal/Template');
16
+
17
+ var Fairmint_OpenCapTable_Types = require('../../../Fairmint/OpenCapTable/Types/module');
18
+
19
+
20
+ exports.ArchiveByIssuer = {
21
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
22
+ encode: function (__typed__) {
23
+ return {
24
+ };
25
+ }
26
+ ,
27
+ };
28
+
29
+
30
+
31
+ exports.Document = damlTypes.assembleTemplate(
32
+ {
33
+ templateId: '#OpenCapTable-v17:Fairmint.OpenCapTable.Document:Document',
34
+ keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
35
+ keyEncode: function () { throw 'EncodeError'; },
36
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({context: Fairmint_OpenCapTable_Types.Context.decoder, document_data: exports.OcfDocument.decoder, }); }),
37
+ encode: function (__typed__) {
38
+ return {
39
+ context: Fairmint_OpenCapTable_Types.Context.encode(__typed__.context),
40
+ document_data: exports.OcfDocument.encode(__typed__.document_data),
41
+ };
42
+ }
43
+ ,
44
+ Archive: {
45
+ template: function () { return exports.Document; },
46
+ choiceName: 'Archive',
47
+ argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
48
+ argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
49
+ resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
50
+ resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
51
+ },
52
+ ArchiveByIssuer: {
53
+ template: function () { return exports.Document; },
54
+ choiceName: 'ArchiveByIssuer',
55
+ argumentDecoder: damlTypes.lazyMemo(function () { return exports.ArchiveByIssuer.decoder; }),
56
+ argumentEncode: function (__typed__) { return exports.ArchiveByIssuer.encode(__typed__); },
57
+ resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
58
+ resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
59
+ },
60
+ }
61
+
62
+ );
63
+
64
+
65
+ damlTypes.registerTemplate(exports.Document, ['d5481975b2907e9204ea4b43f52d59c57c4897a116b80e8f1e74128db96c0581', '#OpenCapTable-v17']);
66
+
67
+
68
+
69
+ exports.OcfObjectType = {
70
+ OcfObjIssuer: 'OcfObjIssuer',
71
+ OcfObjStakeholder: 'OcfObjStakeholder',
72
+ OcfObjStockClass: 'OcfObjStockClass',
73
+ OcfObjStockLegendTemplate: 'OcfObjStockLegendTemplate',
74
+ OcfObjStockPlan: 'OcfObjStockPlan',
75
+ OcfObjValuation: 'OcfObjValuation',
76
+ OcfObjVestingTerms: 'OcfObjVestingTerms',
77
+ OcfObjFinancing: 'OcfObjFinancing',
78
+ OcfObjDocument: 'OcfObjDocument',
79
+ OcfObjCeStakeholderRelationship: 'OcfObjCeStakeholderRelationship',
80
+ OcfObjCeStakeholderStatus: 'OcfObjCeStakeholderStatus',
81
+ OcfObjTxIssuerAuthorizedSharesAdjustment: 'OcfObjTxIssuerAuthorizedSharesAdjustment',
82
+ OcfObjTxStockClassConversionRatioAdjustment: 'OcfObjTxStockClassConversionRatioAdjustment',
83
+ OcfObjTxStockClassAuthorizedSharesAdjustment: 'OcfObjTxStockClassAuthorizedSharesAdjustment',
84
+ OcfObjTxStockClassSplit: 'OcfObjTxStockClassSplit',
85
+ OcfObjTxStockPlanPoolAdjustment: 'OcfObjTxStockPlanPoolAdjustment',
86
+ OcfObjTxStockPlanReturnToPool: 'OcfObjTxStockPlanReturnToPool',
87
+ OcfObjTxConvertibleAcceptance: 'OcfObjTxConvertibleAcceptance',
88
+ OcfObjTxConvertibleCancellation: 'OcfObjTxConvertibleCancellation',
89
+ OcfObjTxConvertibleConversion: 'OcfObjTxConvertibleConversion',
90
+ OcfObjTxConvertibleIssuance: 'OcfObjTxConvertibleIssuance',
91
+ OcfObjTxConvertibleRetraction: 'OcfObjTxConvertibleRetraction',
92
+ OcfObjTxConvertibleTransfer: 'OcfObjTxConvertibleTransfer',
93
+ OcfObjTxEquityCompensationAcceptance: 'OcfObjTxEquityCompensationAcceptance',
94
+ OcfObjTxEquityCompensationCancellation: 'OcfObjTxEquityCompensationCancellation',
95
+ OcfObjTxEquityCompensationExercise: 'OcfObjTxEquityCompensationExercise',
96
+ OcfObjTxEquityCompensationIssuance: 'OcfObjTxEquityCompensationIssuance',
97
+ OcfObjTxEquityCompensationRelease: 'OcfObjTxEquityCompensationRelease',
98
+ OcfObjTxEquityCompensationRetraction: 'OcfObjTxEquityCompensationRetraction',
99
+ OcfObjTxEquityCompensationTransfer: 'OcfObjTxEquityCompensationTransfer',
100
+ OcfObjTxEquityCompensationRepricing: 'OcfObjTxEquityCompensationRepricing',
101
+ OcfObjTxPlanSecurityAcceptance: 'OcfObjTxPlanSecurityAcceptance',
102
+ OcfObjTxPlanSecurityCancellation: 'OcfObjTxPlanSecurityCancellation',
103
+ OcfObjTxPlanSecurityExercise: 'OcfObjTxPlanSecurityExercise',
104
+ OcfObjTxPlanSecurityIssuance: 'OcfObjTxPlanSecurityIssuance',
105
+ OcfObjTxPlanSecurityRelease: 'OcfObjTxPlanSecurityRelease',
106
+ OcfObjTxPlanSecurityRetraction: 'OcfObjTxPlanSecurityRetraction',
107
+ OcfObjTxPlanSecurityTransfer: 'OcfObjTxPlanSecurityTransfer',
108
+ OcfObjTxStockAcceptance: 'OcfObjTxStockAcceptance',
109
+ OcfObjTxStockCancellation: 'OcfObjTxStockCancellation',
110
+ OcfObjTxStockConversion: 'OcfObjTxStockConversion',
111
+ OcfObjTxStockIssuance: 'OcfObjTxStockIssuance',
112
+ OcfObjTxStockReissuance: 'OcfObjTxStockReissuance',
113
+ OcfObjTxStockConsolidation: 'OcfObjTxStockConsolidation',
114
+ OcfObjTxStockRepurchase: 'OcfObjTxStockRepurchase',
115
+ OcfObjTxStockRetraction: 'OcfObjTxStockRetraction',
116
+ OcfObjTxStockTransfer: 'OcfObjTxStockTransfer',
117
+ OcfObjTxWarrantAcceptance: 'OcfObjTxWarrantAcceptance',
118
+ OcfObjTxWarrantCancellation: 'OcfObjTxWarrantCancellation',
119
+ OcfObjTxWarrantExercise: 'OcfObjTxWarrantExercise',
120
+ OcfObjTxWarrantIssuance: 'OcfObjTxWarrantIssuance',
121
+ OcfObjTxWarrantRetraction: 'OcfObjTxWarrantRetraction',
122
+ OcfObjTxWarrantTransfer: 'OcfObjTxWarrantTransfer',
123
+ OcfObjTxVestingAcceleration: 'OcfObjTxVestingAcceleration',
124
+ OcfObjTxVestingStart: 'OcfObjTxVestingStart',
125
+ OcfObjTxVestingEvent: 'OcfObjTxVestingEvent',
126
+ keys: ['OcfObjIssuer','OcfObjStakeholder','OcfObjStockClass','OcfObjStockLegendTemplate','OcfObjStockPlan','OcfObjValuation','OcfObjVestingTerms','OcfObjFinancing','OcfObjDocument','OcfObjCeStakeholderRelationship','OcfObjCeStakeholderStatus','OcfObjTxIssuerAuthorizedSharesAdjustment','OcfObjTxStockClassConversionRatioAdjustment','OcfObjTxStockClassAuthorizedSharesAdjustment','OcfObjTxStockClassSplit','OcfObjTxStockPlanPoolAdjustment','OcfObjTxStockPlanReturnToPool','OcfObjTxConvertibleAcceptance','OcfObjTxConvertibleCancellation','OcfObjTxConvertibleConversion','OcfObjTxConvertibleIssuance','OcfObjTxConvertibleRetraction','OcfObjTxConvertibleTransfer','OcfObjTxEquityCompensationAcceptance','OcfObjTxEquityCompensationCancellation','OcfObjTxEquityCompensationExercise','OcfObjTxEquityCompensationIssuance','OcfObjTxEquityCompensationRelease','OcfObjTxEquityCompensationRetraction','OcfObjTxEquityCompensationTransfer','OcfObjTxEquityCompensationRepricing','OcfObjTxPlanSecurityAcceptance','OcfObjTxPlanSecurityCancellation','OcfObjTxPlanSecurityExercise','OcfObjTxPlanSecurityIssuance','OcfObjTxPlanSecurityRelease','OcfObjTxPlanSecurityRetraction','OcfObjTxPlanSecurityTransfer','OcfObjTxStockAcceptance','OcfObjTxStockCancellation','OcfObjTxStockConversion','OcfObjTxStockIssuance','OcfObjTxStockReissuance','OcfObjTxStockConsolidation','OcfObjTxStockRepurchase','OcfObjTxStockRetraction','OcfObjTxStockTransfer','OcfObjTxWarrantAcceptance','OcfObjTxWarrantCancellation','OcfObjTxWarrantExercise','OcfObjTxWarrantIssuance','OcfObjTxWarrantRetraction','OcfObjTxWarrantTransfer','OcfObjTxVestingAcceleration','OcfObjTxVestingStart','OcfObjTxVestingEvent',],
127
+ decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfObjectType.OcfObjIssuer), jtv.constant(exports.OcfObjectType.OcfObjStakeholder), jtv.constant(exports.OcfObjectType.OcfObjStockClass), jtv.constant(exports.OcfObjectType.OcfObjStockLegendTemplate), jtv.constant(exports.OcfObjectType.OcfObjStockPlan), jtv.constant(exports.OcfObjectType.OcfObjValuation), jtv.constant(exports.OcfObjectType.OcfObjVestingTerms), jtv.constant(exports.OcfObjectType.OcfObjFinancing), jtv.constant(exports.OcfObjectType.OcfObjDocument), jtv.constant(exports.OcfObjectType.OcfObjCeStakeholderRelationship), jtv.constant(exports.OcfObjectType.OcfObjCeStakeholderStatus), jtv.constant(exports.OcfObjectType.OcfObjTxIssuerAuthorizedSharesAdjustment), jtv.constant(exports.OcfObjectType.OcfObjTxStockClassConversionRatioAdjustment), jtv.constant(exports.OcfObjectType.OcfObjTxStockClassAuthorizedSharesAdjustment), jtv.constant(exports.OcfObjectType.OcfObjTxStockClassSplit), jtv.constant(exports.OcfObjectType.OcfObjTxStockPlanPoolAdjustment), jtv.constant(exports.OcfObjectType.OcfObjTxStockPlanReturnToPool), jtv.constant(exports.OcfObjectType.OcfObjTxConvertibleAcceptance), jtv.constant(exports.OcfObjectType.OcfObjTxConvertibleCancellation), jtv.constant(exports.OcfObjectType.OcfObjTxConvertibleConversion), jtv.constant(exports.OcfObjectType.OcfObjTxConvertibleIssuance), jtv.constant(exports.OcfObjectType.OcfObjTxConvertibleRetraction), jtv.constant(exports.OcfObjectType.OcfObjTxConvertibleTransfer), jtv.constant(exports.OcfObjectType.OcfObjTxEquityCompensationAcceptance), jtv.constant(exports.OcfObjectType.OcfObjTxEquityCompensationCancellation), jtv.constant(exports.OcfObjectType.OcfObjTxEquityCompensationExercise), jtv.constant(exports.OcfObjectType.OcfObjTxEquityCompensationIssuance), jtv.constant(exports.OcfObjectType.OcfObjTxEquityCompensationRelease), jtv.constant(exports.OcfObjectType.OcfObjTxEquityCompensationRetraction), jtv.constant(exports.OcfObjectType.OcfObjTxEquityCompensationTransfer), jtv.constant(exports.OcfObjectType.OcfObjTxEquityCompensationRepricing), jtv.constant(exports.OcfObjectType.OcfObjTxPlanSecurityAcceptance), jtv.constant(exports.OcfObjectType.OcfObjTxPlanSecurityCancellation), jtv.constant(exports.OcfObjectType.OcfObjTxPlanSecurityExercise), jtv.constant(exports.OcfObjectType.OcfObjTxPlanSecurityIssuance), jtv.constant(exports.OcfObjectType.OcfObjTxPlanSecurityRelease), jtv.constant(exports.OcfObjectType.OcfObjTxPlanSecurityRetraction), jtv.constant(exports.OcfObjectType.OcfObjTxPlanSecurityTransfer), jtv.constant(exports.OcfObjectType.OcfObjTxStockAcceptance), jtv.constant(exports.OcfObjectType.OcfObjTxStockCancellation), jtv.constant(exports.OcfObjectType.OcfObjTxStockConversion), jtv.constant(exports.OcfObjectType.OcfObjTxStockIssuance), jtv.constant(exports.OcfObjectType.OcfObjTxStockReissuance), jtv.constant(exports.OcfObjectType.OcfObjTxStockConsolidation), jtv.constant(exports.OcfObjectType.OcfObjTxStockRepurchase), jtv.constant(exports.OcfObjectType.OcfObjTxStockRetraction), jtv.constant(exports.OcfObjectType.OcfObjTxStockTransfer), jtv.constant(exports.OcfObjectType.OcfObjTxWarrantAcceptance), jtv.constant(exports.OcfObjectType.OcfObjTxWarrantCancellation), jtv.constant(exports.OcfObjectType.OcfObjTxWarrantExercise), jtv.constant(exports.OcfObjectType.OcfObjTxWarrantIssuance), jtv.constant(exports.OcfObjectType.OcfObjTxWarrantRetraction), jtv.constant(exports.OcfObjectType.OcfObjTxWarrantTransfer), jtv.constant(exports.OcfObjectType.OcfObjTxVestingAcceleration), jtv.constant(exports.OcfObjectType.OcfObjTxVestingStart), jtv.constant(exports.OcfObjectType.OcfObjTxVestingEvent)); }),
128
+ encode: function (__typed__) { return __typed__; },
129
+ };
130
+
131
+
132
+
133
+ exports.OcfObjectReference = {
134
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({object_type: exports.OcfObjectType.decoder, object_id: damlTypes.Text.decoder, }); }),
135
+ encode: function (__typed__) {
136
+ return {
137
+ object_type: exports.OcfObjectType.encode(__typed__.object_type),
138
+ object_id: damlTypes.Text.encode(__typed__.object_id),
139
+ };
140
+ }
141
+ ,
142
+ };
143
+
144
+
145
+
146
+ exports.OcfDocument = {
147
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({path: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), uri: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), md5: damlTypes.Text.decoder, related_objects: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(exports.OcfObjectReference)).decoder), comments: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(damlTypes.Text)).decoder), }); }),
148
+ encode: function (__typed__) {
149
+ return {
150
+ path: damlTypes.Optional(damlTypes.Text).encode(__typed__.path),
151
+ uri: damlTypes.Optional(damlTypes.Text).encode(__typed__.uri),
152
+ md5: damlTypes.Text.encode(__typed__.md5),
153
+ related_objects: damlTypes.Optional(damlTypes.List(exports.OcfObjectReference)).encode(__typed__.related_objects),
154
+ comments: damlTypes.Optional(damlTypes.List(damlTypes.Text)).encode(__typed__.comments),
155
+ };
156
+ }
157
+ ,
158
+ };
159
+