@open-captable-protocol/canton 0.2.189 → 0.2.191
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/dist/OcpClient.d.ts +17 -17
- package/dist/OcpClient.d.ts.map +1 -1
- package/dist/OcpClient.js +16 -16
- package/dist/OcpClient.js.map +1 -1
- package/dist/functions/OpenCapTable/capTable/ocfToDaml.d.ts.map +1 -1
- package/dist/functions/OpenCapTable/capTable/ocfToDaml.js +3 -6
- package/dist/functions/OpenCapTable/capTable/ocfToDaml.js.map +1 -1
- package/dist/functions/OpenCapTable/convertibleCancellation/{getConvertibleCancellationEventAsOcf.d.ts → getConvertibleCancellationAsOcf.d.ts} +4 -4
- package/dist/functions/OpenCapTable/convertibleCancellation/getConvertibleCancellationAsOcf.d.ts.map +1 -0
- package/dist/functions/OpenCapTable/convertibleCancellation/{getConvertibleCancellationEventAsOcf.js → getConvertibleCancellationAsOcf.js} +3 -3
- package/dist/functions/OpenCapTable/convertibleCancellation/getConvertibleCancellationAsOcf.js.map +1 -0
- package/dist/functions/OpenCapTable/convertibleCancellation/index.d.ts +1 -1
- package/dist/functions/OpenCapTable/convertibleCancellation/index.d.ts.map +1 -1
- package/dist/functions/OpenCapTable/convertibleCancellation/index.js +1 -1
- package/dist/functions/OpenCapTable/convertibleCancellation/index.js.map +1 -1
- package/dist/functions/OpenCapTable/convertibleConversion/{getConvertibleConversionEventAsOcf.d.ts → getConvertibleConversionAsOcf.d.ts} +4 -4
- package/dist/functions/OpenCapTable/convertibleConversion/getConvertibleConversionAsOcf.d.ts.map +1 -0
- package/dist/functions/OpenCapTable/convertibleConversion/{getConvertibleConversionEventAsOcf.js → getConvertibleConversionAsOcf.js} +3 -3
- package/dist/functions/OpenCapTable/convertibleConversion/getConvertibleConversionAsOcf.js.map +1 -0
- package/dist/functions/OpenCapTable/convertibleConversion/index.d.ts +1 -1
- package/dist/functions/OpenCapTable/convertibleConversion/index.d.ts.map +1 -1
- package/dist/functions/OpenCapTable/convertibleConversion/index.js +1 -1
- package/dist/functions/OpenCapTable/convertibleConversion/index.js.map +1 -1
- package/dist/functions/OpenCapTable/document/createDocument.d.ts.map +1 -1
- package/dist/functions/OpenCapTable/document/createDocument.js +3 -15
- package/dist/functions/OpenCapTable/document/createDocument.js.map +1 -1
- package/dist/functions/OpenCapTable/equityCompensationCancellation/{getEquityCompensationCancellationEventAsOcf.d.ts → getEquityCompensationCancellationAsOcf.d.ts} +4 -4
- package/dist/functions/OpenCapTable/equityCompensationCancellation/getEquityCompensationCancellationAsOcf.d.ts.map +1 -0
- package/dist/functions/OpenCapTable/equityCompensationCancellation/{getEquityCompensationCancellationEventAsOcf.js → getEquityCompensationCancellationAsOcf.js} +3 -3
- package/dist/functions/OpenCapTable/equityCompensationCancellation/getEquityCompensationCancellationAsOcf.js.map +1 -0
- package/dist/functions/OpenCapTable/equityCompensationCancellation/index.d.ts +1 -1
- package/dist/functions/OpenCapTable/equityCompensationCancellation/index.d.ts.map +1 -1
- package/dist/functions/OpenCapTable/equityCompensationCancellation/index.js +1 -1
- package/dist/functions/OpenCapTable/equityCompensationCancellation/index.js.map +1 -1
- package/dist/functions/OpenCapTable/equityCompensationExercise/{getEquityCompensationExerciseEventAsOcf.d.ts → getEquityCompensationExerciseAsOcf.d.ts} +4 -4
- package/dist/functions/OpenCapTable/equityCompensationExercise/getEquityCompensationExerciseAsOcf.d.ts.map +1 -0
- package/dist/functions/OpenCapTable/equityCompensationExercise/{getEquityCompensationExerciseEventAsOcf.js → getEquityCompensationExerciseAsOcf.js} +3 -3
- package/dist/functions/OpenCapTable/equityCompensationExercise/getEquityCompensationExerciseAsOcf.js.map +1 -0
- package/dist/functions/OpenCapTable/equityCompensationExercise/index.d.ts +1 -1
- package/dist/functions/OpenCapTable/equityCompensationExercise/index.d.ts.map +1 -1
- package/dist/functions/OpenCapTable/equityCompensationExercise/index.js +1 -1
- package/dist/functions/OpenCapTable/equityCompensationExercise/index.js.map +1 -1
- package/dist/functions/OpenCapTable/equityCompensationIssuance/{getEquityCompensationIssuanceEventAsOcf.d.ts → getEquityCompensationIssuanceAsOcf.d.ts} +4 -4
- package/dist/functions/OpenCapTable/equityCompensationIssuance/getEquityCompensationIssuanceAsOcf.d.ts.map +1 -0
- package/dist/functions/OpenCapTable/equityCompensationIssuance/{getEquityCompensationIssuanceEventAsOcf.js → getEquityCompensationIssuanceAsOcf.js} +3 -3
- package/dist/functions/OpenCapTable/equityCompensationIssuance/getEquityCompensationIssuanceAsOcf.js.map +1 -0
- package/dist/functions/OpenCapTable/equityCompensationIssuance/index.d.ts +1 -1
- package/dist/functions/OpenCapTable/equityCompensationIssuance/index.d.ts.map +1 -1
- package/dist/functions/OpenCapTable/equityCompensationIssuance/index.js +1 -1
- package/dist/functions/OpenCapTable/equityCompensationIssuance/index.js.map +1 -1
- package/dist/functions/OpenCapTable/issuer/createIssuer.d.ts.map +1 -1
- package/dist/functions/OpenCapTable/issuer/createIssuer.js +3 -7
- package/dist/functions/OpenCapTable/issuer/createIssuer.js.map +1 -1
- package/dist/functions/OpenCapTable/issuerAuthorizedSharesAdjustment/{getIssuerAuthorizedSharesAdjustmentEventAsOcf.d.ts → getIssuerAuthorizedSharesAdjustmentAsOcf.d.ts} +4 -4
- package/dist/functions/OpenCapTable/issuerAuthorizedSharesAdjustment/getIssuerAuthorizedSharesAdjustmentAsOcf.d.ts.map +1 -0
- package/dist/functions/OpenCapTable/issuerAuthorizedSharesAdjustment/{getIssuerAuthorizedSharesAdjustmentEventAsOcf.js → getIssuerAuthorizedSharesAdjustmentAsOcf.js} +3 -3
- package/dist/functions/OpenCapTable/issuerAuthorizedSharesAdjustment/getIssuerAuthorizedSharesAdjustmentAsOcf.js.map +1 -0
- package/dist/functions/OpenCapTable/issuerAuthorizedSharesAdjustment/index.d.ts +1 -1
- package/dist/functions/OpenCapTable/issuerAuthorizedSharesAdjustment/index.d.ts.map +1 -1
- package/dist/functions/OpenCapTable/issuerAuthorizedSharesAdjustment/index.js +1 -1
- package/dist/functions/OpenCapTable/issuerAuthorizedSharesAdjustment/index.js.map +1 -1
- package/dist/functions/OpenCapTable/stakeholder/stakeholderDataToDaml.d.ts.map +1 -1
- package/dist/functions/OpenCapTable/stakeholder/stakeholderDataToDaml.js +3 -7
- package/dist/functions/OpenCapTable/stakeholder/stakeholderDataToDaml.js.map +1 -1
- package/dist/functions/OpenCapTable/stockCancellation/{getStockCancellationEventAsOcf.d.ts → getStockCancellationAsOcf.d.ts} +4 -4
- package/dist/functions/OpenCapTable/stockCancellation/getStockCancellationAsOcf.d.ts.map +1 -0
- package/dist/functions/OpenCapTable/stockCancellation/{getStockCancellationEventAsOcf.js → getStockCancellationAsOcf.js} +3 -3
- package/dist/functions/OpenCapTable/{equityCompensationCancellation/getEquityCompensationCancellationEventAsOcf.js.map → stockCancellation/getStockCancellationAsOcf.js.map} +1 -1
- package/dist/functions/OpenCapTable/stockCancellation/index.d.ts +1 -1
- package/dist/functions/OpenCapTable/stockCancellation/index.d.ts.map +1 -1
- package/dist/functions/OpenCapTable/stockCancellation/index.js +1 -1
- package/dist/functions/OpenCapTable/stockCancellation/index.js.map +1 -1
- package/dist/functions/OpenCapTable/stockClass/stockClassDataToDaml.d.ts.map +1 -1
- package/dist/functions/OpenCapTable/stockClass/stockClassDataToDaml.js +3 -7
- package/dist/functions/OpenCapTable/stockClass/stockClassDataToDaml.js.map +1 -1
- package/dist/functions/OpenCapTable/stockClassAuthorizedSharesAdjustment/{getStockClassAuthorizedSharesAdjustmentEventAsOcf.d.ts → getStockClassAuthorizedSharesAdjustmentAsOcf.d.ts} +4 -4
- package/dist/functions/OpenCapTable/stockClassAuthorizedSharesAdjustment/getStockClassAuthorizedSharesAdjustmentAsOcf.d.ts.map +1 -0
- package/dist/functions/OpenCapTable/stockClassAuthorizedSharesAdjustment/{getStockClassAuthorizedSharesAdjustmentEventAsOcf.js → getStockClassAuthorizedSharesAdjustmentAsOcf.js} +3 -3
- package/dist/functions/OpenCapTable/stockClassAuthorizedSharesAdjustment/getStockClassAuthorizedSharesAdjustmentAsOcf.js.map +1 -0
- package/dist/functions/OpenCapTable/stockClassAuthorizedSharesAdjustment/index.d.ts +1 -1
- package/dist/functions/OpenCapTable/stockClassAuthorizedSharesAdjustment/index.d.ts.map +1 -1
- package/dist/functions/OpenCapTable/stockClassAuthorizedSharesAdjustment/index.js +1 -1
- package/dist/functions/OpenCapTable/stockClassAuthorizedSharesAdjustment/index.js.map +1 -1
- package/dist/functions/OpenCapTable/stockClassConversionRatioAdjustment/{getStockClassConversionRatioAdjustmentEventAsOcf.d.ts → getStockClassConversionRatioAdjustmentAsOcf.d.ts} +4 -4
- package/dist/functions/OpenCapTable/stockClassConversionRatioAdjustment/getStockClassConversionRatioAdjustmentAsOcf.d.ts.map +1 -0
- package/dist/functions/OpenCapTable/stockClassConversionRatioAdjustment/{getStockClassConversionRatioAdjustmentEventAsOcf.js → getStockClassConversionRatioAdjustmentAsOcf.js} +3 -3
- package/dist/functions/OpenCapTable/stockClassConversionRatioAdjustment/getStockClassConversionRatioAdjustmentAsOcf.js.map +1 -0
- package/dist/functions/OpenCapTable/stockClassConversionRatioAdjustment/index.d.ts +1 -1
- package/dist/functions/OpenCapTable/stockClassConversionRatioAdjustment/index.d.ts.map +1 -1
- package/dist/functions/OpenCapTable/stockClassConversionRatioAdjustment/index.js +1 -1
- package/dist/functions/OpenCapTable/stockClassConversionRatioAdjustment/index.js.map +1 -1
- package/dist/functions/OpenCapTable/stockClassSplit/{getStockClassSplitEventAsOcf.d.ts → getStockClassSplitAsOcf.d.ts} +4 -4
- package/dist/functions/OpenCapTable/stockClassSplit/getStockClassSplitAsOcf.d.ts.map +1 -0
- package/dist/functions/OpenCapTable/stockClassSplit/{getStockClassSplitEventAsOcf.js → getStockClassSplitAsOcf.js} +3 -3
- package/dist/functions/OpenCapTable/stockClassSplit/getStockClassSplitAsOcf.js.map +1 -0
- package/dist/functions/OpenCapTable/stockClassSplit/index.d.ts +1 -1
- package/dist/functions/OpenCapTable/stockClassSplit/index.d.ts.map +1 -1
- package/dist/functions/OpenCapTable/stockClassSplit/index.js +1 -1
- package/dist/functions/OpenCapTable/stockClassSplit/index.js.map +1 -1
- package/dist/functions/OpenCapTable/stockConsolidation/{getStockConsolidationEventAsOcf.d.ts → getStockConsolidationAsOcf.d.ts} +4 -4
- package/dist/functions/OpenCapTable/stockConsolidation/getStockConsolidationAsOcf.d.ts.map +1 -0
- package/dist/functions/OpenCapTable/stockConsolidation/{getStockConsolidationEventAsOcf.js → getStockConsolidationAsOcf.js} +3 -3
- package/dist/functions/OpenCapTable/stockConsolidation/getStockConsolidationAsOcf.js.map +1 -0
- package/dist/functions/OpenCapTable/stockConsolidation/index.d.ts +1 -1
- package/dist/functions/OpenCapTable/stockConsolidation/index.d.ts.map +1 -1
- package/dist/functions/OpenCapTable/stockConsolidation/index.js +1 -1
- package/dist/functions/OpenCapTable/stockConsolidation/index.js.map +1 -1
- package/dist/functions/OpenCapTable/stockConversion/{getStockConversionEventAsOcf.d.ts → getStockConversionAsOcf.d.ts} +4 -4
- package/dist/functions/OpenCapTable/stockConversion/getStockConversionAsOcf.d.ts.map +1 -0
- package/dist/functions/OpenCapTable/stockConversion/{getStockConversionEventAsOcf.js → getStockConversionAsOcf.js} +3 -3
- package/dist/functions/OpenCapTable/stockConversion/getStockConversionAsOcf.js.map +1 -0
- package/dist/functions/OpenCapTable/stockConversion/index.d.ts +1 -1
- package/dist/functions/OpenCapTable/stockConversion/index.d.ts.map +1 -1
- package/dist/functions/OpenCapTable/stockConversion/index.js +1 -1
- package/dist/functions/OpenCapTable/stockConversion/index.js.map +1 -1
- package/dist/functions/OpenCapTable/stockIssuance/createStockIssuance.d.ts.map +1 -1
- package/dist/functions/OpenCapTable/stockIssuance/createStockIssuance.js +3 -30
- package/dist/functions/OpenCapTable/stockIssuance/createStockIssuance.js.map +1 -1
- package/dist/functions/OpenCapTable/stockPlanPoolAdjustment/{getStockPlanPoolAdjustmentEventAsOcf.d.ts → getStockPlanPoolAdjustmentAsOcf.d.ts} +4 -4
- package/dist/functions/OpenCapTable/stockPlanPoolAdjustment/getStockPlanPoolAdjustmentAsOcf.d.ts.map +1 -0
- package/dist/functions/OpenCapTable/stockPlanPoolAdjustment/{getStockPlanPoolAdjustmentEventAsOcf.js → getStockPlanPoolAdjustmentAsOcf.js} +3 -3
- package/dist/functions/OpenCapTable/stockPlanPoolAdjustment/getStockPlanPoolAdjustmentAsOcf.js.map +1 -0
- package/dist/functions/OpenCapTable/stockPlanPoolAdjustment/index.d.ts +1 -1
- package/dist/functions/OpenCapTable/stockPlanPoolAdjustment/index.d.ts.map +1 -1
- package/dist/functions/OpenCapTable/stockPlanPoolAdjustment/index.js +1 -1
- package/dist/functions/OpenCapTable/stockPlanPoolAdjustment/index.js.map +1 -1
- package/dist/functions/OpenCapTable/stockReissuance/{getStockReissuanceEventAsOcf.d.ts → getStockReissuanceAsOcf.d.ts} +4 -4
- package/dist/functions/OpenCapTable/stockReissuance/getStockReissuanceAsOcf.d.ts.map +1 -0
- package/dist/functions/OpenCapTable/stockReissuance/{getStockReissuanceEventAsOcf.js → getStockReissuanceAsOcf.js} +3 -3
- package/dist/functions/OpenCapTable/stockReissuance/getStockReissuanceAsOcf.js.map +1 -0
- package/dist/functions/OpenCapTable/stockReissuance/index.d.ts +1 -1
- package/dist/functions/OpenCapTable/stockReissuance/index.d.ts.map +1 -1
- package/dist/functions/OpenCapTable/stockReissuance/index.js +1 -1
- package/dist/functions/OpenCapTable/stockReissuance/index.js.map +1 -1
- package/dist/functions/OpenCapTable/warrantCancellation/{getWarrantCancellationEventAsOcf.d.ts → getWarrantCancellationAsOcf.d.ts} +4 -4
- package/dist/functions/OpenCapTable/warrantCancellation/getWarrantCancellationAsOcf.d.ts.map +1 -0
- package/dist/functions/OpenCapTable/warrantCancellation/{getWarrantCancellationEventAsOcf.js → getWarrantCancellationAsOcf.js} +3 -3
- package/dist/functions/OpenCapTable/warrantCancellation/getWarrantCancellationAsOcf.js.map +1 -0
- package/dist/functions/OpenCapTable/warrantCancellation/index.d.ts +1 -1
- package/dist/functions/OpenCapTable/warrantCancellation/index.d.ts.map +1 -1
- package/dist/functions/OpenCapTable/warrantCancellation/index.js +1 -1
- package/dist/functions/OpenCapTable/warrantCancellation/index.js.map +1 -1
- package/dist/functions/OpenCapTable/warrantExercise/{getWarrantExerciseEventAsOcf.d.ts → getWarrantExerciseAsOcf.d.ts} +4 -4
- package/dist/functions/OpenCapTable/warrantExercise/getWarrantExerciseAsOcf.d.ts.map +1 -0
- package/dist/functions/OpenCapTable/warrantExercise/{getWarrantExerciseEventAsOcf.js → getWarrantExerciseAsOcf.js} +3 -3
- package/dist/functions/OpenCapTable/warrantExercise/getWarrantExerciseAsOcf.js.map +1 -0
- package/dist/functions/OpenCapTable/warrantExercise/index.d.ts +1 -1
- package/dist/functions/OpenCapTable/warrantExercise/index.d.ts.map +1 -1
- package/dist/functions/OpenCapTable/warrantExercise/index.js +1 -1
- package/dist/functions/OpenCapTable/warrantExercise/index.js.map +1 -1
- package/dist/utils/entityValidators.d.ts +144 -0
- package/dist/utils/entityValidators.d.ts.map +1 -0
- package/dist/utils/entityValidators.js +581 -0
- package/dist/utils/entityValidators.js.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/validation.d.ts +19 -25
- package/dist/utils/validation.d.ts.map +1 -1
- package/dist/utils/validation.js +125 -50
- package/dist/utils/validation.js.map +1 -1
- package/package.json +1 -1
- package/dist/functions/OpenCapTable/convertibleCancellation/getConvertibleCancellationEventAsOcf.d.ts.map +0 -1
- package/dist/functions/OpenCapTable/convertibleCancellation/getConvertibleCancellationEventAsOcf.js.map +0 -1
- package/dist/functions/OpenCapTable/convertibleConversion/getConvertibleConversionEventAsOcf.d.ts.map +0 -1
- package/dist/functions/OpenCapTable/convertibleConversion/getConvertibleConversionEventAsOcf.js.map +0 -1
- package/dist/functions/OpenCapTable/equityCompensationCancellation/getEquityCompensationCancellationEventAsOcf.d.ts.map +0 -1
- package/dist/functions/OpenCapTable/equityCompensationExercise/getEquityCompensationExerciseEventAsOcf.d.ts.map +0 -1
- package/dist/functions/OpenCapTable/equityCompensationExercise/getEquityCompensationExerciseEventAsOcf.js.map +0 -1
- package/dist/functions/OpenCapTable/equityCompensationIssuance/getEquityCompensationIssuanceEventAsOcf.d.ts.map +0 -1
- package/dist/functions/OpenCapTable/equityCompensationIssuance/getEquityCompensationIssuanceEventAsOcf.js.map +0 -1
- package/dist/functions/OpenCapTable/issuerAuthorizedSharesAdjustment/getIssuerAuthorizedSharesAdjustmentEventAsOcf.d.ts.map +0 -1
- package/dist/functions/OpenCapTable/issuerAuthorizedSharesAdjustment/getIssuerAuthorizedSharesAdjustmentEventAsOcf.js.map +0 -1
- package/dist/functions/OpenCapTable/stockCancellation/getStockCancellationEventAsOcf.d.ts.map +0 -1
- package/dist/functions/OpenCapTable/stockCancellation/getStockCancellationEventAsOcf.js.map +0 -1
- package/dist/functions/OpenCapTable/stockClassAuthorizedSharesAdjustment/getStockClassAuthorizedSharesAdjustmentEventAsOcf.d.ts.map +0 -1
- package/dist/functions/OpenCapTable/stockClassAuthorizedSharesAdjustment/getStockClassAuthorizedSharesAdjustmentEventAsOcf.js.map +0 -1
- package/dist/functions/OpenCapTable/stockClassConversionRatioAdjustment/getStockClassConversionRatioAdjustmentEventAsOcf.d.ts.map +0 -1
- package/dist/functions/OpenCapTable/stockClassConversionRatioAdjustment/getStockClassConversionRatioAdjustmentEventAsOcf.js.map +0 -1
- package/dist/functions/OpenCapTable/stockClassSplit/getStockClassSplitEventAsOcf.d.ts.map +0 -1
- package/dist/functions/OpenCapTable/stockClassSplit/getStockClassSplitEventAsOcf.js.map +0 -1
- package/dist/functions/OpenCapTable/stockConsolidation/getStockConsolidationEventAsOcf.d.ts.map +0 -1
- package/dist/functions/OpenCapTable/stockConsolidation/getStockConsolidationEventAsOcf.js.map +0 -1
- package/dist/functions/OpenCapTable/stockConversion/getStockConversionEventAsOcf.d.ts.map +0 -1
- package/dist/functions/OpenCapTable/stockConversion/getStockConversionEventAsOcf.js.map +0 -1
- package/dist/functions/OpenCapTable/stockPlanPoolAdjustment/getStockPlanPoolAdjustmentEventAsOcf.d.ts.map +0 -1
- package/dist/functions/OpenCapTable/stockPlanPoolAdjustment/getStockPlanPoolAdjustmentEventAsOcf.js.map +0 -1
- package/dist/functions/OpenCapTable/stockReissuance/getStockReissuanceEventAsOcf.d.ts.map +0 -1
- package/dist/functions/OpenCapTable/stockReissuance/getStockReissuanceEventAsOcf.js.map +0 -1
- package/dist/functions/OpenCapTable/warrantCancellation/getWarrantCancellationEventAsOcf.d.ts.map +0 -1
- package/dist/functions/OpenCapTable/warrantCancellation/getWarrantCancellationEventAsOcf.js.map +0 -1
- package/dist/functions/OpenCapTable/warrantExercise/getWarrantExerciseEventAsOcf.d.ts.map +0 -1
- package/dist/functions/OpenCapTable/warrantExercise/getWarrantExerciseEventAsOcf.js.map +0 -1
|
@@ -15,6 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./damlToStockReissuance"), exports);
|
|
18
|
-
__exportStar(require("./
|
|
18
|
+
__exportStar(require("./getStockReissuanceAsOcf"), exports);
|
|
19
19
|
__exportStar(require("./stockReissuanceDataToDaml"), exports);
|
|
20
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/functions/OpenCapTable/stockReissuance/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/functions/OpenCapTable/stockReissuance/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,4DAA0C;AAC1C,8DAA4C"}
|
|
@@ -13,10 +13,10 @@ export interface OcfWarrantCancellationEvent {
|
|
|
13
13
|
reason_text: string;
|
|
14
14
|
comments?: string[];
|
|
15
15
|
}
|
|
16
|
-
export interface
|
|
16
|
+
export interface GetWarrantCancellationAsOcfParams {
|
|
17
17
|
contractId: string;
|
|
18
18
|
}
|
|
19
|
-
export interface
|
|
19
|
+
export interface GetWarrantCancellationAsOcfResult {
|
|
20
20
|
event: OcfWarrantCancellationEvent;
|
|
21
21
|
contractId: string;
|
|
22
22
|
}
|
|
@@ -27,5 +27,5 @@ export interface GetWarrantCancellationEventAsOcfResult {
|
|
|
27
27
|
* @param params - Parameters containing the contract ID
|
|
28
28
|
* @returns The warrant cancellation event in OCF format
|
|
29
29
|
*/
|
|
30
|
-
export declare function
|
|
31
|
-
//# sourceMappingURL=
|
|
30
|
+
export declare function getWarrantCancellationAsOcf(client: LedgerJsonApiClient, params: GetWarrantCancellationAsOcfParams): Promise<GetWarrantCancellationAsOcfResult>;
|
|
31
|
+
//# sourceMappingURL=getWarrantCancellationAsOcf.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getWarrantCancellationAsOcf.d.ts","sourceRoot":"","sources":["../../../../src/functions/OpenCapTable/warrantCancellation/getWarrantCancellationAsOcf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAKrE;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C,WAAW,EAAE,yBAAyB,CAAC;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,iCAAiC;IAChD,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iCAAiC;IAChD,KAAK,EAAE,2BAA2B,CAAC;IACnC,UAAU,EAAE,MAAM,CAAC;CACpB;AAKD;;;;;;GAMG;AACH,wBAAsB,2BAA2B,CAC/C,MAAM,EAAE,mBAAmB,EAC3B,MAAM,EAAE,iCAAiC,GACxC,OAAO,CAAC,iCAAiC,CAAC,CAgC5C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getWarrantCancellationAsOcf = getWarrantCancellationAsOcf;
|
|
4
4
|
const errors_1 = require("../../../errors");
|
|
5
5
|
const typeConversions_1 = require("../../../utils/typeConversions");
|
|
6
6
|
/**
|
|
@@ -10,7 +10,7 @@ const typeConversions_1 = require("../../../utils/typeConversions");
|
|
|
10
10
|
* @param params - Parameters containing the contract ID
|
|
11
11
|
* @returns The warrant cancellation event in OCF format
|
|
12
12
|
*/
|
|
13
|
-
async function
|
|
13
|
+
async function getWarrantCancellationAsOcf(client, params) {
|
|
14
14
|
const res = await client.getEventsByContractId({ contractId: params.contractId });
|
|
15
15
|
if (!res.created) {
|
|
16
16
|
throw new errors_1.OcpContractError('Missing created event', {
|
|
@@ -41,4 +41,4 @@ async function getWarrantCancellationEventAsOcf(client, params) {
|
|
|
41
41
|
};
|
|
42
42
|
return { event, contractId: params.contractId };
|
|
43
43
|
}
|
|
44
|
-
//# sourceMappingURL=
|
|
44
|
+
//# sourceMappingURL=getWarrantCancellationAsOcf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getWarrantCancellationAsOcf.js","sourceRoot":"","sources":["../../../../src/functions/OpenCapTable/warrantCancellation/getWarrantCancellationAsOcf.ts"],"names":[],"mappings":";;AAuCA,kEAmCC;AAxED,4CAAkE;AAClE,oEAAwE;AA6BxE;;;;;;GAMG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AAE,mBAAmB,EAAE,IAAI,CAAC,mBAAmB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACtF,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC7F,CAAC;IACF,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,CAAC;AAClD,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './getWarrantCancellationAsOcf';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/functions/OpenCapTable/warrantCancellation/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/functions/OpenCapTable/warrantCancellation/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./getWarrantCancellationAsOcf"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/functions/OpenCapTable/warrantCancellation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/functions/OpenCapTable/warrantCancellation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C"}
|
|
@@ -9,10 +9,10 @@ export interface OcfWarrantExerciseEvent extends Omit<OcfWarrantExercise, 'quant
|
|
|
9
9
|
/** Quantity as string for OCF JSON serialization */
|
|
10
10
|
quantity: string;
|
|
11
11
|
}
|
|
12
|
-
export interface
|
|
12
|
+
export interface GetWarrantExerciseAsOcfParams {
|
|
13
13
|
contractId: string;
|
|
14
14
|
}
|
|
15
|
-
export interface
|
|
15
|
+
export interface GetWarrantExerciseAsOcfResult {
|
|
16
16
|
event: OcfWarrantExerciseEvent;
|
|
17
17
|
contractId: string;
|
|
18
18
|
}
|
|
@@ -20,5 +20,5 @@ export interface GetWarrantExerciseEventAsOcfResult {
|
|
|
20
20
|
* Read a WarrantExercise contract and return a generic OCF WarrantExercise object. Schema:
|
|
21
21
|
* https://schema.opencaptablecoalition.com/v/1.2.0/objects/transactions/exercise/WarrantExercise.schema.json
|
|
22
22
|
*/
|
|
23
|
-
export declare function
|
|
24
|
-
//# sourceMappingURL=
|
|
23
|
+
export declare function getWarrantExerciseAsOcf(client: LedgerJsonApiClient, params: GetWarrantExerciseAsOcfParams): Promise<GetWarrantExerciseAsOcfResult>;
|
|
24
|
+
//# sourceMappingURL=getWarrantExerciseAsOcf.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getWarrantExerciseAsOcf.d.ts","sourceRoot":"","sources":["../../../../src/functions/OpenCapTable/warrantExercise/getWarrantExerciseAsOcf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAGhE;;;GAGG;AACH,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC;IACnF,WAAW,EAAE,qBAAqB,CAAC;IACnC,oDAAoD;IACpD,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,6BAA6B;IAC5C,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,6BAA6B;IAC5C,KAAK,EAAE,uBAAuB,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,mBAAmB,EAC3B,MAAM,EAAE,6BAA6B,GACpC,OAAO,CAAC,6BAA6B,CAAC,CAiDxC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getWarrantExerciseAsOcf = getWarrantExerciseAsOcf;
|
|
4
4
|
const errors_1 = require("../../../errors");
|
|
5
5
|
const typeConversions_1 = require("../../../utils/typeConversions");
|
|
6
6
|
/**
|
|
7
7
|
* Read a WarrantExercise contract and return a generic OCF WarrantExercise object. Schema:
|
|
8
8
|
* https://schema.opencaptablecoalition.com/v/1.2.0/objects/transactions/exercise/WarrantExercise.schema.json
|
|
9
9
|
*/
|
|
10
|
-
async function
|
|
10
|
+
async function getWarrantExerciseAsOcf(client, params) {
|
|
11
11
|
const eventsResponse = await client.getEventsByContractId({ contractId: params.contractId });
|
|
12
12
|
if (!eventsResponse.created?.createdEvent.createArgument) {
|
|
13
13
|
throw new errors_1.OcpContractError('Invalid contract events response: missing created event or create argument', {
|
|
@@ -51,4 +51,4 @@ async function getWarrantExerciseEventAsOcf(client, params) {
|
|
|
51
51
|
};
|
|
52
52
|
return { event, contractId: params.contractId };
|
|
53
53
|
}
|
|
54
|
-
//# sourceMappingURL=
|
|
54
|
+
//# sourceMappingURL=getWarrantExerciseAsOcf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getWarrantExerciseAsOcf.js","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;KAChG,CAAC;IAEF,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,CAAC;AAClD,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './getWarrantExerciseAsOcf';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/functions/OpenCapTable/warrantExercise/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/functions/OpenCapTable/warrantExercise/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC"}
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./getWarrantExerciseAsOcf"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/functions/OpenCapTable/warrantExercise/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/functions/OpenCapTable/warrantExercise/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Entity-specific validators for OCF types.
|
|
3
|
+
*
|
|
4
|
+
* These validators provide comprehensive input validation for common OCF entity types,
|
|
5
|
+
* ensuring data integrity before sending to DAML contracts.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import { validateIssuerData, validateStakeholderData } from './entityValidators';
|
|
10
|
+
*
|
|
11
|
+
* // Validates and throws OcpValidationError if invalid
|
|
12
|
+
* validateIssuerData(issuerData, 'issuer');
|
|
13
|
+
* validateStakeholderData(stakeholderData, 'stakeholder');
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
import type { Address, Email, Monetary, Phone } from '../types';
|
|
17
|
+
/**
|
|
18
|
+
* Validate an Email object.
|
|
19
|
+
*/
|
|
20
|
+
export declare function validateEmail(value: unknown, fieldPath: string): void;
|
|
21
|
+
/**
|
|
22
|
+
* Validate an optional Email object.
|
|
23
|
+
*/
|
|
24
|
+
export declare function validateOptionalEmail(value: unknown, fieldPath: string): Email | null;
|
|
25
|
+
/**
|
|
26
|
+
* Validate a Phone object.
|
|
27
|
+
*/
|
|
28
|
+
export declare function validatePhone(value: unknown, fieldPath: string): void;
|
|
29
|
+
/**
|
|
30
|
+
* Validate an optional Phone object.
|
|
31
|
+
*/
|
|
32
|
+
export declare function validateOptionalPhone(value: unknown, fieldPath: string): Phone | null;
|
|
33
|
+
/**
|
|
34
|
+
* Validate an Address object.
|
|
35
|
+
*/
|
|
36
|
+
export declare function validateAddress(value: unknown, fieldPath: string): void;
|
|
37
|
+
/**
|
|
38
|
+
* Validate an optional Address object.
|
|
39
|
+
*/
|
|
40
|
+
export declare function validateOptionalAddress(value: unknown, fieldPath: string): Address | null;
|
|
41
|
+
/**
|
|
42
|
+
* Validate a TaxId object.
|
|
43
|
+
*/
|
|
44
|
+
export declare function validateTaxId(value: unknown, fieldPath: string): void;
|
|
45
|
+
/**
|
|
46
|
+
* Validate a Monetary object (entity-specific version).
|
|
47
|
+
* Delegates to validateRequiredMonetary from validation.ts.
|
|
48
|
+
*/
|
|
49
|
+
export declare function validateMonetaryObject(value: unknown, fieldPath: string): void;
|
|
50
|
+
/**
|
|
51
|
+
* Validate an optional Monetary object.
|
|
52
|
+
*/
|
|
53
|
+
export declare function validateOptionalMonetaryObject(value: unknown, fieldPath: string): Monetary | null;
|
|
54
|
+
/**
|
|
55
|
+
* Validate a Name object.
|
|
56
|
+
*/
|
|
57
|
+
export declare function validateName(value: unknown, fieldPath: string): void;
|
|
58
|
+
/**
|
|
59
|
+
* Validate a ContactInfo object.
|
|
60
|
+
*/
|
|
61
|
+
export declare function validateContactInfo(value: unknown, fieldPath: string): void;
|
|
62
|
+
/**
|
|
63
|
+
* Validate a ContactInfoWithoutName object.
|
|
64
|
+
*/
|
|
65
|
+
export declare function validateContactInfoWithoutName(value: unknown, fieldPath: string): void;
|
|
66
|
+
/**
|
|
67
|
+
* Validate OcfIssuer data.
|
|
68
|
+
*
|
|
69
|
+
* Validates all required fields and structure of an issuer object.
|
|
70
|
+
* Throws OcpValidationError with detailed field path on validation failure.
|
|
71
|
+
*
|
|
72
|
+
* @param data - The issuer data to validate
|
|
73
|
+
* @param fieldPath - Base path for error messages (e.g., 'issuer')
|
|
74
|
+
* @throws {OcpValidationError} if validation fails
|
|
75
|
+
*/
|
|
76
|
+
export declare function validateIssuerData(data: unknown, fieldPath: string): void;
|
|
77
|
+
/**
|
|
78
|
+
* Validate OcfStakeholder data.
|
|
79
|
+
*
|
|
80
|
+
* Validates all required fields and structure of a stakeholder object.
|
|
81
|
+
* Throws OcpValidationError with detailed field path on validation failure.
|
|
82
|
+
*
|
|
83
|
+
* @param data - The stakeholder data to validate
|
|
84
|
+
* @param fieldPath - Base path for error messages (e.g., 'stakeholder')
|
|
85
|
+
* @throws {OcpValidationError} if validation fails
|
|
86
|
+
*/
|
|
87
|
+
export declare function validateStakeholderData(data: unknown, fieldPath: string): void;
|
|
88
|
+
/**
|
|
89
|
+
* Validate OcfStockClass data.
|
|
90
|
+
*
|
|
91
|
+
* Validates all required fields and structure of a stock class object.
|
|
92
|
+
* Throws OcpValidationError with detailed field path on validation failure.
|
|
93
|
+
*
|
|
94
|
+
* @param data - The stock class data to validate
|
|
95
|
+
* @param fieldPath - Base path for error messages (e.g., 'stockClass')
|
|
96
|
+
* @throws {OcpValidationError} if validation fails
|
|
97
|
+
*/
|
|
98
|
+
export declare function validateStockClassData(data: unknown, fieldPath: string): void;
|
|
99
|
+
/**
|
|
100
|
+
* Validate OcfStockIssuance data.
|
|
101
|
+
*
|
|
102
|
+
* Validates all required fields and structure of a stock issuance object.
|
|
103
|
+
* Throws OcpValidationError with detailed field path on validation failure.
|
|
104
|
+
*
|
|
105
|
+
* @param data - The stock issuance data to validate
|
|
106
|
+
* @param fieldPath - Base path for error messages (e.g., 'stockIssuance')
|
|
107
|
+
* @throws {OcpValidationError} if validation fails
|
|
108
|
+
*/
|
|
109
|
+
export declare function validateStockIssuanceData(data: unknown, fieldPath: string): void;
|
|
110
|
+
/**
|
|
111
|
+
* Validate OcfValuation data.
|
|
112
|
+
*
|
|
113
|
+
* Validates all required fields and structure of a valuation object.
|
|
114
|
+
* Throws OcpValidationError with detailed field path on validation failure.
|
|
115
|
+
*
|
|
116
|
+
* @param data - The valuation data to validate
|
|
117
|
+
* @param fieldPath - Base path for error messages (e.g., 'valuation')
|
|
118
|
+
* @throws {OcpValidationError} if validation fails
|
|
119
|
+
*/
|
|
120
|
+
export declare function validateValuationData(data: unknown, fieldPath: string): void;
|
|
121
|
+
/**
|
|
122
|
+
* Validate OcfDocument data.
|
|
123
|
+
*
|
|
124
|
+
* Validates all required fields and structure of a document object.
|
|
125
|
+
* Throws OcpValidationError with detailed field path on validation failure.
|
|
126
|
+
*
|
|
127
|
+
* @param data - The document data to validate
|
|
128
|
+
* @param fieldPath - Base path for error messages (e.g., 'document')
|
|
129
|
+
* @throws {OcpValidationError} if validation fails
|
|
130
|
+
*/
|
|
131
|
+
export declare function validateDocumentData(data: unknown, fieldPath: string): void;
|
|
132
|
+
/**
|
|
133
|
+
* Validate common transaction fields.
|
|
134
|
+
* This is a helper function for transaction-specific validators.
|
|
135
|
+
*/
|
|
136
|
+
export declare function validateTransactionBase(value: Record<string, unknown>, path: string, options?: {
|
|
137
|
+
requireSecurityId?: boolean;
|
|
138
|
+
requireQuantity?: boolean;
|
|
139
|
+
}): void;
|
|
140
|
+
/**
|
|
141
|
+
* Validate resulting_security_ids array (must be non-empty for certain transactions).
|
|
142
|
+
*/
|
|
143
|
+
export declare function validateResultingSecurityIds(value: unknown, fieldPath: string): void;
|
|
144
|
+
//# sourceMappingURL=entityValidators.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entityValidators.d.ts","sourceRoot":"","sources":["../../src/utils/entityValidators.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAiDhE;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAKrE;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,CAMrF;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAKrE;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,CAMrF;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAUvE;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAMzF;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAKrE;AAED;;;GAGG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