@nominalso/vibe-host 0.6.0 → 0.7.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/dist/index.cjs +49 -1
- package/dist/index.d.cts +142 -0
- package/dist/index.d.ts +142 -0
- package/dist/index.js +49 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -27,7 +27,7 @@ __export(index_exports, {
|
|
|
27
27
|
module.exports = __toCommonJS(index_exports);
|
|
28
28
|
|
|
29
29
|
// package.json
|
|
30
|
-
var version = "0.
|
|
30
|
+
var version = "0.7.0";
|
|
31
31
|
|
|
32
32
|
// ../protocol-types/dist/index.js
|
|
33
33
|
function normalizeSubroute(subroute) {
|
|
@@ -202,6 +202,26 @@ var getSubsidiaryJournalLinesApiAccountingSubsidiarySubsidiaryIdJournalEntryLine
|
|
|
202
202
|
}
|
|
203
203
|
});
|
|
204
204
|
};
|
|
205
|
+
var setLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesLineIdDimensionValuePut = (options) => {
|
|
206
|
+
return (options.client ?? client).put({
|
|
207
|
+
url: "/api/accounting/subsidiary/{subsidiary_id}/journal-entry/lines/{line_id}/dimension-value",
|
|
208
|
+
...options,
|
|
209
|
+
headers: {
|
|
210
|
+
"Content-Type": "application/json",
|
|
211
|
+
...options?.headers
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
};
|
|
215
|
+
var bulkSetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesDimensionValueBulkPut = (options) => {
|
|
216
|
+
return (options.client ?? client).put({
|
|
217
|
+
url: "/api/accounting/subsidiary/{subsidiary_id}/journal-entry/lines/dimension-value/bulk",
|
|
218
|
+
...options,
|
|
219
|
+
headers: {
|
|
220
|
+
"Content-Type": "application/json",
|
|
221
|
+
...options?.headers
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
};
|
|
205
225
|
var getSubsidiaryJournalApiAccountingSubsidiarySubsidiaryIdJournalEntryGet = (options) => {
|
|
206
226
|
return (options.client ?? client).get({
|
|
207
227
|
url: "/api/accounting/subsidiary/{subsidiary_id}/journal-entry",
|
|
@@ -224,6 +244,22 @@ var getDimensionsApiAccountingDimensionGet = (options) => {
|
|
|
224
244
|
...options
|
|
225
245
|
});
|
|
226
246
|
};
|
|
247
|
+
var getDimensionBalanceApiAccountingDimensionDimensionIdBalanceGet = (options) => {
|
|
248
|
+
return (options.client ?? client).get({
|
|
249
|
+
url: "/api/accounting/dimension/{dimension_id}/balance",
|
|
250
|
+
...options
|
|
251
|
+
});
|
|
252
|
+
};
|
|
253
|
+
var addDimensionValueApiAccountingDimensionDimensionIdValuePost = (options) => {
|
|
254
|
+
return (options.client ?? client).post({
|
|
255
|
+
url: "/api/accounting/dimension/{dimension_id}/value",
|
|
256
|
+
...options,
|
|
257
|
+
headers: {
|
|
258
|
+
"Content-Type": "application/json",
|
|
259
|
+
...options?.headers
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
};
|
|
227
263
|
var getAccountDimensionAssignmentsForDimensionApiAccountingDimensionDimensionIdAccountAccountIdGet = (options) => {
|
|
228
264
|
return (options.client ?? client).get({
|
|
229
265
|
url: "/api/accounting/dimension/{dimension_id}/account/{account_id}",
|
|
@@ -531,6 +567,18 @@ function accountingHandlers(client2) {
|
|
|
531
567
|
p,
|
|
532
568
|
client2
|
|
533
569
|
),
|
|
570
|
+
GET_DIMENSION_BALANCE: (p) => call(getDimensionBalanceApiAccountingDimensionDimensionIdBalanceGet, p, client2),
|
|
571
|
+
ADD_DIMENSION_VALUE: (p) => call(addDimensionValueApiAccountingDimensionDimensionIdValuePost, p, client2),
|
|
572
|
+
SET_LINE_DIMENSION_VALUE: (p) => call(
|
|
573
|
+
setLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesLineIdDimensionValuePut,
|
|
574
|
+
p,
|
|
575
|
+
client2
|
|
576
|
+
),
|
|
577
|
+
BULK_SET_LINE_DIMENSION_VALUE: (p) => call(
|
|
578
|
+
bulkSetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesDimensionValueBulkPut,
|
|
579
|
+
p,
|
|
580
|
+
client2
|
|
581
|
+
),
|
|
534
582
|
// Journal entries
|
|
535
583
|
GET_JOURNAL_ENTRIES: (p) => call(
|
|
536
584
|
getSubsidiaryJournalApiAccountingSubsidiarySubsidiaryIdJournalEntryGet,
|
package/dist/index.d.cts
CHANGED
|
@@ -11,6 +11,14 @@ type AccountingBalanceOutput = {
|
|
|
11
11
|
balance?: number;
|
|
12
12
|
currency?: AccountingCurrency | null;
|
|
13
13
|
};
|
|
14
|
+
type AccountingBulkSetLineDimensionValueRequest = {
|
|
15
|
+
dimension_id: string;
|
|
16
|
+
dimension_value_id: string;
|
|
17
|
+
line_ids: Array<string>;
|
|
18
|
+
};
|
|
19
|
+
type AccountingBulkSetLineDimensionValueResponse = {
|
|
20
|
+
updated_count: number;
|
|
21
|
+
};
|
|
14
22
|
type AccountingCerPaginationOutput = {
|
|
15
23
|
results?: Array<AccountingConsolidationExchangeRate>;
|
|
16
24
|
pagination?: AccountingPaginationOutput | null;
|
|
@@ -79,6 +87,35 @@ type AccountingDimensionValue = {
|
|
|
79
87
|
effective_rule_id?: number | null;
|
|
80
88
|
has_children?: boolean;
|
|
81
89
|
};
|
|
90
|
+
/**
|
|
91
|
+
* SDK-facing shape of a single dimension value's movement balance over the requested window.
|
|
92
|
+
*
|
|
93
|
+
* Mirrors the internal DimensionBalance — primary/secondary currency amounts, their credit/debit
|
|
94
|
+
* splits, and CTA — so the Rollforward has the full breakdown, but as a stable Response type
|
|
95
|
+
* decoupled from the aggregation model. Field names match the source so it maps via
|
|
96
|
+
* model_validate(from_attributes).
|
|
97
|
+
*/
|
|
98
|
+
type AccountingDimensionValueBalanceResponse = {
|
|
99
|
+
dimension_id: string;
|
|
100
|
+
dimension_value_id?: string | null;
|
|
101
|
+
subsidiary_id: number;
|
|
102
|
+
primary_currency_amount?: number | null;
|
|
103
|
+
credit_primary_currency_amount?: number | null;
|
|
104
|
+
debit_primary_currency_amount?: number | null;
|
|
105
|
+
secondary_currency_amount?: number | null;
|
|
106
|
+
credit_secondary_currency_amount?: number | null;
|
|
107
|
+
debit_secondary_currency_amount?: number | null;
|
|
108
|
+
cta_amount?: number | null;
|
|
109
|
+
cta_credit_amount?: number | null;
|
|
110
|
+
cta_debit_amount?: number | null;
|
|
111
|
+
};
|
|
112
|
+
type AccountingDimensionValueCreateUpdate = {
|
|
113
|
+
value: string;
|
|
114
|
+
subsidiary_id?: number | null;
|
|
115
|
+
provider_uid?: string | null;
|
|
116
|
+
parent_id?: string | null;
|
|
117
|
+
children?: Array<AccountingDimensionValueCreateUpdate>;
|
|
118
|
+
};
|
|
82
119
|
type AccountingDimensionValueOverrideSource = 'user' | 'provider';
|
|
83
120
|
type AccountingDimensionValueSlim = {
|
|
84
121
|
id: string;
|
|
@@ -326,6 +363,10 @@ type AccountingPaginationPositionInput = {
|
|
|
326
363
|
};
|
|
327
364
|
type AccountingPeriod = 'Annual' | 'Quarterly' | 'Monthly';
|
|
328
365
|
type AccountingProviderOperationErrorType = 'Connection Error' | 'Authentication Error' | 'Data Operation Error' | 'Server Error' | 'Not Ready For Sync';
|
|
366
|
+
type AccountingSetLineDimensionValueRequest = {
|
|
367
|
+
dimension_id: string;
|
|
368
|
+
dimension_value_id: string;
|
|
369
|
+
};
|
|
329
370
|
type AccountingSimpleCoAPaginationOutput = {
|
|
330
371
|
results: Array<AccountingSimpleTAccount>;
|
|
331
372
|
pagination?: AccountingPaginationOutput | null;
|
|
@@ -2635,6 +2676,40 @@ type GetSubsidiaryJournalLinesApiAccountingSubsidiarySubsidiaryIdJournalEntryLin
|
|
|
2635
2676
|
200: Array<AccountingJournalEntryLineWithJournalEntryWithDimensionsWithOperationCtx> | AccountingJournalEntryLinePaginationOutput;
|
|
2636
2677
|
};
|
|
2637
2678
|
type GetSubsidiaryJournalLinesApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesGetResponse = GetSubsidiaryJournalLinesApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesGetResponses[keyof GetSubsidiaryJournalLinesApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesGetResponses];
|
|
2679
|
+
type SetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesLineIdDimensionValuePutData = {
|
|
2680
|
+
body: AccountingSetLineDimensionValueRequest;
|
|
2681
|
+
path: {
|
|
2682
|
+
subsidiary_id: number;
|
|
2683
|
+
/**
|
|
2684
|
+
* The journal-entry line to assign the dimension value to.
|
|
2685
|
+
*/
|
|
2686
|
+
line_id: string;
|
|
2687
|
+
};
|
|
2688
|
+
query?: never;
|
|
2689
|
+
url: '/api/accounting/subsidiary/{subsidiary_id}/journal-entry/lines/{line_id}/dimension-value';
|
|
2690
|
+
};
|
|
2691
|
+
type SetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesLineIdDimensionValuePutResponses = {
|
|
2692
|
+
/**
|
|
2693
|
+
* Successful Response
|
|
2694
|
+
*/
|
|
2695
|
+
200: AccountingLineDimensionValueOverride;
|
|
2696
|
+
};
|
|
2697
|
+
type SetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesLineIdDimensionValuePutResponse = SetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesLineIdDimensionValuePutResponses[keyof SetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesLineIdDimensionValuePutResponses];
|
|
2698
|
+
type BulkSetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesDimensionValueBulkPutData = {
|
|
2699
|
+
body: AccountingBulkSetLineDimensionValueRequest;
|
|
2700
|
+
path: {
|
|
2701
|
+
subsidiary_id: number;
|
|
2702
|
+
};
|
|
2703
|
+
query?: never;
|
|
2704
|
+
url: '/api/accounting/subsidiary/{subsidiary_id}/journal-entry/lines/dimension-value/bulk';
|
|
2705
|
+
};
|
|
2706
|
+
type BulkSetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesDimensionValueBulkPutResponses = {
|
|
2707
|
+
/**
|
|
2708
|
+
* Successful Response
|
|
2709
|
+
*/
|
|
2710
|
+
200: AccountingBulkSetLineDimensionValueResponse;
|
|
2711
|
+
};
|
|
2712
|
+
type BulkSetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesDimensionValueBulkPutResponse = BulkSetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesDimensionValueBulkPutResponses[keyof BulkSetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesDimensionValueBulkPutResponses];
|
|
2638
2713
|
type GetSubsidiaryJournalApiAccountingSubsidiarySubsidiaryIdJournalEntryGetData = {
|
|
2639
2714
|
body?: AccountingPaginationPositionInput | null;
|
|
2640
2715
|
path: {
|
|
@@ -2722,6 +2797,57 @@ type GetDimensionsApiAccountingDimensionGetResponses = {
|
|
|
2722
2797
|
200: Array<AccountingDimensionWithRules>;
|
|
2723
2798
|
};
|
|
2724
2799
|
type GetDimensionsApiAccountingDimensionGetResponse = GetDimensionsApiAccountingDimensionGetResponses[keyof GetDimensionsApiAccountingDimensionGetResponses];
|
|
2800
|
+
type GetDimensionBalanceApiAccountingDimensionDimensionIdBalanceGetData = {
|
|
2801
|
+
body?: never;
|
|
2802
|
+
path: {
|
|
2803
|
+
dimension_id: string;
|
|
2804
|
+
};
|
|
2805
|
+
query: {
|
|
2806
|
+
/**
|
|
2807
|
+
* Subsidiary whose balances to read.
|
|
2808
|
+
*/
|
|
2809
|
+
subsidiary_id: number;
|
|
2810
|
+
/**
|
|
2811
|
+
* Accounts to include in the balance.
|
|
2812
|
+
*/
|
|
2813
|
+
account_ids: Array<string>;
|
|
2814
|
+
/**
|
|
2815
|
+
* Start of the movement window (inclusive).
|
|
2816
|
+
*/
|
|
2817
|
+
from_date: string;
|
|
2818
|
+
/**
|
|
2819
|
+
* End of the movement window (inclusive).
|
|
2820
|
+
*/
|
|
2821
|
+
to_date: string;
|
|
2822
|
+
/**
|
|
2823
|
+
* Restrict to these dimension values; omit or leave empty to return all of the dimension's values.
|
|
2824
|
+
*/
|
|
2825
|
+
dimension_value_ids?: Array<string> | null;
|
|
2826
|
+
};
|
|
2827
|
+
url: '/api/accounting/dimension/{dimension_id}/balance';
|
|
2828
|
+
};
|
|
2829
|
+
type GetDimensionBalanceApiAccountingDimensionDimensionIdBalanceGetResponses = {
|
|
2830
|
+
/**
|
|
2831
|
+
* Successful Response
|
|
2832
|
+
*/
|
|
2833
|
+
200: Array<AccountingDimensionValueBalanceResponse>;
|
|
2834
|
+
};
|
|
2835
|
+
type GetDimensionBalanceApiAccountingDimensionDimensionIdBalanceGetResponse = GetDimensionBalanceApiAccountingDimensionDimensionIdBalanceGetResponses[keyof GetDimensionBalanceApiAccountingDimensionDimensionIdBalanceGetResponses];
|
|
2836
|
+
type AddDimensionValueApiAccountingDimensionDimensionIdValuePostData = {
|
|
2837
|
+
body: AccountingDimensionValueCreateUpdate;
|
|
2838
|
+
path: {
|
|
2839
|
+
dimension_id: string;
|
|
2840
|
+
};
|
|
2841
|
+
query?: never;
|
|
2842
|
+
url: '/api/accounting/dimension/{dimension_id}/value';
|
|
2843
|
+
};
|
|
2844
|
+
type AddDimensionValueApiAccountingDimensionDimensionIdValuePostResponses = {
|
|
2845
|
+
/**
|
|
2846
|
+
* Successful Response
|
|
2847
|
+
*/
|
|
2848
|
+
200: AccountingDimensionValue;
|
|
2849
|
+
};
|
|
2850
|
+
type AddDimensionValueApiAccountingDimensionDimensionIdValuePostResponse = AddDimensionValueApiAccountingDimensionDimensionIdValuePostResponses[keyof AddDimensionValueApiAccountingDimensionDimensionIdValuePostResponses];
|
|
2725
2851
|
type GetAccountDimensionAssignmentsForDimensionApiAccountingDimensionDimensionIdAccountAccountIdGetData = {
|
|
2726
2852
|
body?: never;
|
|
2727
2853
|
path: {
|
|
@@ -3616,6 +3742,22 @@ interface RequestRegistry {
|
|
|
3616
3742
|
payload: Omit<GetDimensionValuesHierarchicalApiAccountingDimensionValueHierarchicalGetData, 'url'>;
|
|
3617
3743
|
data: GetDimensionValuesHierarchicalApiAccountingDimensionValueHierarchicalGetResponse;
|
|
3618
3744
|
};
|
|
3745
|
+
GET_DIMENSION_BALANCE: {
|
|
3746
|
+
payload: Omit<GetDimensionBalanceApiAccountingDimensionDimensionIdBalanceGetData, 'url'>;
|
|
3747
|
+
data: GetDimensionBalanceApiAccountingDimensionDimensionIdBalanceGetResponse;
|
|
3748
|
+
};
|
|
3749
|
+
ADD_DIMENSION_VALUE: {
|
|
3750
|
+
payload: Omit<AddDimensionValueApiAccountingDimensionDimensionIdValuePostData, 'url'>;
|
|
3751
|
+
data: AddDimensionValueApiAccountingDimensionDimensionIdValuePostResponse;
|
|
3752
|
+
};
|
|
3753
|
+
SET_LINE_DIMENSION_VALUE: {
|
|
3754
|
+
payload: Omit<SetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesLineIdDimensionValuePutData, 'url'>;
|
|
3755
|
+
data: SetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesLineIdDimensionValuePutResponse;
|
|
3756
|
+
};
|
|
3757
|
+
BULK_SET_LINE_DIMENSION_VALUE: {
|
|
3758
|
+
payload: Omit<BulkSetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesDimensionValueBulkPutData, 'url'>;
|
|
3759
|
+
data: BulkSetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesDimensionValueBulkPutResponse;
|
|
3760
|
+
};
|
|
3619
3761
|
GET_JOURNAL_LINES: {
|
|
3620
3762
|
payload: Omit<GetSubsidiaryJournalLinesApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesGetData, 'url'>;
|
|
3621
3763
|
data: GetSubsidiaryJournalLinesApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesGetResponse;
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,14 @@ type AccountingBalanceOutput = {
|
|
|
11
11
|
balance?: number;
|
|
12
12
|
currency?: AccountingCurrency | null;
|
|
13
13
|
};
|
|
14
|
+
type AccountingBulkSetLineDimensionValueRequest = {
|
|
15
|
+
dimension_id: string;
|
|
16
|
+
dimension_value_id: string;
|
|
17
|
+
line_ids: Array<string>;
|
|
18
|
+
};
|
|
19
|
+
type AccountingBulkSetLineDimensionValueResponse = {
|
|
20
|
+
updated_count: number;
|
|
21
|
+
};
|
|
14
22
|
type AccountingCerPaginationOutput = {
|
|
15
23
|
results?: Array<AccountingConsolidationExchangeRate>;
|
|
16
24
|
pagination?: AccountingPaginationOutput | null;
|
|
@@ -79,6 +87,35 @@ type AccountingDimensionValue = {
|
|
|
79
87
|
effective_rule_id?: number | null;
|
|
80
88
|
has_children?: boolean;
|
|
81
89
|
};
|
|
90
|
+
/**
|
|
91
|
+
* SDK-facing shape of a single dimension value's movement balance over the requested window.
|
|
92
|
+
*
|
|
93
|
+
* Mirrors the internal DimensionBalance — primary/secondary currency amounts, their credit/debit
|
|
94
|
+
* splits, and CTA — so the Rollforward has the full breakdown, but as a stable Response type
|
|
95
|
+
* decoupled from the aggregation model. Field names match the source so it maps via
|
|
96
|
+
* model_validate(from_attributes).
|
|
97
|
+
*/
|
|
98
|
+
type AccountingDimensionValueBalanceResponse = {
|
|
99
|
+
dimension_id: string;
|
|
100
|
+
dimension_value_id?: string | null;
|
|
101
|
+
subsidiary_id: number;
|
|
102
|
+
primary_currency_amount?: number | null;
|
|
103
|
+
credit_primary_currency_amount?: number | null;
|
|
104
|
+
debit_primary_currency_amount?: number | null;
|
|
105
|
+
secondary_currency_amount?: number | null;
|
|
106
|
+
credit_secondary_currency_amount?: number | null;
|
|
107
|
+
debit_secondary_currency_amount?: number | null;
|
|
108
|
+
cta_amount?: number | null;
|
|
109
|
+
cta_credit_amount?: number | null;
|
|
110
|
+
cta_debit_amount?: number | null;
|
|
111
|
+
};
|
|
112
|
+
type AccountingDimensionValueCreateUpdate = {
|
|
113
|
+
value: string;
|
|
114
|
+
subsidiary_id?: number | null;
|
|
115
|
+
provider_uid?: string | null;
|
|
116
|
+
parent_id?: string | null;
|
|
117
|
+
children?: Array<AccountingDimensionValueCreateUpdate>;
|
|
118
|
+
};
|
|
82
119
|
type AccountingDimensionValueOverrideSource = 'user' | 'provider';
|
|
83
120
|
type AccountingDimensionValueSlim = {
|
|
84
121
|
id: string;
|
|
@@ -326,6 +363,10 @@ type AccountingPaginationPositionInput = {
|
|
|
326
363
|
};
|
|
327
364
|
type AccountingPeriod = 'Annual' | 'Quarterly' | 'Monthly';
|
|
328
365
|
type AccountingProviderOperationErrorType = 'Connection Error' | 'Authentication Error' | 'Data Operation Error' | 'Server Error' | 'Not Ready For Sync';
|
|
366
|
+
type AccountingSetLineDimensionValueRequest = {
|
|
367
|
+
dimension_id: string;
|
|
368
|
+
dimension_value_id: string;
|
|
369
|
+
};
|
|
329
370
|
type AccountingSimpleCoAPaginationOutput = {
|
|
330
371
|
results: Array<AccountingSimpleTAccount>;
|
|
331
372
|
pagination?: AccountingPaginationOutput | null;
|
|
@@ -2635,6 +2676,40 @@ type GetSubsidiaryJournalLinesApiAccountingSubsidiarySubsidiaryIdJournalEntryLin
|
|
|
2635
2676
|
200: Array<AccountingJournalEntryLineWithJournalEntryWithDimensionsWithOperationCtx> | AccountingJournalEntryLinePaginationOutput;
|
|
2636
2677
|
};
|
|
2637
2678
|
type GetSubsidiaryJournalLinesApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesGetResponse = GetSubsidiaryJournalLinesApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesGetResponses[keyof GetSubsidiaryJournalLinesApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesGetResponses];
|
|
2679
|
+
type SetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesLineIdDimensionValuePutData = {
|
|
2680
|
+
body: AccountingSetLineDimensionValueRequest;
|
|
2681
|
+
path: {
|
|
2682
|
+
subsidiary_id: number;
|
|
2683
|
+
/**
|
|
2684
|
+
* The journal-entry line to assign the dimension value to.
|
|
2685
|
+
*/
|
|
2686
|
+
line_id: string;
|
|
2687
|
+
};
|
|
2688
|
+
query?: never;
|
|
2689
|
+
url: '/api/accounting/subsidiary/{subsidiary_id}/journal-entry/lines/{line_id}/dimension-value';
|
|
2690
|
+
};
|
|
2691
|
+
type SetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesLineIdDimensionValuePutResponses = {
|
|
2692
|
+
/**
|
|
2693
|
+
* Successful Response
|
|
2694
|
+
*/
|
|
2695
|
+
200: AccountingLineDimensionValueOverride;
|
|
2696
|
+
};
|
|
2697
|
+
type SetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesLineIdDimensionValuePutResponse = SetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesLineIdDimensionValuePutResponses[keyof SetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesLineIdDimensionValuePutResponses];
|
|
2698
|
+
type BulkSetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesDimensionValueBulkPutData = {
|
|
2699
|
+
body: AccountingBulkSetLineDimensionValueRequest;
|
|
2700
|
+
path: {
|
|
2701
|
+
subsidiary_id: number;
|
|
2702
|
+
};
|
|
2703
|
+
query?: never;
|
|
2704
|
+
url: '/api/accounting/subsidiary/{subsidiary_id}/journal-entry/lines/dimension-value/bulk';
|
|
2705
|
+
};
|
|
2706
|
+
type BulkSetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesDimensionValueBulkPutResponses = {
|
|
2707
|
+
/**
|
|
2708
|
+
* Successful Response
|
|
2709
|
+
*/
|
|
2710
|
+
200: AccountingBulkSetLineDimensionValueResponse;
|
|
2711
|
+
};
|
|
2712
|
+
type BulkSetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesDimensionValueBulkPutResponse = BulkSetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesDimensionValueBulkPutResponses[keyof BulkSetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesDimensionValueBulkPutResponses];
|
|
2638
2713
|
type GetSubsidiaryJournalApiAccountingSubsidiarySubsidiaryIdJournalEntryGetData = {
|
|
2639
2714
|
body?: AccountingPaginationPositionInput | null;
|
|
2640
2715
|
path: {
|
|
@@ -2722,6 +2797,57 @@ type GetDimensionsApiAccountingDimensionGetResponses = {
|
|
|
2722
2797
|
200: Array<AccountingDimensionWithRules>;
|
|
2723
2798
|
};
|
|
2724
2799
|
type GetDimensionsApiAccountingDimensionGetResponse = GetDimensionsApiAccountingDimensionGetResponses[keyof GetDimensionsApiAccountingDimensionGetResponses];
|
|
2800
|
+
type GetDimensionBalanceApiAccountingDimensionDimensionIdBalanceGetData = {
|
|
2801
|
+
body?: never;
|
|
2802
|
+
path: {
|
|
2803
|
+
dimension_id: string;
|
|
2804
|
+
};
|
|
2805
|
+
query: {
|
|
2806
|
+
/**
|
|
2807
|
+
* Subsidiary whose balances to read.
|
|
2808
|
+
*/
|
|
2809
|
+
subsidiary_id: number;
|
|
2810
|
+
/**
|
|
2811
|
+
* Accounts to include in the balance.
|
|
2812
|
+
*/
|
|
2813
|
+
account_ids: Array<string>;
|
|
2814
|
+
/**
|
|
2815
|
+
* Start of the movement window (inclusive).
|
|
2816
|
+
*/
|
|
2817
|
+
from_date: string;
|
|
2818
|
+
/**
|
|
2819
|
+
* End of the movement window (inclusive).
|
|
2820
|
+
*/
|
|
2821
|
+
to_date: string;
|
|
2822
|
+
/**
|
|
2823
|
+
* Restrict to these dimension values; omit or leave empty to return all of the dimension's values.
|
|
2824
|
+
*/
|
|
2825
|
+
dimension_value_ids?: Array<string> | null;
|
|
2826
|
+
};
|
|
2827
|
+
url: '/api/accounting/dimension/{dimension_id}/balance';
|
|
2828
|
+
};
|
|
2829
|
+
type GetDimensionBalanceApiAccountingDimensionDimensionIdBalanceGetResponses = {
|
|
2830
|
+
/**
|
|
2831
|
+
* Successful Response
|
|
2832
|
+
*/
|
|
2833
|
+
200: Array<AccountingDimensionValueBalanceResponse>;
|
|
2834
|
+
};
|
|
2835
|
+
type GetDimensionBalanceApiAccountingDimensionDimensionIdBalanceGetResponse = GetDimensionBalanceApiAccountingDimensionDimensionIdBalanceGetResponses[keyof GetDimensionBalanceApiAccountingDimensionDimensionIdBalanceGetResponses];
|
|
2836
|
+
type AddDimensionValueApiAccountingDimensionDimensionIdValuePostData = {
|
|
2837
|
+
body: AccountingDimensionValueCreateUpdate;
|
|
2838
|
+
path: {
|
|
2839
|
+
dimension_id: string;
|
|
2840
|
+
};
|
|
2841
|
+
query?: never;
|
|
2842
|
+
url: '/api/accounting/dimension/{dimension_id}/value';
|
|
2843
|
+
};
|
|
2844
|
+
type AddDimensionValueApiAccountingDimensionDimensionIdValuePostResponses = {
|
|
2845
|
+
/**
|
|
2846
|
+
* Successful Response
|
|
2847
|
+
*/
|
|
2848
|
+
200: AccountingDimensionValue;
|
|
2849
|
+
};
|
|
2850
|
+
type AddDimensionValueApiAccountingDimensionDimensionIdValuePostResponse = AddDimensionValueApiAccountingDimensionDimensionIdValuePostResponses[keyof AddDimensionValueApiAccountingDimensionDimensionIdValuePostResponses];
|
|
2725
2851
|
type GetAccountDimensionAssignmentsForDimensionApiAccountingDimensionDimensionIdAccountAccountIdGetData = {
|
|
2726
2852
|
body?: never;
|
|
2727
2853
|
path: {
|
|
@@ -3616,6 +3742,22 @@ interface RequestRegistry {
|
|
|
3616
3742
|
payload: Omit<GetDimensionValuesHierarchicalApiAccountingDimensionValueHierarchicalGetData, 'url'>;
|
|
3617
3743
|
data: GetDimensionValuesHierarchicalApiAccountingDimensionValueHierarchicalGetResponse;
|
|
3618
3744
|
};
|
|
3745
|
+
GET_DIMENSION_BALANCE: {
|
|
3746
|
+
payload: Omit<GetDimensionBalanceApiAccountingDimensionDimensionIdBalanceGetData, 'url'>;
|
|
3747
|
+
data: GetDimensionBalanceApiAccountingDimensionDimensionIdBalanceGetResponse;
|
|
3748
|
+
};
|
|
3749
|
+
ADD_DIMENSION_VALUE: {
|
|
3750
|
+
payload: Omit<AddDimensionValueApiAccountingDimensionDimensionIdValuePostData, 'url'>;
|
|
3751
|
+
data: AddDimensionValueApiAccountingDimensionDimensionIdValuePostResponse;
|
|
3752
|
+
};
|
|
3753
|
+
SET_LINE_DIMENSION_VALUE: {
|
|
3754
|
+
payload: Omit<SetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesLineIdDimensionValuePutData, 'url'>;
|
|
3755
|
+
data: SetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesLineIdDimensionValuePutResponse;
|
|
3756
|
+
};
|
|
3757
|
+
BULK_SET_LINE_DIMENSION_VALUE: {
|
|
3758
|
+
payload: Omit<BulkSetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesDimensionValueBulkPutData, 'url'>;
|
|
3759
|
+
data: BulkSetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesDimensionValueBulkPutResponse;
|
|
3760
|
+
};
|
|
3619
3761
|
GET_JOURNAL_LINES: {
|
|
3620
3762
|
payload: Omit<GetSubsidiaryJournalLinesApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesGetData, 'url'>;
|
|
3621
3763
|
data: GetSubsidiaryJournalLinesApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesGetResponse;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// package.json
|
|
2
|
-
var version = "0.
|
|
2
|
+
var version = "0.7.0";
|
|
3
3
|
|
|
4
4
|
// ../protocol-types/dist/index.js
|
|
5
5
|
function normalizeSubroute(subroute) {
|
|
@@ -177,6 +177,26 @@ var getSubsidiaryJournalLinesApiAccountingSubsidiarySubsidiaryIdJournalEntryLine
|
|
|
177
177
|
}
|
|
178
178
|
});
|
|
179
179
|
};
|
|
180
|
+
var setLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesLineIdDimensionValuePut = (options) => {
|
|
181
|
+
return (options.client ?? client).put({
|
|
182
|
+
url: "/api/accounting/subsidiary/{subsidiary_id}/journal-entry/lines/{line_id}/dimension-value",
|
|
183
|
+
...options,
|
|
184
|
+
headers: {
|
|
185
|
+
"Content-Type": "application/json",
|
|
186
|
+
...options?.headers
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
};
|
|
190
|
+
var bulkSetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesDimensionValueBulkPut = (options) => {
|
|
191
|
+
return (options.client ?? client).put({
|
|
192
|
+
url: "/api/accounting/subsidiary/{subsidiary_id}/journal-entry/lines/dimension-value/bulk",
|
|
193
|
+
...options,
|
|
194
|
+
headers: {
|
|
195
|
+
"Content-Type": "application/json",
|
|
196
|
+
...options?.headers
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
};
|
|
180
200
|
var getSubsidiaryJournalApiAccountingSubsidiarySubsidiaryIdJournalEntryGet = (options) => {
|
|
181
201
|
return (options.client ?? client).get({
|
|
182
202
|
url: "/api/accounting/subsidiary/{subsidiary_id}/journal-entry",
|
|
@@ -199,6 +219,22 @@ var getDimensionsApiAccountingDimensionGet = (options) => {
|
|
|
199
219
|
...options
|
|
200
220
|
});
|
|
201
221
|
};
|
|
222
|
+
var getDimensionBalanceApiAccountingDimensionDimensionIdBalanceGet = (options) => {
|
|
223
|
+
return (options.client ?? client).get({
|
|
224
|
+
url: "/api/accounting/dimension/{dimension_id}/balance",
|
|
225
|
+
...options
|
|
226
|
+
});
|
|
227
|
+
};
|
|
228
|
+
var addDimensionValueApiAccountingDimensionDimensionIdValuePost = (options) => {
|
|
229
|
+
return (options.client ?? client).post({
|
|
230
|
+
url: "/api/accounting/dimension/{dimension_id}/value",
|
|
231
|
+
...options,
|
|
232
|
+
headers: {
|
|
233
|
+
"Content-Type": "application/json",
|
|
234
|
+
...options?.headers
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
};
|
|
202
238
|
var getAccountDimensionAssignmentsForDimensionApiAccountingDimensionDimensionIdAccountAccountIdGet = (options) => {
|
|
203
239
|
return (options.client ?? client).get({
|
|
204
240
|
url: "/api/accounting/dimension/{dimension_id}/account/{account_id}",
|
|
@@ -506,6 +542,18 @@ function accountingHandlers(client2) {
|
|
|
506
542
|
p,
|
|
507
543
|
client2
|
|
508
544
|
),
|
|
545
|
+
GET_DIMENSION_BALANCE: (p) => call(getDimensionBalanceApiAccountingDimensionDimensionIdBalanceGet, p, client2),
|
|
546
|
+
ADD_DIMENSION_VALUE: (p) => call(addDimensionValueApiAccountingDimensionDimensionIdValuePost, p, client2),
|
|
547
|
+
SET_LINE_DIMENSION_VALUE: (p) => call(
|
|
548
|
+
setLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesLineIdDimensionValuePut,
|
|
549
|
+
p,
|
|
550
|
+
client2
|
|
551
|
+
),
|
|
552
|
+
BULK_SET_LINE_DIMENSION_VALUE: (p) => call(
|
|
553
|
+
bulkSetLineDimensionValueApiAccountingSubsidiarySubsidiaryIdJournalEntryLinesDimensionValueBulkPut,
|
|
554
|
+
p,
|
|
555
|
+
client2
|
|
556
|
+
),
|
|
509
557
|
// Journal entries
|
|
510
558
|
GET_JOURNAL_ENTRIES: (p) => call(
|
|
511
559
|
getSubsidiaryJournalApiAccountingSubsidiarySubsidiaryIdJournalEntryGet,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nominalso/vibe-host",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Host-side SDK for embedding Nominal Vibe Apps — receives bridge requests over a typed postMessage protocol and dispatches them to Nominal APIs (used by nom-ui).",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://github.com/nominalso/vibe-apps-sdk#readme",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@nominalso/vibe-api-client": "0.0.1",
|
|
38
|
-
"@nominalso/vibe-
|
|
39
|
-
"@nominalso/vibe-
|
|
38
|
+
"@nominalso/vibe-protocol-types": "0.0.1",
|
|
39
|
+
"@nominalso/vibe-api-types": "0.0.1"
|
|
40
40
|
},
|
|
41
41
|
"tsup": {
|
|
42
42
|
"entry": [
|