@nomalism-com/api 0.45.36 → 0.45.38
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.js +88 -60
- package/dist/main.d.ts +3 -0
- package/dist/modules/ui/sidemenuHighlight.d.ts +10 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -100,6 +100,7 @@ __export(main_exports, {
|
|
|
100
100
|
Settings: () => settings_exports,
|
|
101
101
|
Shippings: () => shippings_exports,
|
|
102
102
|
SideMenu: () => sideMenu_exports,
|
|
103
|
+
SidemenuHighlight: () => sidemenuHighlight_exports,
|
|
103
104
|
StartDocumentHeaderLastUpdate: () => startDocumentHeaderLastUpdate_exports,
|
|
104
105
|
StockMovement: () => stockMovement_exports,
|
|
105
106
|
StoreOperator: () => storeOperator_exports,
|
|
@@ -3834,12 +3835,36 @@ var Repository105 = class {
|
|
|
3834
3835
|
}
|
|
3835
3836
|
};
|
|
3836
3837
|
|
|
3838
|
+
// src/modules/ui/sidemenuHighlight.ts
|
|
3839
|
+
var sidemenuHighlight_exports = {};
|
|
3840
|
+
__export(sidemenuHighlight_exports, {
|
|
3841
|
+
default: () => Repository106
|
|
3842
|
+
});
|
|
3843
|
+
var Repository106 = class {
|
|
3844
|
+
constructor({ api, route }) {
|
|
3845
|
+
this.api = api;
|
|
3846
|
+
this.route = route;
|
|
3847
|
+
}
|
|
3848
|
+
async find() {
|
|
3849
|
+
const response = await this.api.get(`${this.route}`);
|
|
3850
|
+
return response.data;
|
|
3851
|
+
}
|
|
3852
|
+
async findByStoreOperatorId(selector) {
|
|
3853
|
+
const response = await this.api.get(`${this.route}${selector.store_operator_id}`);
|
|
3854
|
+
return response.data;
|
|
3855
|
+
}
|
|
3856
|
+
async setStoreOperatorHighlights(body) {
|
|
3857
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
3858
|
+
return response.data;
|
|
3859
|
+
}
|
|
3860
|
+
};
|
|
3861
|
+
|
|
3837
3862
|
// src/modules/view/errorLog.ts
|
|
3838
3863
|
var errorLog_exports = {};
|
|
3839
3864
|
__export(errorLog_exports, {
|
|
3840
|
-
default: () =>
|
|
3865
|
+
default: () => Repository107
|
|
3841
3866
|
});
|
|
3842
|
-
var
|
|
3867
|
+
var Repository107 = class {
|
|
3843
3868
|
constructor({ api, route }) {
|
|
3844
3869
|
this.api = api;
|
|
3845
3870
|
this.route = route;
|
|
@@ -3852,9 +3877,9 @@ var Repository106 = class {
|
|
|
3852
3877
|
// src/modules/view/adminPanel.ts
|
|
3853
3878
|
var adminPanel_exports = {};
|
|
3854
3879
|
__export(adminPanel_exports, {
|
|
3855
|
-
default: () =>
|
|
3880
|
+
default: () => Repository108
|
|
3856
3881
|
});
|
|
3857
|
-
var
|
|
3882
|
+
var Repository108 = class {
|
|
3858
3883
|
constructor({ api, route }) {
|
|
3859
3884
|
this.api = api;
|
|
3860
3885
|
this.route = route;
|
|
@@ -3868,9 +3893,9 @@ var Repository107 = class {
|
|
|
3868
3893
|
// src/modules/supply/documentLineRm.ts
|
|
3869
3894
|
var documentLineRm_exports = {};
|
|
3870
3895
|
__export(documentLineRm_exports, {
|
|
3871
|
-
default: () =>
|
|
3896
|
+
default: () => Repository109
|
|
3872
3897
|
});
|
|
3873
|
-
var
|
|
3898
|
+
var Repository109 = class {
|
|
3874
3899
|
constructor({ api, route }) {
|
|
3875
3900
|
this.api = api;
|
|
3876
3901
|
this.route = route;
|
|
@@ -3889,9 +3914,9 @@ var Repository108 = class {
|
|
|
3889
3914
|
// src/modules/supply/documentLineMt.ts
|
|
3890
3915
|
var documentLineMt_exports = {};
|
|
3891
3916
|
__export(documentLineMt_exports, {
|
|
3892
|
-
default: () =>
|
|
3917
|
+
default: () => Repository110
|
|
3893
3918
|
});
|
|
3894
|
-
var
|
|
3919
|
+
var Repository110 = class {
|
|
3895
3920
|
constructor({ api, route }) {
|
|
3896
3921
|
this.api = api;
|
|
3897
3922
|
this.route = route;
|
|
@@ -3910,9 +3935,9 @@ var Repository109 = class {
|
|
|
3910
3935
|
// src/modules/user/chatSubscriber.ts
|
|
3911
3936
|
var chatSubscriber_exports = {};
|
|
3912
3937
|
__export(chatSubscriber_exports, {
|
|
3913
|
-
default: () =>
|
|
3938
|
+
default: () => Repository111
|
|
3914
3939
|
});
|
|
3915
|
-
var
|
|
3940
|
+
var Repository111 = class {
|
|
3916
3941
|
constructor({ api, route }) {
|
|
3917
3942
|
this.api = api;
|
|
3918
3943
|
this.route = route;
|
|
@@ -3956,9 +3981,9 @@ var Repository110 = class {
|
|
|
3956
3981
|
// src/modules/stock/tag.ts
|
|
3957
3982
|
var tag_exports = {};
|
|
3958
3983
|
__export(tag_exports, {
|
|
3959
|
-
default: () =>
|
|
3984
|
+
default: () => Repository112
|
|
3960
3985
|
});
|
|
3961
|
-
var
|
|
3986
|
+
var Repository112 = class {
|
|
3962
3987
|
constructor({ api, route }) {
|
|
3963
3988
|
this.api = api;
|
|
3964
3989
|
this.route = route;
|
|
@@ -3982,9 +4007,9 @@ var Repository111 = class {
|
|
|
3982
4007
|
// src/modules/stock/gmails.ts
|
|
3983
4008
|
var gmails_exports = {};
|
|
3984
4009
|
__export(gmails_exports, {
|
|
3985
|
-
default: () =>
|
|
4010
|
+
default: () => Repository113
|
|
3986
4011
|
});
|
|
3987
|
-
var
|
|
4012
|
+
var Repository113 = class {
|
|
3988
4013
|
constructor({ api, route }) {
|
|
3989
4014
|
this.api = api;
|
|
3990
4015
|
this.route = route;
|
|
@@ -4002,9 +4027,9 @@ var Repository112 = class {
|
|
|
4002
4027
|
// src/modules/document/NPF.ts
|
|
4003
4028
|
var NPF_exports = {};
|
|
4004
4029
|
__export(NPF_exports, {
|
|
4005
|
-
default: () =>
|
|
4030
|
+
default: () => Repository114
|
|
4006
4031
|
});
|
|
4007
|
-
var
|
|
4032
|
+
var Repository114 = class {
|
|
4008
4033
|
constructor({ api, route }) {
|
|
4009
4034
|
this.api = api;
|
|
4010
4035
|
this.route = route;
|
|
@@ -4018,9 +4043,9 @@ var Repository113 = class {
|
|
|
4018
4043
|
// src/modules/document/NRCL.ts
|
|
4019
4044
|
var NRCL_exports = {};
|
|
4020
4045
|
__export(NRCL_exports, {
|
|
4021
|
-
default: () =>
|
|
4046
|
+
default: () => Repository115
|
|
4022
4047
|
});
|
|
4023
|
-
var
|
|
4048
|
+
var Repository115 = class {
|
|
4024
4049
|
constructor({ api, route }) {
|
|
4025
4050
|
this.api = api;
|
|
4026
4051
|
this.route = route;
|
|
@@ -4035,9 +4060,9 @@ var Repository114 = class {
|
|
|
4035
4060
|
// src/modules/supply/currentAccount.ts
|
|
4036
4061
|
var currentAccount_exports = {};
|
|
4037
4062
|
__export(currentAccount_exports, {
|
|
4038
|
-
default: () =>
|
|
4063
|
+
default: () => Repository116
|
|
4039
4064
|
});
|
|
4040
|
-
var
|
|
4065
|
+
var Repository116 = class {
|
|
4041
4066
|
constructor({ api, route }) {
|
|
4042
4067
|
this.api = api;
|
|
4043
4068
|
this.route = route;
|
|
@@ -4098,9 +4123,9 @@ var Repository115 = class {
|
|
|
4098
4123
|
// src/modules/supply/paymentBatch.ts
|
|
4099
4124
|
var paymentBatch_exports = {};
|
|
4100
4125
|
__export(paymentBatch_exports, {
|
|
4101
|
-
default: () =>
|
|
4126
|
+
default: () => Repository117
|
|
4102
4127
|
});
|
|
4103
|
-
var
|
|
4128
|
+
var Repository117 = class {
|
|
4104
4129
|
constructor({ api, route }) {
|
|
4105
4130
|
this.api = api;
|
|
4106
4131
|
this.route = route;
|
|
@@ -4144,9 +4169,9 @@ var Repository116 = class {
|
|
|
4144
4169
|
// src/modules/ui/portal.ts
|
|
4145
4170
|
var portal_exports = {};
|
|
4146
4171
|
__export(portal_exports, {
|
|
4147
|
-
default: () =>
|
|
4172
|
+
default: () => Repository118
|
|
4148
4173
|
});
|
|
4149
|
-
var
|
|
4174
|
+
var Repository118 = class {
|
|
4150
4175
|
constructor({ api, route }) {
|
|
4151
4176
|
this.api = api;
|
|
4152
4177
|
this.route = route;
|
|
@@ -4170,9 +4195,9 @@ var Repository117 = class {
|
|
|
4170
4195
|
// src/modules/supply/googleSheetPool.ts
|
|
4171
4196
|
var googleSheetPool_exports = {};
|
|
4172
4197
|
__export(googleSheetPool_exports, {
|
|
4173
|
-
default: () =>
|
|
4198
|
+
default: () => Repository119
|
|
4174
4199
|
});
|
|
4175
|
-
var
|
|
4200
|
+
var Repository119 = class {
|
|
4176
4201
|
constructor({ api, route }) {
|
|
4177
4202
|
this.api = api;
|
|
4178
4203
|
this.route = route;
|
|
@@ -4186,9 +4211,9 @@ var Repository118 = class {
|
|
|
4186
4211
|
// src/modules/stock/accountCode.ts
|
|
4187
4212
|
var accountCode_exports = {};
|
|
4188
4213
|
__export(accountCode_exports, {
|
|
4189
|
-
default: () =>
|
|
4214
|
+
default: () => Repository120
|
|
4190
4215
|
});
|
|
4191
|
-
var
|
|
4216
|
+
var Repository120 = class {
|
|
4192
4217
|
constructor({ api, route }) {
|
|
4193
4218
|
this.api = api;
|
|
4194
4219
|
this.route = route;
|
|
@@ -4204,9 +4229,9 @@ var Repository119 = class {
|
|
|
4204
4229
|
// src/modules/llm/llm.ts
|
|
4205
4230
|
var llm_exports = {};
|
|
4206
4231
|
__export(llm_exports, {
|
|
4207
|
-
default: () =>
|
|
4232
|
+
default: () => Repository121
|
|
4208
4233
|
});
|
|
4209
|
-
var
|
|
4234
|
+
var Repository121 = class {
|
|
4210
4235
|
constructor({ api, route }) {
|
|
4211
4236
|
this.api = api;
|
|
4212
4237
|
this.route = route;
|
|
@@ -4260,9 +4285,9 @@ var Repository120 = class {
|
|
|
4260
4285
|
// src/modules/integration/patchNotes.ts
|
|
4261
4286
|
var patchNotes_exports = {};
|
|
4262
4287
|
__export(patchNotes_exports, {
|
|
4263
|
-
default: () =>
|
|
4288
|
+
default: () => Repository122
|
|
4264
4289
|
});
|
|
4265
|
-
var
|
|
4290
|
+
var Repository122 = class {
|
|
4266
4291
|
constructor({ api, route }) {
|
|
4267
4292
|
this.api = api;
|
|
4268
4293
|
this.route = route;
|
|
@@ -4280,9 +4305,9 @@ var Repository121 = class {
|
|
|
4280
4305
|
// src/modules/supply/documentHeaderSurvey.ts
|
|
4281
4306
|
var documentHeaderSurvey_exports = {};
|
|
4282
4307
|
__export(documentHeaderSurvey_exports, {
|
|
4283
|
-
default: () =>
|
|
4308
|
+
default: () => Repository123
|
|
4284
4309
|
});
|
|
4285
|
-
var
|
|
4310
|
+
var Repository123 = class {
|
|
4286
4311
|
constructor({ api, route }) {
|
|
4287
4312
|
this.api = api;
|
|
4288
4313
|
this.route = route;
|
|
@@ -4304,9 +4329,9 @@ var Repository122 = class {
|
|
|
4304
4329
|
// src/modules/supply/documentHeaderSubscriber.ts
|
|
4305
4330
|
var documentHeaderSubscriber_exports = {};
|
|
4306
4331
|
__export(documentHeaderSubscriber_exports, {
|
|
4307
|
-
default: () =>
|
|
4332
|
+
default: () => Repository124
|
|
4308
4333
|
});
|
|
4309
|
-
var
|
|
4334
|
+
var Repository124 = class {
|
|
4310
4335
|
constructor({ api, route }) {
|
|
4311
4336
|
this.api = api;
|
|
4312
4337
|
this.route = route;
|
|
@@ -4328,9 +4353,9 @@ var Repository123 = class {
|
|
|
4328
4353
|
// src/modules/stock/googleCalendar.ts
|
|
4329
4354
|
var googleCalendar_exports = {};
|
|
4330
4355
|
__export(googleCalendar_exports, {
|
|
4331
|
-
default: () =>
|
|
4356
|
+
default: () => Repository125
|
|
4332
4357
|
});
|
|
4333
|
-
var
|
|
4358
|
+
var Repository125 = class {
|
|
4334
4359
|
constructor({ api, route }) {
|
|
4335
4360
|
this.api = api;
|
|
4336
4361
|
this.route = route;
|
|
@@ -4348,9 +4373,9 @@ var Repository124 = class {
|
|
|
4348
4373
|
// src/modules/stock/productLocation.ts
|
|
4349
4374
|
var productLocation_exports = {};
|
|
4350
4375
|
__export(productLocation_exports, {
|
|
4351
|
-
default: () =>
|
|
4376
|
+
default: () => Repository126
|
|
4352
4377
|
});
|
|
4353
|
-
var
|
|
4378
|
+
var Repository126 = class {
|
|
4354
4379
|
constructor({ api, route }) {
|
|
4355
4380
|
this.api = api;
|
|
4356
4381
|
this.route = route;
|
|
@@ -4615,46 +4640,49 @@ var API = class {
|
|
|
4615
4640
|
getModuleParams("stock", Nomalism.ChatRapidMessage.Route)
|
|
4616
4641
|
);
|
|
4617
4642
|
this.SideMenu = new Repository105(getModuleParams("stock", Nomalism.SideMenu.Route));
|
|
4618
|
-
this.
|
|
4619
|
-
|
|
4620
|
-
|
|
4643
|
+
this.SidemenuHighlight = new Repository106(
|
|
4644
|
+
getModuleParams("stock", Nomalism.SidemenuHighlight.Route)
|
|
4645
|
+
);
|
|
4646
|
+
this.ErrorLog = new Repository107(getModuleParams("view", Nomalism.ErrorLog.Route));
|
|
4647
|
+
this.AdminPanel = new Repository108(getModuleParams("view", Nomalism.AdminPanel.Route));
|
|
4648
|
+
this.DocumentLineRm = new Repository109(
|
|
4621
4649
|
getModuleParams("stock", Nomalism.DocumentLineRm.Route)
|
|
4622
4650
|
);
|
|
4623
|
-
this.DocumentLineMt = new
|
|
4651
|
+
this.DocumentLineMt = new Repository110(
|
|
4624
4652
|
getModuleParams("stock", Nomalism.DocumentLineMt.Route)
|
|
4625
4653
|
);
|
|
4626
|
-
this.ChatSubscriber = new
|
|
4654
|
+
this.ChatSubscriber = new Repository111(
|
|
4627
4655
|
getModuleParams("users", Nomalism.ChatSubscriber.Route)
|
|
4628
4656
|
);
|
|
4629
|
-
this.Tag = new
|
|
4630
|
-
this.Gmails = new
|
|
4631
|
-
this.NPF = new
|
|
4632
|
-
this.NRCL = new
|
|
4633
|
-
this.PaymentBatch = new
|
|
4657
|
+
this.Tag = new Repository112(getModuleParams("stock", Nomalism.Tag.Route));
|
|
4658
|
+
this.Gmails = new Repository113(getModuleParams("stock", Nomalism.Gmails.Route));
|
|
4659
|
+
this.NPF = new Repository114(getModuleParams("stock", Nomalism.NPF.Route));
|
|
4660
|
+
this.NRCL = new Repository115(getModuleParams("stock", Nomalism.NRCL.Route));
|
|
4661
|
+
this.PaymentBatch = new Repository117(
|
|
4634
4662
|
getModuleParams("stock", Nomalism.PaymentBatch.Route)
|
|
4635
4663
|
);
|
|
4636
|
-
this.CurrentAccount = new
|
|
4664
|
+
this.CurrentAccount = new Repository116(
|
|
4637
4665
|
getModuleParams("stock", Nomalism.CurrentAccount.Route)
|
|
4638
4666
|
);
|
|
4639
|
-
this.Portal = new
|
|
4640
|
-
this.GoogleSheetPool = new
|
|
4667
|
+
this.Portal = new Repository118(getModuleParams("stock", Nomalism.Portal.Route));
|
|
4668
|
+
this.GoogleSheetPool = new Repository119(
|
|
4641
4669
|
getModuleParams("stock", Nomalism.GoogleSheetPool.Route)
|
|
4642
4670
|
);
|
|
4643
|
-
this.AccountCode = new
|
|
4644
|
-
this.LLM = new
|
|
4645
|
-
this.PatchNotes = new
|
|
4671
|
+
this.AccountCode = new Repository120(getModuleParams("stock", Nomalism.AccountCode.Route));
|
|
4672
|
+
this.LLM = new Repository121(getModuleParams("llm", Nomalism.LLM.Route));
|
|
4673
|
+
this.PatchNotes = new Repository122(
|
|
4646
4674
|
getModuleParams("integration", Nomalism.PatchNotes.Route)
|
|
4647
4675
|
);
|
|
4648
|
-
this.DocumentHeaderSurvey = new
|
|
4676
|
+
this.DocumentHeaderSurvey = new Repository123(
|
|
4649
4677
|
getModuleParams("stock", Nomalism.DocumentHeaderSurvey.Route)
|
|
4650
4678
|
);
|
|
4651
|
-
this.DocumentHeaderSubscriber = new
|
|
4679
|
+
this.DocumentHeaderSubscriber = new Repository124(
|
|
4652
4680
|
getModuleParams("stock", Nomalism.DocumentHeaderSubscriber.Route)
|
|
4653
4681
|
);
|
|
4654
|
-
this.GoogleCalendar = new
|
|
4682
|
+
this.GoogleCalendar = new Repository125(
|
|
4655
4683
|
getModuleParams("stock", Nomalism.GoogleCalendar.Route)
|
|
4656
4684
|
);
|
|
4657
|
-
this.ProductLocation = new
|
|
4685
|
+
this.ProductLocation = new Repository126(
|
|
4658
4686
|
getModuleParams("stock", Nomalism.ProductLocation.Route)
|
|
4659
4687
|
);
|
|
4660
4688
|
}
|
package/dist/main.d.ts
CHANGED
|
@@ -105,6 +105,7 @@ import ThemeClass from './modules/user/theme';
|
|
|
105
105
|
import DashboardClass from './modules/stock/dashboard';
|
|
106
106
|
import ChatRapidMessageClass from './modules/stock/chatRapidMessage';
|
|
107
107
|
import SideMenuClass from './modules/ui/sideMenu';
|
|
108
|
+
import SidemenuHighlightClass from './modules/ui/sidemenuHighlight';
|
|
108
109
|
import ErrorLogClass from './modules/view/errorLog';
|
|
109
110
|
import AdminPanelClass from './modules/view/adminPanel';
|
|
110
111
|
import DocumentLineRmClass from './modules/supply/documentLineRm';
|
|
@@ -222,6 +223,7 @@ export * as Theme from './modules/user/theme';
|
|
|
222
223
|
export * as Dashboard from './modules/stock/dashboard';
|
|
223
224
|
export * as ChatRapidMessage from './modules/stock/chatRapidMessage';
|
|
224
225
|
export * as SideMenu from './modules/ui/sideMenu';
|
|
226
|
+
export * as SidemenuHighlight from './modules/ui/sidemenuHighlight';
|
|
225
227
|
export * as ErrorLog from './modules/view/errorLog';
|
|
226
228
|
export * as AdminPanel from './modules/view/adminPanel';
|
|
227
229
|
export * as DocumentLineRm from './modules/supply/documentLineRm';
|
|
@@ -365,6 +367,7 @@ export declare class API {
|
|
|
365
367
|
Dashboard: DashboardClass;
|
|
366
368
|
ChatRapidMessage: ChatRapidMessageClass;
|
|
367
369
|
SideMenu: SideMenuClass;
|
|
370
|
+
SidemenuHighlight: SidemenuHighlightClass;
|
|
368
371
|
ErrorLog: ErrorLogClass;
|
|
369
372
|
AdminPanel: AdminPanelClass;
|
|
370
373
|
DocumentLineRm: DocumentLineRmClass;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Nomalism from '@nomalism-com/types';
|
|
2
|
+
import { IModuleConstructor } from '../../main';
|
|
3
|
+
export default class Repository implements Nomalism.SidemenuHighlight.IRepository {
|
|
4
|
+
route: string;
|
|
5
|
+
private api;
|
|
6
|
+
constructor({ api, route }: IModuleConstructor);
|
|
7
|
+
find(): Promise<Nomalism.SidemenuHighlight.IFindResponseItem[]>;
|
|
8
|
+
findByStoreOperatorId(selector: Nomalism.SidemenuHighlight.IFindByStoreOperatorIdRequest): Promise<Nomalism.SidemenuHighlight.IFindByStoreOperatorIdResponse>;
|
|
9
|
+
setStoreOperatorHighlights(body: Nomalism.SidemenuHighlight.ISetStoreOperatorHighlightsRequest): Promise<void>;
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/api",
|
|
3
3
|
"description": "A nomalism API package for performing HTTP requests on API endpoints",
|
|
4
|
-
"version": "0.45.
|
|
4
|
+
"version": "0.45.38",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"prepack": "npm run lint && npm run build"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@nomalism-com/types": "^0.45.
|
|
26
|
+
"@nomalism-com/types": "^0.45.40",
|
|
27
27
|
"axios": "^1.16.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|