@fossa-app/bridge 0.1.8 → 0.1.9
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/Models/ApiModels/EnvelopeModels.d.ts +21 -0
- package/dist/Models/ApiModels/EnvelopeModels.js +34 -0
- package/dist/Models/ApiModels/EnvelopeModels.js.map +1 -0
- package/dist/Models/{ApiModels.d.ts → ApiModels/PayloadModels.d.ts} +30 -82
- package/dist/Models/ApiModels/PayloadModels.js +256 -0
- package/dist/Models/ApiModels/PayloadModels.js.map +1 -0
- package/dist/Models/ApiModels/SharedModels.d.ts +41 -0
- package/dist/Models/ApiModels/SharedModels.js +74 -0
- package/dist/Models/ApiModels/SharedModels.js.map +1 -0
- package/dist/Services/Clients/BranchClient.d.ts +13 -7
- package/dist/Services/Clients/BranchClient.js +29 -9
- package/dist/Services/Clients/BranchClient.js.map +1 -1
- package/dist/Services/Clients/CompanyClient.d.ts +9 -4
- package/dist/Services/Clients/CompanyClient.js +20 -4
- package/dist/Services/Clients/CompanyClient.js.map +1 -1
- package/dist/Services/Clients/CompanyLicenseClient.d.ts +4 -1
- package/dist/Services/Clients/CompanyLicenseClient.js +8 -0
- package/dist/Services/Clients/CompanyLicenseClient.js.map +1 -1
- package/dist/Services/Clients/CompanySettingsClient.d.ts +9 -4
- package/dist/Services/Clients/CompanySettingsClient.js +20 -4
- package/dist/Services/Clients/CompanySettingsClient.js.map +1 -1
- package/dist/Services/Clients/DepartmentClient.d.ts +13 -7
- package/dist/Services/Clients/DepartmentClient.js +29 -9
- package/dist/Services/Clients/DepartmentClient.js.map +1 -1
- package/dist/Services/Clients/EmployeeClient.d.ts +16 -9
- package/dist/Services/Clients/EmployeeClient.js +38 -14
- package/dist/Services/Clients/EmployeeClient.js.map +1 -1
- package/dist/Services/Clients/IBranchClient.d.ts +9 -0
- package/dist/Services/Clients/IBranchClient.js +3 -0
- package/dist/Services/Clients/IBranchClient.js.map +1 -0
- package/dist/Services/Clients/ICompanyClient.d.ts +7 -0
- package/dist/Services/Clients/ICompanyClient.js +3 -0
- package/dist/Services/Clients/ICompanyClient.js.map +1 -0
- package/dist/Services/Clients/ICompanyLicenseClient.d.ts +4 -0
- package/dist/Services/Clients/ICompanyLicenseClient.js +3 -0
- package/dist/Services/Clients/ICompanyLicenseClient.js.map +1 -0
- package/dist/Services/Clients/ICompanySettingsClient.d.ts +7 -0
- package/dist/Services/Clients/ICompanySettingsClient.js +3 -0
- package/dist/Services/Clients/ICompanySettingsClient.js.map +1 -0
- package/dist/Services/Clients/IDepartmentClient.d.ts +9 -0
- package/dist/Services/Clients/IDepartmentClient.js +3 -0
- package/dist/Services/Clients/IDepartmentClient.js.map +1 -0
- package/dist/Services/Clients/IEmployeeClient.d.ts +10 -0
- package/dist/Services/Clients/IEmployeeClient.js +3 -0
- package/dist/Services/Clients/IEmployeeClient.js.map +1 -0
- package/dist/Services/Clients/IIdentityClient.d.ts +3 -0
- package/dist/Services/Clients/IIdentityClient.js +3 -0
- package/dist/Services/Clients/IIdentityClient.js.map +1 -0
- package/dist/Services/Clients/ISystemLicenseClient.d.ts +3 -0
- package/dist/Services/Clients/ISystemLicenseClient.js +3 -0
- package/dist/Services/Clients/ISystemLicenseClient.js.map +1 -0
- package/dist/Services/Clients/IdentityClient.d.ts +3 -1
- package/dist/Services/Clients/IdentityClient.js +4 -0
- package/dist/Services/Clients/IdentityClient.js.map +1 -1
- package/dist/Services/Clients/SystemLicenseClient.d.ts +3 -1
- package/dist/Services/Clients/SystemLicenseClient.js +4 -0
- package/dist/Services/Clients/SystemLicenseClient.js.map +1 -1
- package/package.json +1 -1
- package/dist/Models/ApiModels.js +0 -350
- package/dist/Models/ApiModels.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SharedModels.js","sourceRoot":"","sources":["../../../fable_output/Models/ApiModels/SharedModels.ts"],"names":[],"mappings":";;;AAuBA,4DAEC;AAYD,4DAEC;AAgBD,8DAEC;AAYD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C,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;CACJ;AAZD,8CAYC;AAED,SAAgB,6BAA6B;IACzC,OAAO,IAAA,2BAAW,EAAC,iDAAiD,EAAE,EAAE,EAAE,iBAAiB,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,UAAU,EAAE,sBAAsB,EAAE,CAAC,EAAE,CAAC,UAAU,EAAE,sBAAsB,EAAE,CAAC,EAAE,CAAC,WAAW,EAAE,IAAA,2BAAW,EAAC,IAAA,0BAAU,EAAC,uBAAuB,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,EAAE,IAAA,2BAAW,EAAC,IAAA,0BAAU,EAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1T,CAAC"}
|
|
@@ -1,16 +1,22 @@
|
|
|
1
|
+
import { BranchModificationModel, BranchQueryRequestModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
2
|
+
import { int64 } from "../../fable_modules/fable-library-ts.5.0.0-rc.1/BigInt.ts";
|
|
1
3
|
import { IHttpTransport } from "../IHttpTransport.ts";
|
|
4
|
+
import { IBranchClient } from "./IBranchClient.ts";
|
|
2
5
|
import { TypeInfo } from "../../fable_modules/fable-library-ts.5.0.0-rc.1/Reflection.ts";
|
|
3
|
-
|
|
4
|
-
import { int64 } from "../../fable_modules/fable-library-ts.5.0.0-rc.1/BigInt.ts";
|
|
5
|
-
export declare class BranchClient {
|
|
6
|
+
export declare class BranchClient implements IBranchClient {
|
|
6
7
|
readonly transport: IHttpTransport;
|
|
7
8
|
constructor(transport: IHttpTransport);
|
|
9
|
+
GetBranchesAsync(query: BranchQueryRequestModel): any;
|
|
10
|
+
GetBranchAsync(id: int64): any;
|
|
11
|
+
CreateBranchAsync(model: BranchModificationModel): any;
|
|
12
|
+
UpdateBranchAsync(id: int64, model: BranchModificationModel): any;
|
|
13
|
+
DeleteBranchAsync(id: int64): any;
|
|
8
14
|
}
|
|
9
15
|
export declare function BranchClient_$reflection(): TypeInfo;
|
|
10
16
|
export declare function BranchClient_$ctor_Z7C557C0(transport: IHttpTransport): BranchClient;
|
|
11
|
-
export declare function
|
|
17
|
+
export declare function BranchClient__GetBranchesAsync_Z113C1396(_: BranchClient, query: BranchQueryRequestModel): any;
|
|
12
18
|
export declare function BranchClient__GetBranchAsync_Z524259C1(_: BranchClient, id: int64): any;
|
|
13
|
-
export declare function
|
|
14
|
-
export declare function
|
|
19
|
+
export declare function BranchClient__CreateBranchAsync_4022AC0F(_: BranchClient, model: BranchModificationModel): any;
|
|
20
|
+
export declare function BranchClient__UpdateBranchAsync_2550C210(_: BranchClient, id: int64, model: BranchModificationModel): any;
|
|
15
21
|
export declare function BranchClient__DeleteBranchAsync_Z524259C1(_: BranchClient, id: int64): any;
|
|
16
|
-
export declare function
|
|
22
|
+
export declare function BranchClient__buildUrl_Z113C1396(this$: BranchClient, queryParams: BranchQueryRequestModel): string;
|
|
@@ -3,12 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.BranchClient = void 0;
|
|
4
4
|
exports.BranchClient_$reflection = BranchClient_$reflection;
|
|
5
5
|
exports.BranchClient_$ctor_Z7C557C0 = BranchClient_$ctor_Z7C557C0;
|
|
6
|
-
exports.
|
|
6
|
+
exports.BranchClient__GetBranchesAsync_Z113C1396 = BranchClient__GetBranchesAsync_Z113C1396;
|
|
7
7
|
exports.BranchClient__GetBranchAsync_Z524259C1 = BranchClient__GetBranchAsync_Z524259C1;
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
8
|
+
exports.BranchClient__CreateBranchAsync_4022AC0F = BranchClient__CreateBranchAsync_4022AC0F;
|
|
9
|
+
exports.BranchClient__UpdateBranchAsync_2550C210 = BranchClient__UpdateBranchAsync_2550C210;
|
|
10
10
|
exports.BranchClient__DeleteBranchAsync_Z524259C1 = BranchClient__DeleteBranchAsync_Z524259C1;
|
|
11
|
-
exports.
|
|
11
|
+
exports.BranchClient__buildUrl_Z113C1396 = BranchClient__buildUrl_Z113C1396;
|
|
12
12
|
const Reflection_ts_1 = require("../../fable_modules/fable-library-ts.5.0.0-rc.1/Reflection.js");
|
|
13
13
|
const UrlHelpers_ts_1 = require("../UrlHelpers.js");
|
|
14
14
|
const Endpoints_ts_1 = require("../Endpoints.js");
|
|
@@ -21,6 +21,26 @@ class BranchClient {
|
|
|
21
21
|
constructor(transport) {
|
|
22
22
|
this.transport = transport;
|
|
23
23
|
}
|
|
24
|
+
GetBranchesAsync(query) {
|
|
25
|
+
const this$ = this;
|
|
26
|
+
return BranchClient__GetBranchesAsync_Z113C1396(this$, query);
|
|
27
|
+
}
|
|
28
|
+
GetBranchAsync(id) {
|
|
29
|
+
const this$ = this;
|
|
30
|
+
return BranchClient__GetBranchAsync_Z524259C1(this$, id);
|
|
31
|
+
}
|
|
32
|
+
CreateBranchAsync(model) {
|
|
33
|
+
const this$ = this;
|
|
34
|
+
return BranchClient__CreateBranchAsync_4022AC0F(this$, model);
|
|
35
|
+
}
|
|
36
|
+
UpdateBranchAsync(id, model) {
|
|
37
|
+
const this$ = this;
|
|
38
|
+
return BranchClient__UpdateBranchAsync_2550C210(this$, id, model);
|
|
39
|
+
}
|
|
40
|
+
DeleteBranchAsync(id) {
|
|
41
|
+
const this$ = this;
|
|
42
|
+
return BranchClient__DeleteBranchAsync_Z524259C1(this$, id);
|
|
43
|
+
}
|
|
24
44
|
}
|
|
25
45
|
exports.BranchClient = BranchClient;
|
|
26
46
|
function BranchClient_$reflection() {
|
|
@@ -29,22 +49,22 @@ function BranchClient_$reflection() {
|
|
|
29
49
|
function BranchClient_$ctor_Z7C557C0(transport) {
|
|
30
50
|
return new BranchClient(transport);
|
|
31
51
|
}
|
|
32
|
-
function
|
|
33
|
-
return _.transport.GetAsync(
|
|
52
|
+
function BranchClient__GetBranchesAsync_Z113C1396(_, query) {
|
|
53
|
+
return _.transport.GetAsync(BranchClient__buildUrl_Z113C1396(_, query));
|
|
34
54
|
}
|
|
35
55
|
function BranchClient__GetBranchAsync_Z524259C1(_, id) {
|
|
36
56
|
return _.transport.GetAsync((0, UrlHelpers_ts_1.composeRelativeUrl)((0, List_ts_1.ofArray)([(0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.BasePath), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.Branches), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z524259C1)(id)]), (0, List_ts_1.empty)()));
|
|
37
57
|
}
|
|
38
|
-
function
|
|
58
|
+
function BranchClient__CreateBranchAsync_4022AC0F(_, model) {
|
|
39
59
|
return _.transport.PostAsync((0, UrlHelpers_ts_1.composeRelativeUrl)((0, List_ts_1.ofArray)([(0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.BasePath), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.Branches)]), (0, List_ts_1.empty)()), model);
|
|
40
60
|
}
|
|
41
|
-
function
|
|
61
|
+
function BranchClient__UpdateBranchAsync_2550C210(_, id, model) {
|
|
42
62
|
return _.transport.PutAsync((0, UrlHelpers_ts_1.composeRelativeUrl)((0, List_ts_1.ofArray)([(0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.BasePath), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.Branches), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z524259C1)(id)]), (0, List_ts_1.empty)()), model);
|
|
43
63
|
}
|
|
44
64
|
function BranchClient__DeleteBranchAsync_Z524259C1(_, id) {
|
|
45
65
|
return _.transport.DeleteAsync((0, UrlHelpers_ts_1.composeRelativeUrl)((0, List_ts_1.ofArray)([(0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.BasePath), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.Branches), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z524259C1)(id)]), (0, List_ts_1.empty)()));
|
|
46
66
|
}
|
|
47
|
-
function
|
|
67
|
+
function BranchClient__buildUrl_Z113C1396(this$, queryParams) {
|
|
48
68
|
const parameters = (0, Seq_ts_1.toList)((0, Seq_ts_1.delay)(() => {
|
|
49
69
|
let matchValue = undefined, ids_1 = undefined;
|
|
50
70
|
return (0, Seq_ts_1.append)((matchValue = (0, Option_ts_1.ofNullable)(queryParams.Id), (matchValue != null) ? (((0, CollectionUtil_ts_1.count)((0, Option_ts_1.value)(matchValue)) > 0) ? ((ids_1 = (0, Option_ts_1.value)(matchValue), (0, Seq_ts_1.map)((id) => ["Id", (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z524259C1)(id)], ids_1))) : ((0, Seq_ts_1.empty)())) : ((0, Seq_ts_1.empty)())), (0, Seq_ts_1.delay)(() => (0, Seq_ts_1.append)(!(0, String_ts_1.isNullOrEmpty)(queryParams.Search) ? (0, Seq_ts_1.singleton)(["Search", (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(queryParams.Search)]) : (0, Seq_ts_1.empty)(), (0, Seq_ts_1.delay)(() => (0, Seq_ts_1.append)((queryParams.PageNumber != null) ? (0, Seq_ts_1.singleton)(["PageNumber", (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z524259A4)((0, Option_ts_1.nonNullValue)(queryParams.PageNumber))]) : (0, Seq_ts_1.empty)(), (0, Seq_ts_1.delay)(() => ((queryParams.PageSize != null) ? (0, Seq_ts_1.singleton)(["PageSize", (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z524259A4)((0, Option_ts_1.nonNullValue)(queryParams.PageSize))]) : (0, Seq_ts_1.empty)())))))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BranchClient.js","sourceRoot":"","sources":["../../../fable_output/Services/Clients/BranchClient.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"BranchClient.js","sourceRoot":"","sources":["../../../fable_output/Services/Clients/BranchClient.ts"],"names":[],"mappings":";;;AA0CA,4DAEC;AAED,kEAEC;AAED,4FAEC;AAED,wFAEC;AAED,4FAEC;AAED,4FAEC;AAED,8FAEC;AAED,4EAMC;AAvED,iGAAqG;AAErG,oDAA4J;AAC5J,kDAAqD;AACrD,qFAAqG;AACrG,mFAAiI;AACjI,yFAAoH;AACpH,yGAA0F;AAC1F,yFAA0F;AAE1F,MAAa,YAAY;IAErB,YAAY,SAAyB;QACjC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IACD,gBAAgB,CAAC,KAA8B;QAC3C,MAAM,KAAK,GAAiB,IAAI,CAAC;QACjC,OAAO,wCAAwC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAClE,CAAC;IACD,cAAc,CAAC,EAAS;QACpB,MAAM,KAAK,GAAiB,IAAI,CAAC;QACjC,OAAO,sCAAsC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAC7D,CAAC;IACD,iBAAiB,CAAC,KAA8B;QAC5C,MAAM,KAAK,GAAiB,IAAI,CAAC;QACjC,OAAO,wCAAwC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAClE,CAAC;IACD,iBAAiB,CAAC,EAAS,EAAE,KAA8B;QACvD,MAAM,KAAK,GAAiB,IAAI,CAAC;QACjC,OAAO,wCAAwC,CAAC,KAAK,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;IACtE,CAAC;IACD,iBAAiB,CAAC,EAAS;QACvB,MAAM,KAAK,GAAiB,IAAI,CAAC;QACjC,OAAO,yCAAyC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAChE,CAAC;CACJ;AAzBD,oCAyBC;AAED,SAAgB,wBAAwB;IACpC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,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAA,kBAAS,EAAoB,CAAC,QAAQ,EAAE,IAAA,6CAA6B,EAAC,WAAW,CAAC,MAAM,CAAC,CAAsB,CAAC,CAAC,CAAC,CAAC,IAAA,cAAO,GAAqB,EAAE,IAAA,cAAK,EAAoB,GAAgC,EAAE,CAAC,IAAA,eAAM,EAAoB,CAAC,WAAW,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAA,kBAAS,EAAoB,CAAC,YAAY,EAAE,IAAA,6CAA6B,EAAC,IAAA,wBAAY,EAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAsB,CAAC,CAAC,CAAC,CAAC,IAAA,cAAO,GAAqB,EAAE,IAAA,cAAK,EAAoB,GAAgC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAA,kBAAS,EAAoB,CAAC,UAAU,EAAE,IAAA,6CAA6B,EAAC,IAAA,wBAAY,EAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAsB,CAAC,CAAC,CAAC,CAAC,IAAA,cAAO,GAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7qC,CAAC,CAAC,CAAC,CAAC;IACJ,OAAO,IAAA,kCAAkB,EAAC,IAAA,iBAAO,EAAC,CAAC,IAAA,6CAA6B,EAAC,uBAAQ,CAAC,EAAE,IAAA,6CAA6B,EAAC,uBAAQ,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;AACvI,CAAC"}
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
+
import { CompanyModificationModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
1
2
|
import { IHttpTransport } from "../IHttpTransport.ts";
|
|
3
|
+
import { ICompanyClient } from "./ICompanyClient.ts";
|
|
2
4
|
import { TypeInfo } from "../../fable_modules/fable-library-ts.5.0.0-rc.1/Reflection.ts";
|
|
3
|
-
|
|
4
|
-
export declare class CompanyClient {
|
|
5
|
+
export declare class CompanyClient implements ICompanyClient {
|
|
5
6
|
readonly transport: IHttpTransport;
|
|
6
7
|
constructor(transport: IHttpTransport);
|
|
8
|
+
GetCompanyAsync(): any;
|
|
9
|
+
CreateCompanyAsync(model: CompanyModificationModel): any;
|
|
10
|
+
UpdateCompanyAsync(model: CompanyModificationModel): any;
|
|
11
|
+
DeleteCompanyAsync(): any;
|
|
7
12
|
}
|
|
8
13
|
export declare function CompanyClient_$reflection(): TypeInfo;
|
|
9
14
|
export declare function CompanyClient_$ctor_Z7C557C0(transport: IHttpTransport): CompanyClient;
|
|
10
15
|
export declare function CompanyClient__GetCompanyAsync(_: CompanyClient): any;
|
|
11
|
-
export declare function
|
|
12
|
-
export declare function
|
|
16
|
+
export declare function CompanyClient__CreateCompanyAsync_4E5BE73C(_: CompanyClient, model: CompanyModificationModel): any;
|
|
17
|
+
export declare function CompanyClient__UpdateCompanyAsync_4E5BE73C(_: CompanyClient, model: CompanyModificationModel): any;
|
|
13
18
|
export declare function CompanyClient__DeleteCompanyAsync(_: CompanyClient): any;
|
|
@@ -4,8 +4,8 @@ exports.CompanyClient = void 0;
|
|
|
4
4
|
exports.CompanyClient_$reflection = CompanyClient_$reflection;
|
|
5
5
|
exports.CompanyClient_$ctor_Z7C557C0 = CompanyClient_$ctor_Z7C557C0;
|
|
6
6
|
exports.CompanyClient__GetCompanyAsync = CompanyClient__GetCompanyAsync;
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
7
|
+
exports.CompanyClient__CreateCompanyAsync_4E5BE73C = CompanyClient__CreateCompanyAsync_4E5BE73C;
|
|
8
|
+
exports.CompanyClient__UpdateCompanyAsync_4E5BE73C = CompanyClient__UpdateCompanyAsync_4E5BE73C;
|
|
9
9
|
exports.CompanyClient__DeleteCompanyAsync = CompanyClient__DeleteCompanyAsync;
|
|
10
10
|
const Reflection_ts_1 = require("../../fable_modules/fable-library-ts.5.0.0-rc.1/Reflection.js");
|
|
11
11
|
const UrlHelpers_ts_1 = require("../UrlHelpers.js");
|
|
@@ -15,6 +15,22 @@ class CompanyClient {
|
|
|
15
15
|
constructor(transport) {
|
|
16
16
|
this.transport = transport;
|
|
17
17
|
}
|
|
18
|
+
GetCompanyAsync() {
|
|
19
|
+
const this$ = this;
|
|
20
|
+
return CompanyClient__GetCompanyAsync(this$);
|
|
21
|
+
}
|
|
22
|
+
CreateCompanyAsync(model) {
|
|
23
|
+
const this$ = this;
|
|
24
|
+
return CompanyClient__CreateCompanyAsync_4E5BE73C(this$, model);
|
|
25
|
+
}
|
|
26
|
+
UpdateCompanyAsync(model) {
|
|
27
|
+
const this$ = this;
|
|
28
|
+
return CompanyClient__UpdateCompanyAsync_4E5BE73C(this$, model);
|
|
29
|
+
}
|
|
30
|
+
DeleteCompanyAsync() {
|
|
31
|
+
const this$ = this;
|
|
32
|
+
return CompanyClient__DeleteCompanyAsync(this$);
|
|
33
|
+
}
|
|
18
34
|
}
|
|
19
35
|
exports.CompanyClient = CompanyClient;
|
|
20
36
|
function CompanyClient_$reflection() {
|
|
@@ -26,10 +42,10 @@ function CompanyClient_$ctor_Z7C557C0(transport) {
|
|
|
26
42
|
function CompanyClient__GetCompanyAsync(_) {
|
|
27
43
|
return _.transport.GetAsync((0, UrlHelpers_ts_1.composeRelativeUrl)((0, List_ts_1.ofArray)([(0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.BasePath), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.Company)]), (0, List_ts_1.empty)()));
|
|
28
44
|
}
|
|
29
|
-
function
|
|
45
|
+
function CompanyClient__CreateCompanyAsync_4E5BE73C(_, model) {
|
|
30
46
|
return _.transport.PostAsync((0, UrlHelpers_ts_1.composeRelativeUrl)((0, List_ts_1.ofArray)([(0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.BasePath), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.Company)]), (0, List_ts_1.empty)()), model);
|
|
31
47
|
}
|
|
32
|
-
function
|
|
48
|
+
function CompanyClient__UpdateCompanyAsync_4E5BE73C(_, model) {
|
|
33
49
|
return _.transport.PutAsync((0, UrlHelpers_ts_1.composeRelativeUrl)((0, List_ts_1.ofArray)([(0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.BasePath), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.Company)]), (0, List_ts_1.empty)()), model);
|
|
34
50
|
}
|
|
35
51
|
function CompanyClient__DeleteCompanyAsync(_) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompanyClient.js","sourceRoot":"","sources":["../../../fable_output/Services/Clients/CompanyClient.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CompanyClient.js","sourceRoot":"","sources":["../../../fable_output/Services/Clients/CompanyClient.ts"],"names":[],"mappings":";;;AAgCA,8DAEC;AAED,oEAEC;AAED,wEAEC;AAED,gGAEC;AAED,gGAEC;AAED,8EAEC;AAlDD,iGAAqG;AACrG,oDAA8F;AAC9F,kDAAoD;AACpD,qFAAyF;AAEzF,MAAa,aAAa;IAEtB,YAAY,SAAyB;QACjC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IACD,eAAe;QACX,MAAM,KAAK,GAAkB,IAAI,CAAC;QAClC,OAAO,8BAA8B,CAAC,KAAK,CAAC,CAAC;IACjD,CAAC;IACD,kBAAkB,CAAC,KAA+B;QAC9C,MAAM,KAAK,GAAkB,IAAI,CAAC;QAClC,OAAO,0CAA0C,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACpE,CAAC;IACD,kBAAkB,CAAC,KAA+B;QAC9C,MAAM,KAAK,GAAkB,IAAI,CAAC;QAClC,OAAO,0CAA0C,CAAC,KAAK,EAAE,K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AgB,iCAAiC,CAAC,CAAgB;IAC9D,OAAO,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,IAAA,kCAAkB,EAAC,IAAA,iBAAO,EAAC,CAAC,IAAA,6CAA6B,EAAC,uBAAQ,CAAC,EAAE,IAAA,6CAA6B,EAAC,sBAAO,CAAC,CAAC,CAAC,EAAE,IAAA,eAAK,GAAqB,CAAC,CAAC,CAAC;AAC/K,CAAC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { IHttpTransport } from "../IHttpTransport.ts";
|
|
2
|
+
import { ICompanyLicenseClient } from "./ICompanyLicenseClient.ts";
|
|
2
3
|
import { TypeInfo } from "../../fable_modules/fable-library-ts.5.0.0-rc.1/Reflection.ts";
|
|
3
|
-
export declare class CompanyLicenseClient {
|
|
4
|
+
export declare class CompanyLicenseClient implements ICompanyLicenseClient {
|
|
4
5
|
readonly transport: IHttpTransport;
|
|
5
6
|
constructor(transport: IHttpTransport);
|
|
7
|
+
GetLicenseAsync(): any;
|
|
8
|
+
CreateLicenseAsync(model: string): any;
|
|
6
9
|
}
|
|
7
10
|
export declare function CompanyLicenseClient_$reflection(): TypeInfo;
|
|
8
11
|
export declare function CompanyLicenseClient_$ctor_Z7C557C0(transport: IHttpTransport): CompanyLicenseClient;
|
|
@@ -13,6 +13,14 @@ class CompanyLicenseClient {
|
|
|
13
13
|
constructor(transport) {
|
|
14
14
|
this.transport = transport;
|
|
15
15
|
}
|
|
16
|
+
GetLicenseAsync() {
|
|
17
|
+
const this$ = this;
|
|
18
|
+
return CompanyLicenseClient__GetLicenseAsync(this$);
|
|
19
|
+
}
|
|
20
|
+
CreateLicenseAsync(model) {
|
|
21
|
+
const this$ = this;
|
|
22
|
+
return CompanyLicenseClient__CreateLicenseAsync_Z721C83C5(this$, model);
|
|
23
|
+
}
|
|
16
24
|
}
|
|
17
25
|
exports.CompanyLicenseClient = CompanyLicenseClient;
|
|
18
26
|
function CompanyLicenseClient_$reflection() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompanyLicenseClient.js","sourceRoot":"","sources":["../../../fable_output/Services/Clients/CompanyLicenseClient.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CompanyLicenseClient.js","sourceRoot":"","sources":["../../../fable_output/Services/Clients/CompanyLicenseClient.ts"],"names":[],"mappings":";;;AAyBA,4EAEC;AAED,kFAEC;AAED,sFAEC;AAED,gHAEC;AApCD,iGAAqG;AACrG,oDAA8F;AAC9F,kDAA2D;AAC3D,qFAAyF;AAIzF,MAAa,oBAAoB;IAE7B,YAAY,SAAyB;QACjC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IACD,eAAe;QACX,MAAM,KAAK,GAAyB,IAAI,CAAC;QACzC,OAAO,qCAAqC,CAAC,KAAK,CAAC,CAAC;IACxD,CAAC;IACD,kBAAkB,CAAC,KAAa;QAC5B,MAAM,KAAK,GAAyB,IAAI,CAAC;QACzC,OAAO,kDAAkD,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC5E,CAAC;CACJ;AAbD,oDAaC;AAED,SAAgB,gCAAgC;IAC5C,OAAO,IAAA,0BAAU,EAAC,oDAAoD,EAAE,SAAS,EAAE,oBAAoB,CAAC,CAAC;AAC7G,CAAC;AAED,SAAgB,mCAAmC,CAAC,SAAyB;IACzE,OAAO,IAAI,oBAAoB,CAAC,SAAS,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,qCAAqC,CAAC,CAAuB;IACzE,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAmD,IAAA,kCAAkB,EAAC,IAAA,iBAAO,EAAC,CAAC,IAAA,6CAA6B,EAAC,uBAAQ,CAAC,EAAE,IAAA,6CAA6B,EAAC,6BAAc,CAAC,CAAC,CAAC,EAAE,IAAA,eAAK,GAAqB,CAAC,CAAC,CAAC;AACrO,CAAC;AAED,SAAgB,kDAAkD,CAAC,CAAuB,EAAE,KAAa;IACrG,OAAO,CAAC,CAAC,SAAS,CAAC,SAAS,CAA2D,IAAA,kCAAkB,EAAC,IAAA,iBAAO,EAAC,CAAC,IAAA,6CAA6B,EAAC,uBAAQ,CAAC,EAAE,IAAA,6CAA6B,EAAC,6BAAc,CAAC,CAAC,CAAC,EAAE,IAAA,eAAK,GAAqB,CAAC,EAAE,KAAK,CAAC,CAAC;AACrP,CAAC"}
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
+
import { CompanySettingsModificationModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
1
2
|
import { IHttpTransport } from "../IHttpTransport.ts";
|
|
3
|
+
import { ICompanySettingsClient } from "./ICompanySettingsClient.ts";
|
|
2
4
|
import { TypeInfo } from "../../fable_modules/fable-library-ts.5.0.0-rc.1/Reflection.ts";
|
|
3
|
-
|
|
4
|
-
export declare class CompanySettingsClient {
|
|
5
|
+
export declare class CompanySettingsClient implements ICompanySettingsClient {
|
|
5
6
|
readonly transport: IHttpTransport;
|
|
6
7
|
constructor(transport: IHttpTransport);
|
|
8
|
+
GetCompanySettingsAsync(): any;
|
|
9
|
+
CreateCompanySettingsAsync(model: CompanySettingsModificationModel): any;
|
|
10
|
+
UpdateCompanySettingsAsync(model: CompanySettingsModificationModel): any;
|
|
11
|
+
DeleteCompanySettingsAsync(): any;
|
|
7
12
|
}
|
|
8
13
|
export declare function CompanySettingsClient_$reflection(): TypeInfo;
|
|
9
14
|
export declare function CompanySettingsClient_$ctor_Z7C557C0(transport: IHttpTransport): CompanySettingsClient;
|
|
10
15
|
export declare function CompanySettingsClient__GetCompanySettingsAsync(_: CompanySettingsClient): any;
|
|
11
|
-
export declare function
|
|
12
|
-
export declare function
|
|
16
|
+
export declare function CompanySettingsClient__CreateCompanySettingsAsync_Z5EAF18E7(_: CompanySettingsClient, model: CompanySettingsModificationModel): any;
|
|
17
|
+
export declare function CompanySettingsClient__UpdateCompanySettingsAsync_Z5EAF18E7(_: CompanySettingsClient, model: CompanySettingsModificationModel): any;
|
|
13
18
|
export declare function CompanySettingsClient__DeleteCompanySettingsAsync(_: CompanySettingsClient): any;
|
|
@@ -4,8 +4,8 @@ exports.CompanySettingsClient = void 0;
|
|
|
4
4
|
exports.CompanySettingsClient_$reflection = CompanySettingsClient_$reflection;
|
|
5
5
|
exports.CompanySettingsClient_$ctor_Z7C557C0 = CompanySettingsClient_$ctor_Z7C557C0;
|
|
6
6
|
exports.CompanySettingsClient__GetCompanySettingsAsync = CompanySettingsClient__GetCompanySettingsAsync;
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
7
|
+
exports.CompanySettingsClient__CreateCompanySettingsAsync_Z5EAF18E7 = CompanySettingsClient__CreateCompanySettingsAsync_Z5EAF18E7;
|
|
8
|
+
exports.CompanySettingsClient__UpdateCompanySettingsAsync_Z5EAF18E7 = CompanySettingsClient__UpdateCompanySettingsAsync_Z5EAF18E7;
|
|
9
9
|
exports.CompanySettingsClient__DeleteCompanySettingsAsync = CompanySettingsClient__DeleteCompanySettingsAsync;
|
|
10
10
|
const Reflection_ts_1 = require("../../fable_modules/fable-library-ts.5.0.0-rc.1/Reflection.js");
|
|
11
11
|
const UrlHelpers_ts_1 = require("../UrlHelpers.js");
|
|
@@ -15,6 +15,22 @@ class CompanySettingsClient {
|
|
|
15
15
|
constructor(transport) {
|
|
16
16
|
this.transport = transport;
|
|
17
17
|
}
|
|
18
|
+
GetCompanySettingsAsync() {
|
|
19
|
+
const this$ = this;
|
|
20
|
+
return CompanySettingsClient__GetCompanySettingsAsync(this$);
|
|
21
|
+
}
|
|
22
|
+
CreateCompanySettingsAsync(model) {
|
|
23
|
+
const this$ = this;
|
|
24
|
+
return CompanySettingsClient__CreateCompanySettingsAsync_Z5EAF18E7(this$, model);
|
|
25
|
+
}
|
|
26
|
+
UpdateCompanySettingsAsync(model) {
|
|
27
|
+
const this$ = this;
|
|
28
|
+
return CompanySettingsClient__UpdateCompanySettingsAsync_Z5EAF18E7(this$, model);
|
|
29
|
+
}
|
|
30
|
+
DeleteCompanySettingsAsync() {
|
|
31
|
+
const this$ = this;
|
|
32
|
+
return CompanySettingsClient__DeleteCompanySettingsAsync(this$);
|
|
33
|
+
}
|
|
18
34
|
}
|
|
19
35
|
exports.CompanySettingsClient = CompanySettingsClient;
|
|
20
36
|
function CompanySettingsClient_$reflection() {
|
|
@@ -26,10 +42,10 @@ function CompanySettingsClient_$ctor_Z7C557C0(transport) {
|
|
|
26
42
|
function CompanySettingsClient__GetCompanySettingsAsync(_) {
|
|
27
43
|
return _.transport.GetAsync((0, UrlHelpers_ts_1.composeRelativeUrl)((0, List_ts_1.ofArray)([(0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.BasePath), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.CompanySettings)]), (0, List_ts_1.empty)()));
|
|
28
44
|
}
|
|
29
|
-
function
|
|
45
|
+
function CompanySettingsClient__CreateCompanySettingsAsync_Z5EAF18E7(_, model) {
|
|
30
46
|
return _.transport.PostAsync((0, UrlHelpers_ts_1.composeRelativeUrl)((0, List_ts_1.ofArray)([(0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.BasePath), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.CompanySettings)]), (0, List_ts_1.empty)()), model);
|
|
31
47
|
}
|
|
32
|
-
function
|
|
48
|
+
function CompanySettingsClient__UpdateCompanySettingsAsync_Z5EAF18E7(_, model) {
|
|
33
49
|
return _.transport.PutAsync((0, UrlHelpers_ts_1.composeRelativeUrl)((0, List_ts_1.ofArray)([(0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.BasePath), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.CompanySettings)]), (0, List_ts_1.empty)()), model);
|
|
34
50
|
}
|
|
35
51
|
function CompanySettingsClient__DeleteCompanySettingsAsync(_) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompanySettingsClient.js","sourceRoot":"","sources":["../../../fable_output/Services/Clients/CompanySettingsClient.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CompanySettingsClient.js","sourceRoot":"","sources":["../../../fable_output/Services/Clients/CompanySettingsClient.ts"],"names":[],"mappings":";;;AAgCA,8EAEC;AAED,oFAEC;AAED,wGAEC;AAED,kIAEC;AAED,kIAEC;AAED,8GAEC;AAlDD,iGAAqG;AACrG,oDAA8F;AAC9F,kDAA4D;AAC5D,qFAAyF;AAEzF,MAAa,qBAAqB;IAE9B,YAAY,SAAyB;QACjC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IACD,uBAAuB;QACnB,MAAM,KAAK,GAA0B,IAAI,CAAC;QAC1C,OAAO,8CAA8C,CAAC,KAAK,CAAC,CAAC;IACjE,CAAC;IACD,0BAA0B,CAAC,KAAuC;QAC9D,MAAM,KAAK,GAA0B,IAAI,CAAC;QAC1C,OAAO,2DAA2D,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACrF,CAAC;IACD,0BAA0B,CAAC,KAAuC;QAC9D,MAAM,KAAK,GAA0B,IAAI,CAAC;QAC1C,OAAO,2DAA2D,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACrF,CAAC;IACD,0BAA0B;QACtB,MAAM,KAAK,GAA0B,IAAI,CAAC;QAC1C,OAAO,iDAAiD,CAAC,KAAK,CAAC,CAAC;IACpE,CAAC;CACJ;AArBD,sDAqBC;AAED,SAAgB,iCAAiC;IAC7C,OAAO,IAAA,0BAAU,EAAC,qDAAqD,EAAE,SAAS,EAAE,qBAAqB,CAAC,CAAC;AAC/G,CAAC;AAED,SAAgB,oCAAoC,CAAC,SAAyB;IAC1E,OAAO,IAAI,qBAAqB,CAAC,SAAS,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,8CAA8C,CAAC,CAAwB;IACnF,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAgC,IAAA,kCAAkB,EAAC,IAAA,iBAAO,EAAC,CAAC,IAAA,6CAA6B,EAAC,uBAAQ,CAAC,EAAE,IAAA,6CAA6B,EAAC,8BAAe,CAAC,CAAC,CAAC,EAAE,IAAA,eAAK,GAAqB,CAAC,CAAC,CAAC;AACnN,CAAC;AAED,SAAgB,2DAA2D,CAAC,CAAwB,EAAE,KAAuC;IACzI,OAAO,CAAC,CAAC,SAAS,CAAC,SAAS,CAAkE,IAAA,kCAAkB,EAAC,IAAA,iBAAO,EAAC,CAAC,IAAA,6CAA6B,EAAC,uBAAQ,CAAC,EAAE,IAAA,6CAA6B,EAAC,8BAAe,CAAC,CAAC,CAAC,EAAE,IAAA,eAAK,GAAqB,CAAC,EAAE,KAAK,CAAC,CAAC;AAC7P,CAAC;AAED,SAAgB,2DAA2D,CAAC,CAAwB,EAAE,KAAuC;IACzI,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAkE,IAAA,kCAAkB,EAAC,IAAA,iBAAO,EAAC,CAAC,IAAA,6CAA6B,EAAC,uBAAQ,CAAC,EAAE,IAAA,6CAA6B,EAAC,8BAAe,CAAC,CAAC,CAAC,EAAE,IAAA,eAAK,GAAqB,CAAC,EAAE,KAAK,CAAC,CAAC;AAC5P,CAAC;AAED,SAAgB,iDAAiD,CAAC,CAAwB;IACtF,OAAO,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,IAAA,kCAAkB,EAAC,IAAA,iBAAO,EAAC,CAAC,IAAA,6CAA6B,EAAC,uBAAQ,CAAC,EAAE,IAAA,6CAA6B,EAAC,8BAAe,CAAC,CAAC,CAAC,EAAE,IAAA,eAAK,GAAqB,CAAC,CAAC,CAAC;AACvL,CAAC"}
|
|
@@ -1,16 +1,22 @@
|
|
|
1
|
+
import { DepartmentModificationModel, DepartmentQueryRequestModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
2
|
+
import { int64 } from "../../fable_modules/fable-library-ts.5.0.0-rc.1/BigInt.ts";
|
|
1
3
|
import { IHttpTransport } from "../IHttpTransport.ts";
|
|
4
|
+
import { IDepartmentClient } from "./IDepartmentClient.ts";
|
|
2
5
|
import { TypeInfo } from "../../fable_modules/fable-library-ts.5.0.0-rc.1/Reflection.ts";
|
|
3
|
-
|
|
4
|
-
import { int64 } from "../../fable_modules/fable-library-ts.5.0.0-rc.1/BigInt.ts";
|
|
5
|
-
export declare class DepartmentClient {
|
|
6
|
+
export declare class DepartmentClient implements IDepartmentClient {
|
|
6
7
|
readonly transport: IHttpTransport;
|
|
7
8
|
constructor(transport: IHttpTransport);
|
|
9
|
+
GetDepartmentsAsync(query: DepartmentQueryRequestModel): any;
|
|
10
|
+
GetDepartmentAsync(id: int64): any;
|
|
11
|
+
CreateDepartmentAsync(model: DepartmentModificationModel): any;
|
|
12
|
+
UpdateDepartmentAsync(id: int64, model: DepartmentModificationModel): any;
|
|
13
|
+
DeleteDepartmentAsync(id: int64): any;
|
|
8
14
|
}
|
|
9
15
|
export declare function DepartmentClient_$reflection(): TypeInfo;
|
|
10
16
|
export declare function DepartmentClient_$ctor_Z7C557C0(transport: IHttpTransport): DepartmentClient;
|
|
11
|
-
export declare function
|
|
17
|
+
export declare function DepartmentClient__GetDepartmentsAsync_Z2E433DA6(_: DepartmentClient, query: DepartmentQueryRequestModel): any;
|
|
12
18
|
export declare function DepartmentClient__GetDepartmentAsync_Z524259C1(_: DepartmentClient, id: int64): any;
|
|
13
|
-
export declare function
|
|
14
|
-
export declare function
|
|
19
|
+
export declare function DepartmentClient__CreateDepartmentAsync_Z7668FDC1(_: DepartmentClient, model: DepartmentModificationModel): any;
|
|
20
|
+
export declare function DepartmentClient__UpdateDepartmentAsync_Z131A93E0(_: DepartmentClient, id: int64, model: DepartmentModificationModel): any;
|
|
15
21
|
export declare function DepartmentClient__DeleteDepartmentAsync_Z524259C1(_: DepartmentClient, id: int64): any;
|
|
16
|
-
export declare function
|
|
22
|
+
export declare function DepartmentClient__buildUrl_Z2E433DA6(this$: DepartmentClient, queryParams: DepartmentQueryRequestModel): string;
|
|
@@ -3,12 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DepartmentClient = void 0;
|
|
4
4
|
exports.DepartmentClient_$reflection = DepartmentClient_$reflection;
|
|
5
5
|
exports.DepartmentClient_$ctor_Z7C557C0 = DepartmentClient_$ctor_Z7C557C0;
|
|
6
|
-
exports.
|
|
6
|
+
exports.DepartmentClient__GetDepartmentsAsync_Z2E433DA6 = DepartmentClient__GetDepartmentsAsync_Z2E433DA6;
|
|
7
7
|
exports.DepartmentClient__GetDepartmentAsync_Z524259C1 = DepartmentClient__GetDepartmentAsync_Z524259C1;
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
8
|
+
exports.DepartmentClient__CreateDepartmentAsync_Z7668FDC1 = DepartmentClient__CreateDepartmentAsync_Z7668FDC1;
|
|
9
|
+
exports.DepartmentClient__UpdateDepartmentAsync_Z131A93E0 = DepartmentClient__UpdateDepartmentAsync_Z131A93E0;
|
|
10
10
|
exports.DepartmentClient__DeleteDepartmentAsync_Z524259C1 = DepartmentClient__DeleteDepartmentAsync_Z524259C1;
|
|
11
|
-
exports.
|
|
11
|
+
exports.DepartmentClient__buildUrl_Z2E433DA6 = DepartmentClient__buildUrl_Z2E433DA6;
|
|
12
12
|
const Reflection_ts_1 = require("../../fable_modules/fable-library-ts.5.0.0-rc.1/Reflection.js");
|
|
13
13
|
const UrlHelpers_ts_1 = require("../UrlHelpers.js");
|
|
14
14
|
const Endpoints_ts_1 = require("../Endpoints.js");
|
|
@@ -21,6 +21,26 @@ class DepartmentClient {
|
|
|
21
21
|
constructor(transport) {
|
|
22
22
|
this.transport = transport;
|
|
23
23
|
}
|
|
24
|
+
GetDepartmentsAsync(query) {
|
|
25
|
+
const this$ = this;
|
|
26
|
+
return DepartmentClient__GetDepartmentsAsync_Z2E433DA6(this$, query);
|
|
27
|
+
}
|
|
28
|
+
GetDepartmentAsync(id) {
|
|
29
|
+
const this$ = this;
|
|
30
|
+
return DepartmentClient__GetDepartmentAsync_Z524259C1(this$, id);
|
|
31
|
+
}
|
|
32
|
+
CreateDepartmentAsync(model) {
|
|
33
|
+
const this$ = this;
|
|
34
|
+
return DepartmentClient__CreateDepartmentAsync_Z7668FDC1(this$, model);
|
|
35
|
+
}
|
|
36
|
+
UpdateDepartmentAsync(id, model) {
|
|
37
|
+
const this$ = this;
|
|
38
|
+
return DepartmentClient__UpdateDepartmentAsync_Z131A93E0(this$, id, model);
|
|
39
|
+
}
|
|
40
|
+
DeleteDepartmentAsync(id) {
|
|
41
|
+
const this$ = this;
|
|
42
|
+
return DepartmentClient__DeleteDepartmentAsync_Z524259C1(this$, id);
|
|
43
|
+
}
|
|
24
44
|
}
|
|
25
45
|
exports.DepartmentClient = DepartmentClient;
|
|
26
46
|
function DepartmentClient_$reflection() {
|
|
@@ -29,22 +49,22 @@ function DepartmentClient_$reflection() {
|
|
|
29
49
|
function DepartmentClient_$ctor_Z7C557C0(transport) {
|
|
30
50
|
return new DepartmentClient(transport);
|
|
31
51
|
}
|
|
32
|
-
function
|
|
33
|
-
return _.transport.GetAsync(
|
|
52
|
+
function DepartmentClient__GetDepartmentsAsync_Z2E433DA6(_, query) {
|
|
53
|
+
return _.transport.GetAsync(DepartmentClient__buildUrl_Z2E433DA6(_, query));
|
|
34
54
|
}
|
|
35
55
|
function DepartmentClient__GetDepartmentAsync_Z524259C1(_, id) {
|
|
36
56
|
return _.transport.GetAsync((0, UrlHelpers_ts_1.composeRelativeUrl)((0, List_ts_1.ofArray)([(0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.BasePath), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.Departments), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z524259C1)(id)]), (0, List_ts_1.empty)()));
|
|
37
57
|
}
|
|
38
|
-
function
|
|
58
|
+
function DepartmentClient__CreateDepartmentAsync_Z7668FDC1(_, model) {
|
|
39
59
|
return _.transport.PostAsync((0, UrlHelpers_ts_1.composeRelativeUrl)((0, List_ts_1.ofArray)([(0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.BasePath), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.Departments)]), (0, List_ts_1.empty)()), model);
|
|
40
60
|
}
|
|
41
|
-
function
|
|
61
|
+
function DepartmentClient__UpdateDepartmentAsync_Z131A93E0(_, id, model) {
|
|
42
62
|
return _.transport.PutAsync((0, UrlHelpers_ts_1.composeRelativeUrl)((0, List_ts_1.ofArray)([(0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.BasePath), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.Departments), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z524259C1)(id)]), (0, List_ts_1.empty)()), model);
|
|
43
63
|
}
|
|
44
64
|
function DepartmentClient__DeleteDepartmentAsync_Z524259C1(_, id) {
|
|
45
65
|
return _.transport.DeleteAsync((0, UrlHelpers_ts_1.composeRelativeUrl)((0, List_ts_1.ofArray)([(0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.BasePath), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.Departments), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z524259C1)(id)]), (0, List_ts_1.empty)()));
|
|
46
66
|
}
|
|
47
|
-
function
|
|
67
|
+
function DepartmentClient__buildUrl_Z2E433DA6(this$, queryParams) {
|
|
48
68
|
const parameters = (0, Seq_ts_1.toList)((0, Seq_ts_1.delay)(() => {
|
|
49
69
|
let matchValue = undefined, ids_1 = undefined;
|
|
50
70
|
return (0, Seq_ts_1.append)((matchValue = (0, Option_ts_1.ofNullable)(queryParams.Id), (matchValue != null) ? (((0, CollectionUtil_ts_1.count)((0, Option_ts_1.value)(matchValue)) > 0) ? ((ids_1 = (0, Option_ts_1.value)(matchValue), (0, Seq_ts_1.map)((id) => ["Id", (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z524259C1)(id)], ids_1))) : ((0, Seq_ts_1.empty)())) : ((0, Seq_ts_1.empty)())), (0, Seq_ts_1.delay)(() => (0, Seq_ts_1.append)(!(0, String_ts_1.isNullOrEmpty)(queryParams.Search) ? (0, Seq_ts_1.singleton)(["Search", (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(queryParams.Search)]) : (0, Seq_ts_1.empty)(), (0, Seq_ts_1.delay)(() => (0, Seq_ts_1.append)((queryParams.PageNumber != null) ? (0, Seq_ts_1.singleton)(["PageNumber", (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z524259A4)((0, Option_ts_1.nonNullValue)(queryParams.PageNumber))]) : (0, Seq_ts_1.empty)(), (0, Seq_ts_1.delay)(() => ((queryParams.PageSize != null) ? (0, Seq_ts_1.singleton)(["PageSize", (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z524259A4)((0, Option_ts_1.nonNullValue)(queryParams.PageSize))]) : (0, Seq_ts_1.empty)())))))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepartmentClient.js","sourceRoot":"","sources":["../../../fable_output/Services/Clients/DepartmentClient.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"DepartmentClient.js","sourceRoot":"","sources":["../../../fable_output/Services/Clients/DepartmentClient.ts"],"names":[],"mappings":";;;AA0CA,oEAEC;AAED,0EAEC;AAED,0GAEC;AAED,wGAEC;AAED,8GAEC;AAED,8GAEC;AAED,8GAEC;AAED,oFAMC;AAvED,iGAAqG;AAErG,oDAA4J;AAC5J,kDAAwD;AACxD,qFAAqG;AACrG,mFAAiI;AACjI,yFAAoH;AACpH,yGAA0F;AAC1F,yFAA0F;AAE1F,MAAa,gBAAgB;IAEzB,YAAY,SAAyB;QAC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AC,IAAA,cAAO,GAAqB,EAAE,IAAA,cAAK,EAAoB,GAAgC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAA,kBAAS,EAAoB,CAAC,UAAU,EAAE,IAAA,6CAA6B,EAAC,IAAA,wBAAY,EAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAsB,CAAC,CAAC,CAAC,CAAC,IAAA,cAAO,GAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7qC,CAAC,CAAC,CAAC,CAAC;IACJ,OAAO,IAAA,kCAAkB,EAAC,IAAA,iBAAO,EAAC,CAAC,IAAA,6CAA6B,EAAC,uBAAQ,CAAC,EAAE,IAAA,6CAA6B,EAAC,0BAAW,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;AAC1I,CAAC"}
|
|
@@ -1,18 +1,25 @@
|
|
|
1
|
+
import { EmployeeModificationModel, EmployeePagingRequestModel, EmployeeQueryRequestModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
2
|
+
import { int64 } from "../../fable_modules/fable-library-ts.5.0.0-rc.1/BigInt.ts";
|
|
1
3
|
import { IHttpTransport } from "../IHttpTransport.ts";
|
|
4
|
+
import { IEmployeeClient } from "./IEmployeeClient.ts";
|
|
2
5
|
import { TypeInfo } from "../../fable_modules/fable-library-ts.5.0.0-rc.1/Reflection.ts";
|
|
3
|
-
|
|
4
|
-
import { int64 } from "../../fable_modules/fable-library-ts.5.0.0-rc.1/BigInt.ts";
|
|
5
|
-
export declare class EmployeeClient {
|
|
6
|
+
export declare class EmployeeClient implements IEmployeeClient {
|
|
6
7
|
readonly transport: IHttpTransport;
|
|
7
8
|
constructor(transport: IHttpTransport);
|
|
9
|
+
GetEmployeesAsync(query: EmployeeQueryRequestModel): any;
|
|
10
|
+
GetEmployeesPagingAsync(query: EmployeePagingRequestModel): any;
|
|
11
|
+
GetEmployeeAsync(id: int64): any;
|
|
12
|
+
CreateEmployeeAsync(model: EmployeeModificationModel): any;
|
|
13
|
+
UpdateEmployeeAsync(id: int64, model: EmployeeModificationModel): any;
|
|
14
|
+
DeleteEmployeeAsync(id: int64): any;
|
|
8
15
|
}
|
|
9
16
|
export declare function EmployeeClient_$reflection(): TypeInfo;
|
|
10
17
|
export declare function EmployeeClient_$ctor_Z7C557C0(transport: IHttpTransport): EmployeeClient;
|
|
11
|
-
export declare function
|
|
12
|
-
export declare function
|
|
18
|
+
export declare function EmployeeClient__GetEmployeesAsync_Z134B9264(_: EmployeeClient, query: EmployeeQueryRequestModel): any;
|
|
19
|
+
export declare function EmployeeClient__GetEmployeesPagingAsync_5E920BE0(_: EmployeeClient, query: EmployeePagingRequestModel): any;
|
|
13
20
|
export declare function EmployeeClient__GetEmployeeAsync_Z524259C1(_: EmployeeClient, id: int64): any;
|
|
14
|
-
export declare function
|
|
15
|
-
export declare function
|
|
21
|
+
export declare function EmployeeClient__CreateEmployeeAsync_5CDBA079(_: EmployeeClient, model: EmployeeModificationModel): any;
|
|
22
|
+
export declare function EmployeeClient__UpdateEmployeeAsync_39A9CE66(_: EmployeeClient, id: int64, model: EmployeeModificationModel): any;
|
|
16
23
|
export declare function EmployeeClient__DeleteEmployeeAsync_Z524259C1(_: EmployeeClient, id: int64): any;
|
|
17
|
-
export declare function
|
|
18
|
-
export declare function
|
|
24
|
+
export declare function EmployeeClient__buildUrl_Z134B9264(this$: EmployeeClient, queryParams: EmployeeQueryRequestModel): string;
|
|
25
|
+
export declare function EmployeeClient__buildPagingUrl_5E920BE0(this$: EmployeeClient, queryParams: EmployeePagingRequestModel): string;
|
|
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.EmployeeClient = void 0;
|
|
4
4
|
exports.EmployeeClient_$reflection = EmployeeClient_$reflection;
|
|
5
5
|
exports.EmployeeClient_$ctor_Z7C557C0 = EmployeeClient_$ctor_Z7C557C0;
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
6
|
+
exports.EmployeeClient__GetEmployeesAsync_Z134B9264 = EmployeeClient__GetEmployeesAsync_Z134B9264;
|
|
7
|
+
exports.EmployeeClient__GetEmployeesPagingAsync_5E920BE0 = EmployeeClient__GetEmployeesPagingAsync_5E920BE0;
|
|
8
8
|
exports.EmployeeClient__GetEmployeeAsync_Z524259C1 = EmployeeClient__GetEmployeeAsync_Z524259C1;
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
9
|
+
exports.EmployeeClient__CreateEmployeeAsync_5CDBA079 = EmployeeClient__CreateEmployeeAsync_5CDBA079;
|
|
10
|
+
exports.EmployeeClient__UpdateEmployeeAsync_39A9CE66 = EmployeeClient__UpdateEmployeeAsync_39A9CE66;
|
|
11
11
|
exports.EmployeeClient__DeleteEmployeeAsync_Z524259C1 = EmployeeClient__DeleteEmployeeAsync_Z524259C1;
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
12
|
+
exports.EmployeeClient__buildUrl_Z134B9264 = EmployeeClient__buildUrl_Z134B9264;
|
|
13
|
+
exports.EmployeeClient__buildPagingUrl_5E920BE0 = EmployeeClient__buildPagingUrl_5E920BE0;
|
|
14
14
|
const Reflection_ts_1 = require("../../fable_modules/fable-library-ts.5.0.0-rc.1/Reflection.js");
|
|
15
15
|
const UrlHelpers_ts_1 = require("../UrlHelpers.js");
|
|
16
16
|
const Endpoints_ts_1 = require("../Endpoints.js");
|
|
@@ -23,6 +23,30 @@ class EmployeeClient {
|
|
|
23
23
|
constructor(transport) {
|
|
24
24
|
this.transport = transport;
|
|
25
25
|
}
|
|
26
|
+
GetEmployeesAsync(query) {
|
|
27
|
+
const this$ = this;
|
|
28
|
+
return EmployeeClient__GetEmployeesAsync_Z134B9264(this$, query);
|
|
29
|
+
}
|
|
30
|
+
GetEmployeesPagingAsync(query) {
|
|
31
|
+
const this$ = this;
|
|
32
|
+
return EmployeeClient__GetEmployeesPagingAsync_5E920BE0(this$, query);
|
|
33
|
+
}
|
|
34
|
+
GetEmployeeAsync(id) {
|
|
35
|
+
const this$ = this;
|
|
36
|
+
return EmployeeClient__GetEmployeeAsync_Z524259C1(this$, id);
|
|
37
|
+
}
|
|
38
|
+
CreateEmployeeAsync(model) {
|
|
39
|
+
const this$ = this;
|
|
40
|
+
return EmployeeClient__CreateEmployeeAsync_5CDBA079(this$, model);
|
|
41
|
+
}
|
|
42
|
+
UpdateEmployeeAsync(id, model) {
|
|
43
|
+
const this$ = this;
|
|
44
|
+
return EmployeeClient__UpdateEmployeeAsync_39A9CE66(this$, id, model);
|
|
45
|
+
}
|
|
46
|
+
DeleteEmployeeAsync(id) {
|
|
47
|
+
const this$ = this;
|
|
48
|
+
return EmployeeClient__DeleteEmployeeAsync_Z524259C1(this$, id);
|
|
49
|
+
}
|
|
26
50
|
}
|
|
27
51
|
exports.EmployeeClient = EmployeeClient;
|
|
28
52
|
function EmployeeClient_$reflection() {
|
|
@@ -31,32 +55,32 @@ function EmployeeClient_$reflection() {
|
|
|
31
55
|
function EmployeeClient_$ctor_Z7C557C0(transport) {
|
|
32
56
|
return new EmployeeClient(transport);
|
|
33
57
|
}
|
|
34
|
-
function
|
|
35
|
-
return _.transport.GetAsync(
|
|
58
|
+
function EmployeeClient__GetEmployeesAsync_Z134B9264(_, query) {
|
|
59
|
+
return _.transport.GetAsync(EmployeeClient__buildUrl_Z134B9264(_, query));
|
|
36
60
|
}
|
|
37
|
-
function
|
|
38
|
-
return _.transport.GetAsync(
|
|
61
|
+
function EmployeeClient__GetEmployeesPagingAsync_5E920BE0(_, query) {
|
|
62
|
+
return _.transport.GetAsync(EmployeeClient__buildPagingUrl_5E920BE0(_, query));
|
|
39
63
|
}
|
|
40
64
|
function EmployeeClient__GetEmployeeAsync_Z524259C1(_, id) {
|
|
41
65
|
return _.transport.GetAsync((0, UrlHelpers_ts_1.composeRelativeUrl)((0, List_ts_1.ofArray)([(0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.BasePath), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.Employee), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z524259C1)(id)]), (0, List_ts_1.empty)()));
|
|
42
66
|
}
|
|
43
|
-
function
|
|
67
|
+
function EmployeeClient__CreateEmployeeAsync_5CDBA079(_, model) {
|
|
44
68
|
return _.transport.PostAsync((0, UrlHelpers_ts_1.composeRelativeUrl)((0, List_ts_1.ofArray)([(0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.BasePath), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.Employee)]), (0, List_ts_1.empty)()), model);
|
|
45
69
|
}
|
|
46
|
-
function
|
|
70
|
+
function EmployeeClient__UpdateEmployeeAsync_39A9CE66(_, id, model) {
|
|
47
71
|
return _.transport.PutAsync((0, UrlHelpers_ts_1.composeRelativeUrl)((0, List_ts_1.ofArray)([(0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.BasePath), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.Employee), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z524259C1)(id)]), (0, List_ts_1.empty)()), model);
|
|
48
72
|
}
|
|
49
73
|
function EmployeeClient__DeleteEmployeeAsync_Z524259C1(_, id) {
|
|
50
74
|
return _.transport.DeleteAsync((0, UrlHelpers_ts_1.composeRelativeUrl)((0, List_ts_1.ofArray)([(0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.BasePath), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.Employee), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z524259C1)(id)]), (0, List_ts_1.empty)()));
|
|
51
75
|
}
|
|
52
|
-
function
|
|
76
|
+
function EmployeeClient__buildUrl_Z134B9264(this$, queryParams) {
|
|
53
77
|
const parameters = (0, Seq_ts_1.toList)((0, Seq_ts_1.delay)(() => {
|
|
54
78
|
let matchValue = undefined, ids_1 = undefined;
|
|
55
79
|
return (0, Seq_ts_1.append)((matchValue = (0, Option_ts_1.ofNullable)(queryParams.Id), (matchValue != null) ? (((0, CollectionUtil_ts_1.count)((0, Option_ts_1.value)(matchValue)) > 0) ? ((ids_1 = (0, Option_ts_1.value)(matchValue), (0, Seq_ts_1.map)((id) => ["Id", (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z524259C1)(id)], ids_1))) : ((0, Seq_ts_1.empty)())) : ((0, Seq_ts_1.empty)())), (0, Seq_ts_1.delay)(() => (0, Seq_ts_1.append)(!(0, String_ts_1.isNullOrEmpty)(queryParams.Search) ? (0, Seq_ts_1.singleton)(["Search", (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(queryParams.Search)]) : (0, Seq_ts_1.empty)(), (0, Seq_ts_1.delay)(() => (0, Seq_ts_1.append)((queryParams.PageNumber != null) ? (0, Seq_ts_1.singleton)(["PageNumber", (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z524259A4)((0, Option_ts_1.nonNullValue)(queryParams.PageNumber))]) : (0, Seq_ts_1.empty)(), (0, Seq_ts_1.delay)(() => (0, Seq_ts_1.append)((queryParams.PageSize != null) ? (0, Seq_ts_1.singleton)(["PageSize", (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z524259A4)((0, Option_ts_1.nonNullValue)(queryParams.PageSize))]) : (0, Seq_ts_1.empty)(), (0, Seq_ts_1.delay)(() => (0, Seq_ts_1.append)((queryParams.ReportsToId != null) ? (0, Seq_ts_1.singleton)(["ReportsToId", (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z524259C1)((0, Option_ts_1.nonNullValue)(queryParams.ReportsToId))]) : (0, Seq_ts_1.empty)(), (0, Seq_ts_1.delay)(() => ((queryParams.TopLevelOnly != null) ? (0, Seq_ts_1.singleton)(["TopLevelOnly", (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z1FBCCD16)((0, Option_ts_1.nonNullValue)(queryParams.TopLevelOnly))]) : (0, Seq_ts_1.empty)())))))))))));
|
|
56
80
|
}));
|
|
57
81
|
return (0, UrlHelpers_ts_1.composeRelativeUrl)((0, List_ts_1.ofArray)([(0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.BasePath), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.Employees)]), parameters);
|
|
58
82
|
}
|
|
59
|
-
function
|
|
83
|
+
function EmployeeClient__buildPagingUrl_5E920BE0(this$, queryParams) {
|
|
60
84
|
const parameters = (0, Seq_ts_1.toList)((0, Seq_ts_1.delay)(() => (0, Seq_ts_1.append)(!(0, String_ts_1.isNullOrEmpty)(queryParams.Search) ? (0, Seq_ts_1.singleton)(["Search", (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(queryParams.Search)]) : (0, Seq_ts_1.empty)(), (0, Seq_ts_1.delay)(() => (0, Seq_ts_1.append)((queryParams.PageNumber != null) ? (0, Seq_ts_1.singleton)(["PageNumber", (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z524259A4)((0, Option_ts_1.nonNullValue)(queryParams.PageNumber))]) : (0, Seq_ts_1.empty)(), (0, Seq_ts_1.delay)(() => ((queryParams.PageSize != null) ? (0, Seq_ts_1.singleton)(["PageSize", (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z524259A4)((0, Option_ts_1.nonNullValue)(queryParams.PageSize))]) : (0, Seq_ts_1.empty)())))))));
|
|
61
85
|
return (0, UrlHelpers_ts_1.composeRelativeUrl)((0, List_ts_1.ofArray)([(0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.BasePath), (0, UrlHelpers_ts_1.UrlPart_op_Implicit_Z721C83C5)(Endpoints_ts_1.Employees)]), parameters);
|
|
62
86
|
}
|