@fossa-app/bridge 0.1.18 → 0.1.19
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/package.json +1 -1
- package/dist/Models/ApiModels/EnvelopeModels.d.ts +0 -21
- package/dist/Models/ApiModels/EnvelopeModels.js +0 -34
- package/dist/Models/ApiModels/EnvelopeModels.js.map +0 -1
- package/dist/Models/ApiModels/EnvelopeModels.ts +0 -42
- package/dist/Models/ApiModels/PayloadModels.d.ts +0 -147
- package/dist/Models/ApiModels/PayloadModels.js +0 -286
- package/dist/Models/ApiModels/PayloadModels.js.map +0 -1
- package/dist/Models/ApiModels/PayloadModels.ts +0 -326
- package/dist/Models/ApiModels/SharedModels.d.ts +0 -41
- package/dist/Models/ApiModels/SharedModels.js +0 -79
- package/dist/Models/ApiModels/SharedModels.js.map +0 -1
- package/dist/Models/ApiModels/SharedModels.ts +0 -91
- package/dist/Services/Clients/BranchClient.d.ts +0 -22
- package/dist/Services/Clients/BranchClient.js +0 -63
- package/dist/Services/Clients/BranchClient.js.map +0 -1
- package/dist/Services/Clients/BranchClient.ts +0 -78
- package/dist/Services/Clients/CompanyClient.d.ts +0 -18
- package/dist/Services/Clients/CompanyClient.js +0 -45
- package/dist/Services/Clients/CompanyClient.js.map +0 -1
- package/dist/Services/Clients/CompanyClient.ts +0 -56
- package/dist/Services/Clients/CompanyLicenseClient.d.ts +0 -13
- package/dist/Services/Clients/CompanyLicenseClient.js +0 -31
- package/dist/Services/Clients/CompanyLicenseClient.js.map +0 -1
- package/dist/Services/Clients/CompanyLicenseClient.ts +0 -41
- package/dist/Services/Clients/CompanySettingsClient.d.ts +0 -18
- package/dist/Services/Clients/CompanySettingsClient.js +0 -45
- package/dist/Services/Clients/CompanySettingsClient.js.map +0 -1
- package/dist/Services/Clients/CompanySettingsClient.ts +0 -56
- package/dist/Services/Clients/DepartmentClient.d.ts +0 -22
- package/dist/Services/Clients/DepartmentClient.js +0 -63
- package/dist/Services/Clients/DepartmentClient.js.map +0 -1
- package/dist/Services/Clients/DepartmentClient.ts +0 -78
- package/dist/Services/Clients/EmployeeClient.d.ts +0 -33
- package/dist/Services/Clients/EmployeeClient.js +0 -102
- package/dist/Services/Clients/EmployeeClient.js.map +0 -1
- package/dist/Services/Clients/EmployeeClient.ts +0 -123
- package/dist/Services/Clients/IBranchClient.d.ts +0 -9
- package/dist/Services/Clients/IBranchClient.js +0 -2
- package/dist/Services/Clients/IBranchClient.js.map +0 -1
- package/dist/Services/Clients/IBranchClient.ts +0 -12
- package/dist/Services/Clients/ICompanyClient.d.ts +0 -7
- package/dist/Services/Clients/ICompanyClient.js +0 -2
- package/dist/Services/Clients/ICompanyClient.js.map +0 -1
- package/dist/Services/Clients/ICompanyClient.ts +0 -10
- package/dist/Services/Clients/ICompanyLicenseClient.d.ts +0 -4
- package/dist/Services/Clients/ICompanyLicenseClient.js +0 -2
- package/dist/Services/Clients/ICompanyLicenseClient.js.map +0 -1
- package/dist/Services/Clients/ICompanyLicenseClient.ts +0 -7
- package/dist/Services/Clients/ICompanySettingsClient.d.ts +0 -7
- package/dist/Services/Clients/ICompanySettingsClient.js +0 -2
- package/dist/Services/Clients/ICompanySettingsClient.js.map +0 -1
- package/dist/Services/Clients/ICompanySettingsClient.ts +0 -10
- package/dist/Services/Clients/IDepartmentClient.d.ts +0 -9
- package/dist/Services/Clients/IDepartmentClient.js +0 -2
- package/dist/Services/Clients/IDepartmentClient.js.map +0 -1
- package/dist/Services/Clients/IDepartmentClient.ts +0 -12
- package/dist/Services/Clients/IEmployeeClient.d.ts +0 -14
- package/dist/Services/Clients/IEmployeeClient.js +0 -2
- package/dist/Services/Clients/IEmployeeClient.js.map +0 -1
- package/dist/Services/Clients/IEmployeeClient.ts +0 -17
- package/dist/Services/Clients/IIdentityClient.d.ts +0 -3
- package/dist/Services/Clients/IIdentityClient.js +0 -2
- package/dist/Services/Clients/IIdentityClient.js.map +0 -1
- package/dist/Services/Clients/IIdentityClient.ts +0 -6
- package/dist/Services/Clients/ISystemLicenseClient.d.ts +0 -3
- package/dist/Services/Clients/ISystemLicenseClient.js +0 -2
- package/dist/Services/Clients/ISystemLicenseClient.js.map +0 -1
- package/dist/Services/Clients/ISystemLicenseClient.ts +0 -6
- package/dist/Services/Clients/IdentityClient.d.ts +0 -11
- package/dist/Services/Clients/IdentityClient.js +0 -24
- package/dist/Services/Clients/IdentityClient.js.map +0 -1
- package/dist/Services/Clients/IdentityClient.ts +0 -32
- package/dist/Services/Clients/SystemLicenseClient.d.ts +0 -11
- package/dist/Services/Clients/SystemLicenseClient.js +0 -24
- package/dist/Services/Clients/SystemLicenseClient.js.map +0 -1
- package/dist/Services/Clients/SystemLicenseClient.ts +0 -33
- package/dist/Services/Endpoints.d.ts +0 -10
- package/dist/Services/Endpoints.js +0 -11
- package/dist/Services/Endpoints.js.map +0 -1
- package/dist/Services/Endpoints.ts +0 -22
- package/dist/Services/IHttpTransport.d.ts +0 -7
- package/dist/Services/IHttpTransport.js +0 -2
- package/dist/Services/IHttpTransport.js.map +0 -1
- package/dist/Services/IHttpTransport.ts +0 -10
- package/dist/Services/UrlHelpers.d.ts +0 -25
- package/dist/Services/UrlHelpers.js +0 -86
- package/dist/Services/UrlHelpers.js.map +0 -1
- package/dist/Services/UrlHelpers.ts +0 -107
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { EmployeeManagementModel, EmployeeModificationModel, EmployeePagingRequestModel, EmployeeQueryRequestModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
2
|
-
import { int64 } from "@fable-org/fable-library-ts/BigInt.ts";
|
|
3
|
-
import { IHttpTransport } from "../IHttpTransport.ts";
|
|
4
|
-
import { IEmployeeClient } from "./IEmployeeClient.ts";
|
|
5
|
-
import { TypeInfo } from "@fable-org/fable-library-ts/Reflection.ts";
|
|
6
|
-
export declare class EmployeeClient implements IEmployeeClient {
|
|
7
|
-
readonly transport: IHttpTransport;
|
|
8
|
-
constructor(transport: IHttpTransport);
|
|
9
|
-
GetEmployeesAsync(query: EmployeeQueryRequestModel, cancellationToken: any): any;
|
|
10
|
-
GetEmployeesPagingAsync(query: EmployeePagingRequestModel, cancellationToken: any): any;
|
|
11
|
-
GetEmployeeAsync(id: int64, cancellationToken: any): any;
|
|
12
|
-
GetCurrentEmployeeAsync(cancellationToken: any): any;
|
|
13
|
-
CreateEmployeeAsync(model: EmployeeModificationModel, cancellationToken: any): any;
|
|
14
|
-
UpdateEmployeeAsync(id: int64, model: EmployeeModificationModel, cancellationToken: any): any;
|
|
15
|
-
UpdateCurrentEmployeeAsync(model: EmployeeModificationModel, cancellationToken: any): any;
|
|
16
|
-
ManageEmployeeAsync(id: int64, model: EmployeeManagementModel, cancellationToken: any): any;
|
|
17
|
-
DeleteEmployeeAsync(id: int64, cancellationToken: any): any;
|
|
18
|
-
DeleteCurrentEmployeeAsync(cancellationToken: any): any;
|
|
19
|
-
}
|
|
20
|
-
export declare function EmployeeClient_$reflection(): TypeInfo;
|
|
21
|
-
export declare function EmployeeClient_$ctor_Z7C557C0(transport: IHttpTransport): EmployeeClient;
|
|
22
|
-
export declare function EmployeeClient__GetEmployeesAsync_5DA070DE(_: EmployeeClient, query: EmployeeQueryRequestModel, cancellationToken: any): any;
|
|
23
|
-
export declare function EmployeeClient__GetEmployeesPagingAsync_Z11CE29DE(_: EmployeeClient, query: EmployeePagingRequestModel, cancellationToken: any): any;
|
|
24
|
-
export declare function EmployeeClient__GetEmployeeAsync_Z446FC023(_: EmployeeClient, id: int64, cancellationToken: any): any;
|
|
25
|
-
export declare function EmployeeClient__GetCurrentEmployeeAsync_Z211DAE3E(_: EmployeeClient, cancellationToken: any): any;
|
|
26
|
-
export declare function EmployeeClient__CreateEmployeeAsync_26ADFE5B(_: EmployeeClient, model: EmployeeModificationModel, cancellationToken: any): any;
|
|
27
|
-
export declare function EmployeeClient__UpdateEmployeeAsync_Z4FFE351C(_: EmployeeClient, id: int64, model: EmployeeModificationModel, cancellationToken: any): any;
|
|
28
|
-
export declare function EmployeeClient__UpdateCurrentEmployeeAsync_26ADFE5B(_: EmployeeClient, model: EmployeeModificationModel, cancellationToken: any): any;
|
|
29
|
-
export declare function EmployeeClient__ManageEmployeeAsync_Z59544D17(_: EmployeeClient, id: int64, model: EmployeeManagementModel, cancellationToken: any): any;
|
|
30
|
-
export declare function EmployeeClient__DeleteEmployeeAsync_Z446FC023(_: EmployeeClient, id: int64, cancellationToken: any): any;
|
|
31
|
-
export declare function EmployeeClient__DeleteCurrentEmployeeAsync_Z211DAE3E(_: EmployeeClient, cancellationToken: any): any;
|
|
32
|
-
export declare function EmployeeClient__buildUrl_Z134B9264(this$: EmployeeClient, queryParams: EmployeeQueryRequestModel): string;
|
|
33
|
-
export declare function EmployeeClient__buildPagingUrl_5E920BE0(this$: EmployeeClient, queryParams: EmployeePagingRequestModel): string;
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { class_type } from "@fable-org/fable-library-ts/Reflection.ts";
|
|
2
|
-
import { UrlPart_op_Implicit_Z1FBCCD16, UrlPart_op_Implicit_Z524259A4, UrlPart_op_Implicit_Z524259C1, UrlPart_op_Implicit_Z721C83C5, composeRelativeUrl } from "../UrlHelpers.js";
|
|
3
|
-
import { Employee, Employees } from "../Endpoints.js";
|
|
4
|
-
import { singleton, empty, ofArray } from "@fable-org/fable-library-ts/List.ts";
|
|
5
|
-
import { singleton as singleton_1, empty as empty_1, map, append, delay, toList } from "@fable-org/fable-library-ts/Seq.ts";
|
|
6
|
-
import { nonNullValue, value, ofNullable } from "@fable-org/fable-library-ts/Option.ts";
|
|
7
|
-
import { count } from "@fable-org/fable-library-ts/CollectionUtil.ts";
|
|
8
|
-
import { isNullOrEmpty } from "@fable-org/fable-library-ts/String.ts";
|
|
9
|
-
export class EmployeeClient {
|
|
10
|
-
transport;
|
|
11
|
-
constructor(transport) {
|
|
12
|
-
this.transport = transport;
|
|
13
|
-
}
|
|
14
|
-
GetEmployeesAsync(query, cancellationToken) {
|
|
15
|
-
const this$ = this;
|
|
16
|
-
return EmployeeClient__GetEmployeesAsync_5DA070DE(this$, query, cancellationToken);
|
|
17
|
-
}
|
|
18
|
-
GetEmployeesPagingAsync(query, cancellationToken) {
|
|
19
|
-
const this$ = this;
|
|
20
|
-
return EmployeeClient__GetEmployeesPagingAsync_Z11CE29DE(this$, query, cancellationToken);
|
|
21
|
-
}
|
|
22
|
-
GetEmployeeAsync(id, cancellationToken) {
|
|
23
|
-
const this$ = this;
|
|
24
|
-
return EmployeeClient__GetEmployeeAsync_Z446FC023(this$, id, cancellationToken);
|
|
25
|
-
}
|
|
26
|
-
GetCurrentEmployeeAsync(cancellationToken) {
|
|
27
|
-
const this$ = this;
|
|
28
|
-
return EmployeeClient__GetCurrentEmployeeAsync_Z211DAE3E(this$, cancellationToken);
|
|
29
|
-
}
|
|
30
|
-
CreateEmployeeAsync(model, cancellationToken) {
|
|
31
|
-
const this$ = this;
|
|
32
|
-
return EmployeeClient__CreateEmployeeAsync_26ADFE5B(this$, model, cancellationToken);
|
|
33
|
-
}
|
|
34
|
-
UpdateEmployeeAsync(id, model, cancellationToken) {
|
|
35
|
-
const this$ = this;
|
|
36
|
-
return EmployeeClient__UpdateEmployeeAsync_Z4FFE351C(this$, id, model, cancellationToken);
|
|
37
|
-
}
|
|
38
|
-
UpdateCurrentEmployeeAsync(model, cancellationToken) {
|
|
39
|
-
const this$ = this;
|
|
40
|
-
return EmployeeClient__UpdateCurrentEmployeeAsync_26ADFE5B(this$, model, cancellationToken);
|
|
41
|
-
}
|
|
42
|
-
ManageEmployeeAsync(id, model, cancellationToken) {
|
|
43
|
-
const this$ = this;
|
|
44
|
-
return EmployeeClient__ManageEmployeeAsync_Z59544D17(this$, id, model, cancellationToken);
|
|
45
|
-
}
|
|
46
|
-
DeleteEmployeeAsync(id, cancellationToken) {
|
|
47
|
-
const this$ = this;
|
|
48
|
-
return EmployeeClient__DeleteEmployeeAsync_Z446FC023(this$, id, cancellationToken);
|
|
49
|
-
}
|
|
50
|
-
DeleteCurrentEmployeeAsync(cancellationToken) {
|
|
51
|
-
const this$ = this;
|
|
52
|
-
return EmployeeClient__DeleteCurrentEmployeeAsync_Z211DAE3E(this$, cancellationToken);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
export function EmployeeClient_$reflection() {
|
|
56
|
-
return class_type("Fossa.Bridge.Services.Clients.EmployeeClient", undefined, EmployeeClient);
|
|
57
|
-
}
|
|
58
|
-
export function EmployeeClient_$ctor_Z7C557C0(transport) {
|
|
59
|
-
return new EmployeeClient(transport);
|
|
60
|
-
}
|
|
61
|
-
export function EmployeeClient__GetEmployeesAsync_5DA070DE(_, query, cancellationToken) {
|
|
62
|
-
return _.transport.GetAsync(EmployeeClient__buildUrl_Z134B9264(_, query), cancellationToken);
|
|
63
|
-
}
|
|
64
|
-
export function EmployeeClient__GetEmployeesPagingAsync_Z11CE29DE(_, query, cancellationToken) {
|
|
65
|
-
return _.transport.GetAsync(EmployeeClient__buildPagingUrl_5E920BE0(_, query), cancellationToken);
|
|
66
|
-
}
|
|
67
|
-
export function EmployeeClient__GetEmployeeAsync_Z446FC023(_, id, cancellationToken) {
|
|
68
|
-
return _.transport.GetAsync(composeRelativeUrl(ofArray([UrlPart_op_Implicit_Z721C83C5(Employees), UrlPart_op_Implicit_Z524259C1(id)]), empty()), cancellationToken);
|
|
69
|
-
}
|
|
70
|
-
export function EmployeeClient__GetCurrentEmployeeAsync_Z211DAE3E(_, cancellationToken) {
|
|
71
|
-
return _.transport.GetAsync(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Employee)), empty()), cancellationToken);
|
|
72
|
-
}
|
|
73
|
-
export function EmployeeClient__CreateEmployeeAsync_26ADFE5B(_, model, cancellationToken) {
|
|
74
|
-
return _.transport.PostAsync(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Employee)), empty()), model, cancellationToken);
|
|
75
|
-
}
|
|
76
|
-
export function EmployeeClient__UpdateEmployeeAsync_Z4FFE351C(_, id, model, cancellationToken) {
|
|
77
|
-
return _.transport.PutAsync(composeRelativeUrl(ofArray([UrlPart_op_Implicit_Z721C83C5(Employee), UrlPart_op_Implicit_Z524259C1(id)]), empty()), model, cancellationToken);
|
|
78
|
-
}
|
|
79
|
-
export function EmployeeClient__UpdateCurrentEmployeeAsync_26ADFE5B(_, model, cancellationToken) {
|
|
80
|
-
return _.transport.PutAsync(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Employee)), empty()), model, cancellationToken);
|
|
81
|
-
}
|
|
82
|
-
export function EmployeeClient__ManageEmployeeAsync_Z59544D17(_, id, model, cancellationToken) {
|
|
83
|
-
return _.transport.PutAsync(composeRelativeUrl(ofArray([UrlPart_op_Implicit_Z721C83C5(Employees), UrlPart_op_Implicit_Z524259C1(id)]), empty()), model, cancellationToken);
|
|
84
|
-
}
|
|
85
|
-
export function EmployeeClient__DeleteEmployeeAsync_Z446FC023(_, id, cancellationToken) {
|
|
86
|
-
return _.transport.DeleteAsync(composeRelativeUrl(ofArray([UrlPart_op_Implicit_Z721C83C5(Employee), UrlPart_op_Implicit_Z524259C1(id)]), empty()), cancellationToken);
|
|
87
|
-
}
|
|
88
|
-
export function EmployeeClient__DeleteCurrentEmployeeAsync_Z211DAE3E(_, cancellationToken) {
|
|
89
|
-
return _.transport.DeleteAsync(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Employee)), empty()), cancellationToken);
|
|
90
|
-
}
|
|
91
|
-
export function EmployeeClient__buildUrl_Z134B9264(this$, queryParams) {
|
|
92
|
-
const parameters = toList(delay(() => {
|
|
93
|
-
let matchValue = undefined, ids_1 = undefined;
|
|
94
|
-
return append((matchValue = ofNullable(queryParams.Id), (matchValue != null) ? ((count(value(matchValue)) > 0) ? ((ids_1 = value(matchValue), map((id) => ["Id", UrlPart_op_Implicit_Z524259C1(id)], ids_1))) : (empty_1())) : (empty_1())), delay(() => append(!isNullOrEmpty(queryParams.Search) ? singleton_1(["Search", UrlPart_op_Implicit_Z721C83C5(queryParams.Search)]) : empty_1(), delay(() => append((queryParams.PageNumber != null) ? singleton_1(["PageNumber", UrlPart_op_Implicit_Z524259A4(nonNullValue(queryParams.PageNumber))]) : empty_1(), delay(() => append((queryParams.PageSize != null) ? singleton_1(["PageSize", UrlPart_op_Implicit_Z524259A4(nonNullValue(queryParams.PageSize))]) : empty_1(), delay(() => append((queryParams.ReportsToId != null) ? singleton_1(["ReportsToId", UrlPart_op_Implicit_Z524259C1(nonNullValue(queryParams.ReportsToId))]) : empty_1(), delay(() => ((queryParams.TopLevelOnly != null) ? singleton_1(["TopLevelOnly", UrlPart_op_Implicit_Z1FBCCD16(nonNullValue(queryParams.TopLevelOnly))]) : empty_1())))))))))));
|
|
95
|
-
}));
|
|
96
|
-
return composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Employees)), parameters);
|
|
97
|
-
}
|
|
98
|
-
export function EmployeeClient__buildPagingUrl_5E920BE0(this$, queryParams) {
|
|
99
|
-
const parameters = toList(delay(() => append(!isNullOrEmpty(queryParams.Search) ? singleton_1(["Search", UrlPart_op_Implicit_Z721C83C5(queryParams.Search)]) : empty_1(), delay(() => append((queryParams.PageNumber != null) ? singleton_1(["PageNumber", UrlPart_op_Implicit_Z524259A4(nonNullValue(queryParams.PageNumber))]) : empty_1(), delay(() => ((queryParams.PageSize != null) ? singleton_1(["PageSize", UrlPart_op_Implicit_Z524259A4(nonNullValue(queryParams.PageSize))]) : empty_1())))))));
|
|
100
|
-
return composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Employees)), parameters);
|
|
101
|
-
}
|
|
102
|
-
//# sourceMappingURL=EmployeeClient.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EmployeeClient.js","sourceRoot":"","sources":["EmployeeClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAY,MAAM,2CAA2C,CAAC;AAEjF,OAAO,EAAE,6BAA6B,EAAE,6BAA6B,EAAW,6BAA6B,EA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AO,EAAqB,EAAE,KAAK,CAAoB,GAAgC,EAAE,CAAC,MAAM,CAAoB,CAAC,WAAW,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,CAAoB,CAAC,YAAY,EAAE,6BAA6B,CAAC,YAAY,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAsB,CAAC,CAAC,CAAC,CAAC,OAAO,EAAqB,EAAE,KAAK,CAAoB,GAAgC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,CAAoB,CAAC,UAAU,EAAE,6BAA6B,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAsB,CAAC,CAAC,CAAC,CAAC,OAAO,EAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACr4B,OAAO,kBAAkB,CAAC,SAAS,CAAC,6BAA6B,CAAC,SAAS,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;AAC/F,CAAC"}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { EmployeeRetrievalModel, EmployeeManagementModel, EmployeeModificationModel, EmployeePagingRequestModel, EmployeeQueryRequestModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
3
|
-
import { int64 } from "@fable-org/fable-library-ts/BigInt.ts";
|
|
4
|
-
import { IHttpTransport } from "../IHttpTransport.ts";
|
|
5
|
-
import { IEmployeeClient } from "./IEmployeeClient.ts";
|
|
6
|
-
import { class_type, TypeInfo } from "@fable-org/fable-library-ts/Reflection.ts";
|
|
7
|
-
import { PagingResponseModel$1 } from "../../Models/ApiModels/EnvelopeModels.ts";
|
|
8
|
-
import { UrlPart_op_Implicit_Z1FBCCD16, UrlPart_op_Implicit_Z524259A4, UrlPart, UrlPart_op_Implicit_Z524259C1, UrlPart_op_Implicit_Z721C83C5, composeRelativeUrl } from "../UrlHelpers.ts";
|
|
9
|
-
import { Employee, Employees } from "../Endpoints.ts";
|
|
10
|
-
import { FSharpList, singleton, empty, ofArray } from "@fable-org/fable-library-ts/List.ts";
|
|
11
|
-
import { singleton as singleton_1, empty as empty_1, map, append, delay, toList } from "@fable-org/fable-library-ts/Seq.ts";
|
|
12
|
-
import { Option, nonNullValue, value, ofNullable } from "@fable-org/fable-library-ts/Option.ts";
|
|
13
|
-
import { count } from "@fable-org/fable-library-ts/CollectionUtil.ts";
|
|
14
|
-
import { isNullOrEmpty } from "@fable-org/fable-library-ts/String.ts";
|
|
15
|
-
|
|
16
|
-
export class EmployeeClient implements IEmployeeClient {
|
|
17
|
-
readonly transport: IHttpTransport;
|
|
18
|
-
constructor(transport: IHttpTransport) {
|
|
19
|
-
this.transport = transport;
|
|
20
|
-
}
|
|
21
|
-
GetEmployeesAsync(query: EmployeeQueryRequestModel, cancellationToken: any): any {
|
|
22
|
-
const this$: EmployeeClient = this;
|
|
23
|
-
return EmployeeClient__GetEmployeesAsync_5DA070DE(this$, query, cancellationToken);
|
|
24
|
-
}
|
|
25
|
-
GetEmployeesPagingAsync(query: EmployeePagingRequestModel, cancellationToken: any): any {
|
|
26
|
-
const this$: EmployeeClient = this;
|
|
27
|
-
return EmployeeClient__GetEmployeesPagingAsync_Z11CE29DE(this$, query, cancellationToken);
|
|
28
|
-
}
|
|
29
|
-
GetEmployeeAsync(id: int64, cancellationToken: any): any {
|
|
30
|
-
const this$: EmployeeClient = this;
|
|
31
|
-
return EmployeeClient__GetEmployeeAsync_Z446FC023(this$, id, cancellationToken);
|
|
32
|
-
}
|
|
33
|
-
GetCurrentEmployeeAsync(cancellationToken: any): any {
|
|
34
|
-
const this$: EmployeeClient = this;
|
|
35
|
-
return EmployeeClient__GetCurrentEmployeeAsync_Z211DAE3E(this$, cancellationToken);
|
|
36
|
-
}
|
|
37
|
-
CreateEmployeeAsync(model: EmployeeModificationModel, cancellationToken: any): any {
|
|
38
|
-
const this$: EmployeeClient = this;
|
|
39
|
-
return EmployeeClient__CreateEmployeeAsync_26ADFE5B(this$, model, cancellationToken);
|
|
40
|
-
}
|
|
41
|
-
UpdateEmployeeAsync(id: int64, model: EmployeeModificationModel, cancellationToken: any): any {
|
|
42
|
-
const this$: EmployeeClient = this;
|
|
43
|
-
return EmployeeClient__UpdateEmployeeAsync_Z4FFE351C(this$, id, model, cancellationToken);
|
|
44
|
-
}
|
|
45
|
-
UpdateCurrentEmployeeAsync(model: EmployeeModificationModel, cancellationToken: any): any {
|
|
46
|
-
const this$: EmployeeClient = this;
|
|
47
|
-
return EmployeeClient__UpdateCurrentEmployeeAsync_26ADFE5B(this$, model, cancellationToken);
|
|
48
|
-
}
|
|
49
|
-
ManageEmployeeAsync(id: int64, model: EmployeeManagementModel, cancellationToken: any): any {
|
|
50
|
-
const this$: EmployeeClient = this;
|
|
51
|
-
return EmployeeClient__ManageEmployeeAsync_Z59544D17(this$, id, model, cancellationToken);
|
|
52
|
-
}
|
|
53
|
-
DeleteEmployeeAsync(id: int64, cancellationToken: any): any {
|
|
54
|
-
const this$: EmployeeClient = this;
|
|
55
|
-
return EmployeeClient__DeleteEmployeeAsync_Z446FC023(this$, id, cancellationToken);
|
|
56
|
-
}
|
|
57
|
-
DeleteCurrentEmployeeAsync(cancellationToken: any): any {
|
|
58
|
-
const this$: EmployeeClient = this;
|
|
59
|
-
return EmployeeClient__DeleteCurrentEmployeeAsync_Z211DAE3E(this$, cancellationToken);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function EmployeeClient_$reflection(): TypeInfo {
|
|
64
|
-
return class_type("Fossa.Bridge.Services.Clients.EmployeeClient", undefined, EmployeeClient);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export function EmployeeClient_$ctor_Z7C557C0(transport: IHttpTransport): EmployeeClient {
|
|
68
|
-
return new EmployeeClient(transport);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export function EmployeeClient__GetEmployeesAsync_5DA070DE(_: EmployeeClient, query: EmployeeQueryRequestModel, cancellationToken: any): any {
|
|
72
|
-
return _.transport.GetAsync<PagingResponseModel$1<EmployeeRetrievalModel>>(EmployeeClient__buildUrl_Z134B9264(_, query), cancellationToken);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function EmployeeClient__GetEmployeesPagingAsync_Z11CE29DE(_: EmployeeClient, query: EmployeePagingRequestModel, cancellationToken: any): any {
|
|
76
|
-
return _.transport.GetAsync<PagingResponseModel$1<EmployeeRetrievalModel>>(EmployeeClient__buildPagingUrl_5E920BE0(_, query), cancellationToken);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function EmployeeClient__GetEmployeeAsync_Z446FC023(_: EmployeeClient, id: int64, cancellationToken: any): any {
|
|
80
|
-
return _.transport.GetAsync<EmployeeRetrievalModel>(composeRelativeUrl(ofArray([UrlPart_op_Implicit_Z721C83C5(Employees), UrlPart_op_Implicit_Z524259C1(id)]), empty<[string, UrlPart]>()), cancellationToken);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export function EmployeeClient__GetCurrentEmployeeAsync_Z211DAE3E(_: EmployeeClient, cancellationToken: any): any {
|
|
84
|
-
return _.transport.GetAsync<EmployeeRetrievalModel>(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Employee)), empty<[string, UrlPart]>()), cancellationToken);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export function EmployeeClient__CreateEmployeeAsync_26ADFE5B(_: EmployeeClient, model: EmployeeModificationModel, cancellationToken: any): any {
|
|
88
|
-
return _.transport.PostAsync<EmployeeModificationModel>(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Employee)), empty<[string, UrlPart]>()), model, cancellationToken);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export function EmployeeClient__UpdateEmployeeAsync_Z4FFE351C(_: EmployeeClient, id: int64, model: EmployeeModificationModel, cancellationToken: any): any {
|
|
92
|
-
return _.transport.PutAsync<EmployeeModificationModel>(composeRelativeUrl(ofArray([UrlPart_op_Implicit_Z721C83C5(Employee), UrlPart_op_Implicit_Z524259C1(id)]), empty<[string, UrlPart]>()), model, cancellationToken);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export function EmployeeClient__UpdateCurrentEmployeeAsync_26ADFE5B(_: EmployeeClient, model: EmployeeModificationModel, cancellationToken: any): any {
|
|
96
|
-
return _.transport.PutAsync<EmployeeModificationModel>(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Employee)), empty<[string, UrlPart]>()), model, cancellationToken);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export function EmployeeClient__ManageEmployeeAsync_Z59544D17(_: EmployeeClient, id: int64, model: EmployeeManagementModel, cancellationToken: any): any {
|
|
100
|
-
return _.transport.PutAsync<EmployeeManagementModel>(composeRelativeUrl(ofArray([UrlPart_op_Implicit_Z721C83C5(Employees), UrlPart_op_Implicit_Z524259C1(id)]), empty<[string, UrlPart]>()), model, cancellationToken);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export function EmployeeClient__DeleteEmployeeAsync_Z446FC023(_: EmployeeClient, id: int64, cancellationToken: any): any {
|
|
104
|
-
return _.transport.DeleteAsync(composeRelativeUrl(ofArray([UrlPart_op_Implicit_Z721C83C5(Employee), UrlPart_op_Implicit_Z524259C1(id)]), empty<[string, UrlPart]>()), cancellationToken);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export function EmployeeClient__DeleteCurrentEmployeeAsync_Z211DAE3E(_: EmployeeClient, cancellationToken: any): any {
|
|
108
|
-
return _.transport.DeleteAsync(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Employee)), empty<[string, UrlPart]>()), cancellationToken);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export function EmployeeClient__buildUrl_Z134B9264(this$: EmployeeClient, queryParams: EmployeeQueryRequestModel): string {
|
|
112
|
-
const parameters: FSharpList<[string, UrlPart]> = toList<[string, UrlPart]>(delay<[string, UrlPart]>((): Iterable<[string, UrlPart]> => {
|
|
113
|
-
let matchValue: Option<any> = (undefined as any), ids_1: any = (undefined as any);
|
|
114
|
-
return append<[string, UrlPart]>((matchValue = ofNullable<any>(queryParams.Id), (matchValue != null) ? ((count(value(matchValue)) > 0) ? ((ids_1 = value(matchValue), map<int64, [string, UrlPart]>((id: int64): [string, UrlPart] => (["Id", UrlPart_op_Implicit_Z524259C1(id)] as [string, UrlPart]), ids_1))) : (empty_1<[string, UrlPart]>())) : (empty_1<[string, UrlPart]>())), delay<[string, UrlPart]>((): Iterable<[string, UrlPart]> => append<[string, UrlPart]>(!isNullOrEmpty(queryParams.Search) ? singleton_1<[string, UrlPart]>(["Search", UrlPart_op_Implicit_Z721C83C5(queryParams.Search)] as [string, UrlPart]) : empty_1<[string, UrlPart]>(), delay<[string, UrlPart]>((): Iterable<[string, UrlPart]> => append<[string, UrlPart]>((queryParams.PageNumber != null) ? singleton_1<[string, UrlPart]>(["PageNumber", UrlPart_op_Implicit_Z524259A4(nonNullValue(queryParams.PageNumber))] as [string, UrlPart]) : empty_1<[string, UrlPart]>(), delay<[string, UrlPart]>((): Iterable<[string, UrlPart]> => append<[string, UrlPart]>((queryParams.PageSize != null) ? singleton_1<[string, UrlPart]>(["PageSize", UrlPart_op_Implicit_Z524259A4(nonNullValue(queryParams.PageSize))] as [string, UrlPart]) : empty_1<[string, UrlPart]>(), delay<[string, UrlPart]>((): Iterable<[string, UrlPart]> => append<[string, UrlPart]>((queryParams.ReportsToId != null) ? singleton_1<[string, UrlPart]>(["ReportsToId", UrlPart_op_Implicit_Z524259C1(nonNullValue(queryParams.ReportsToId))] as [string, UrlPart]) : empty_1<[string, UrlPart]>(), delay<[string, UrlPart]>((): Iterable<[string, UrlPart]> => ((queryParams.TopLevelOnly != null) ? singleton_1<[string, UrlPart]>(["TopLevelOnly", UrlPart_op_Implicit_Z1FBCCD16(nonNullValue(queryParams.TopLevelOnly))] as [string, UrlPart]) : empty_1<[string, UrlPart]>())))))))))));
|
|
115
|
-
}));
|
|
116
|
-
return composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Employees)), parameters);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export function EmployeeClient__buildPagingUrl_5E920BE0(this$: EmployeeClient, queryParams: EmployeePagingRequestModel): string {
|
|
120
|
-
const parameters: FSharpList<[string, UrlPart]> = toList<[string, UrlPart]>(delay<[string, UrlPart]>((): Iterable<[string, UrlPart]> => append<[string, UrlPart]>(!isNullOrEmpty(queryParams.Search) ? singleton_1<[string, UrlPart]>(["Search", UrlPart_op_Implicit_Z721C83C5(queryParams.Search)] as [string, UrlPart]) : empty_1<[string, UrlPart]>(), delay<[string, UrlPart]>((): Iterable<[string, UrlPart]> => append<[string, UrlPart]>((queryParams.PageNumber != null) ? singleton_1<[string, UrlPart]>(["PageNumber", UrlPart_op_Implicit_Z524259A4(nonNullValue(queryParams.PageNumber))] as [string, UrlPart]) : empty_1<[string, UrlPart]>(), delay<[string, UrlPart]>((): Iterable<[string, UrlPart]> => ((queryParams.PageSize != null) ? singleton_1<[string, UrlPart]>(["PageSize", UrlPart_op_Implicit_Z524259A4(nonNullValue(queryParams.PageSize))] as [string, UrlPart]) : empty_1<[string, UrlPart]>())))))));
|
|
121
|
-
return composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Employees)), parameters);
|
|
122
|
-
}
|
|
123
|
-
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BranchQueryRequestModel, BranchModificationModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
2
|
-
import { int64 } from "@fable-org/fable-library-ts/BigInt.ts";
|
|
3
|
-
export interface IBranchClient {
|
|
4
|
-
CreateBranchAsync(model: BranchModificationModel, cancellationToken: any): any;
|
|
5
|
-
DeleteBranchAsync(id: int64, cancellationToken: any): any;
|
|
6
|
-
GetBranchAsync(id: int64, cancellationToken: any): any;
|
|
7
|
-
GetBranchesAsync(query: BranchQueryRequestModel, cancellationToken: any): any;
|
|
8
|
-
UpdateBranchAsync(id: int64, model: BranchModificationModel, cancellationToken: any): any;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IBranchClient.js","sourceRoot":"","sources":["IBranchClient.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { BranchQueryRequestModel, BranchModificationModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
3
|
-
import { int64 } from "@fable-org/fable-library-ts/BigInt.ts";
|
|
4
|
-
|
|
5
|
-
export interface IBranchClient {
|
|
6
|
-
CreateBranchAsync(model: BranchModificationModel, cancellationToken: any): any,
|
|
7
|
-
DeleteBranchAsync(id: int64, cancellationToken: any): any,
|
|
8
|
-
GetBranchAsync(id: int64, cancellationToken: any): any,
|
|
9
|
-
GetBranchesAsync(query: BranchQueryRequestModel, cancellationToken: any): any,
|
|
10
|
-
UpdateBranchAsync(id: int64, model: BranchModificationModel, cancellationToken: any): any
|
|
11
|
-
}
|
|
12
|
-
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CompanyModificationModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
2
|
-
export interface ICompanyClient {
|
|
3
|
-
CreateCompanyAsync(model: CompanyModificationModel, cancellationToken: any): any;
|
|
4
|
-
DeleteCompanyAsync(cancellationToken: any): any;
|
|
5
|
-
GetCompanyAsync(cancellationToken: any): any;
|
|
6
|
-
UpdateCompanyAsync(model: CompanyModificationModel, cancellationToken: any): any;
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ICompanyClient.js","sourceRoot":"","sources":["ICompanyClient.ts"],"names":[],"mappings":""}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { CompanyModificationModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
3
|
-
|
|
4
|
-
export interface ICompanyClient {
|
|
5
|
-
CreateCompanyAsync(model: CompanyModificationModel, cancellationToken: any): any,
|
|
6
|
-
DeleteCompanyAsync(cancellationToken: any): any,
|
|
7
|
-
GetCompanyAsync(cancellationToken: any): any,
|
|
8
|
-
UpdateCompanyAsync(model: CompanyModificationModel, cancellationToken: any): any
|
|
9
|
-
}
|
|
10
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ICompanyLicenseClient.js","sourceRoot":"","sources":["ICompanyLicenseClient.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CompanySettingsModificationModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
2
|
-
export interface ICompanySettingsClient {
|
|
3
|
-
CreateCompanySettingsAsync(model: CompanySettingsModificationModel, cancellationToken: any): any;
|
|
4
|
-
DeleteCompanySettingsAsync(cancellationToken: any): any;
|
|
5
|
-
GetCompanySettingsAsync(cancellationToken: any): any;
|
|
6
|
-
UpdateCompanySettingsAsync(model: CompanySettingsModificationModel, cancellationToken: any): any;
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ICompanySettingsClient.js","sourceRoot":"","sources":["ICompanySettingsClient.ts"],"names":[],"mappings":""}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { CompanySettingsModificationModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
3
|
-
|
|
4
|
-
export interface ICompanySettingsClient {
|
|
5
|
-
CreateCompanySettingsAsync(model: CompanySettingsModificationModel, cancellationToken: any): any,
|
|
6
|
-
DeleteCompanySettingsAsync(cancellationToken: any): any,
|
|
7
|
-
GetCompanySettingsAsync(cancellationToken: any): any,
|
|
8
|
-
UpdateCompanySettingsAsync(model: CompanySettingsModificationModel, cancellationToken: any): any
|
|
9
|
-
}
|
|
10
|
-
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { DepartmentQueryRequestModel, DepartmentModificationModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
2
|
-
import { int64 } from "@fable-org/fable-library-ts/BigInt.ts";
|
|
3
|
-
export interface IDepartmentClient {
|
|
4
|
-
CreateDepartmentAsync(model: DepartmentModificationModel, cancellationToken: any): any;
|
|
5
|
-
DeleteDepartmentAsync(id: int64, cancellationToken: any): any;
|
|
6
|
-
GetDepartmentAsync(id: int64, cancellationToken: any): any;
|
|
7
|
-
GetDepartmentsAsync(query: DepartmentQueryRequestModel, cancellationToken: any): any;
|
|
8
|
-
UpdateDepartmentAsync(id: int64, model: DepartmentModificationModel, cancellationToken: any): any;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IDepartmentClient.js","sourceRoot":"","sources":["IDepartmentClient.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { DepartmentQueryRequestModel, DepartmentModificationModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
3
|
-
import { int64 } from "@fable-org/fable-library-ts/BigInt.ts";
|
|
4
|
-
|
|
5
|
-
export interface IDepartmentClient {
|
|
6
|
-
CreateDepartmentAsync(model: DepartmentModificationModel, cancellationToken: any): any,
|
|
7
|
-
DeleteDepartmentAsync(id: int64, cancellationToken: any): any,
|
|
8
|
-
GetDepartmentAsync(id: int64, cancellationToken: any): any,
|
|
9
|
-
GetDepartmentsAsync(query: DepartmentQueryRequestModel, cancellationToken: any): any,
|
|
10
|
-
UpdateDepartmentAsync(id: int64, model: DepartmentModificationModel, cancellationToken: any): any
|
|
11
|
-
}
|
|
12
|
-
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { EmployeeManagementModel, EmployeePagingRequestModel, EmployeeQueryRequestModel, EmployeeModificationModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
2
|
-
import { int64 } from "@fable-org/fable-library-ts/BigInt.ts";
|
|
3
|
-
export interface IEmployeeClient {
|
|
4
|
-
CreateEmployeeAsync(model: EmployeeModificationModel, cancellationToken: any): any;
|
|
5
|
-
DeleteCurrentEmployeeAsync(cancellationToken: any): any;
|
|
6
|
-
DeleteEmployeeAsync(id: int64, cancellationToken: any): any;
|
|
7
|
-
GetCurrentEmployeeAsync(cancellationToken: any): any;
|
|
8
|
-
GetEmployeeAsync(id: int64, cancellationToken: any): any;
|
|
9
|
-
GetEmployeesAsync(query: EmployeeQueryRequestModel, cancellationToken: any): any;
|
|
10
|
-
GetEmployeesPagingAsync(query: EmployeePagingRequestModel, cancellationToken: any): any;
|
|
11
|
-
ManageEmployeeAsync(id: int64, model: EmployeeManagementModel, cancellationToken: any): any;
|
|
12
|
-
UpdateCurrentEmployeeAsync(model: EmployeeModificationModel, cancellationToken: any): any;
|
|
13
|
-
UpdateEmployeeAsync(id: int64, model: EmployeeModificationModel, cancellationToken: any): any;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IEmployeeClient.js","sourceRoot":"","sources":["IEmployeeClient.ts"],"names":[],"mappings":""}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { EmployeeManagementModel, EmployeePagingRequestModel, EmployeeQueryRequestModel, EmployeeModificationModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
3
|
-
import { int64 } from "@fable-org/fable-library-ts/BigInt.ts";
|
|
4
|
-
|
|
5
|
-
export interface IEmployeeClient {
|
|
6
|
-
CreateEmployeeAsync(model: EmployeeModificationModel, cancellationToken: any): any,
|
|
7
|
-
DeleteCurrentEmployeeAsync(cancellationToken: any): any,
|
|
8
|
-
DeleteEmployeeAsync(id: int64, cancellationToken: any): any,
|
|
9
|
-
GetCurrentEmployeeAsync(cancellationToken: any): any,
|
|
10
|
-
GetEmployeeAsync(id: int64, cancellationToken: any): any,
|
|
11
|
-
GetEmployeesAsync(query: EmployeeQueryRequestModel, cancellationToken: any): any,
|
|
12
|
-
GetEmployeesPagingAsync(query: EmployeePagingRequestModel, cancellationToken: any): any,
|
|
13
|
-
ManageEmployeeAsync(id: int64, model: EmployeeManagementModel, cancellationToken: any): any,
|
|
14
|
-
UpdateCurrentEmployeeAsync(model: EmployeeModificationModel, cancellationToken: any): any,
|
|
15
|
-
UpdateEmployeeAsync(id: int64, model: EmployeeModificationModel, cancellationToken: any): any
|
|
16
|
-
}
|
|
17
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IIdentityClient.js","sourceRoot":"","sources":["IIdentityClient.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ISystemLicenseClient.js","sourceRoot":"","sources":["ISystemLicenseClient.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IHttpTransport } from "../IHttpTransport.ts";
|
|
2
|
-
import { IIdentityClient } from "./IIdentityClient.ts";
|
|
3
|
-
import { TypeInfo } from "@fable-org/fable-library-ts/Reflection.ts";
|
|
4
|
-
export declare class IdentityClient implements IIdentityClient {
|
|
5
|
-
readonly transport: IHttpTransport;
|
|
6
|
-
constructor(transport: IHttpTransport);
|
|
7
|
-
GetClientAsync(origin: string, cancellationToken: any): any;
|
|
8
|
-
}
|
|
9
|
-
export declare function IdentityClient_$reflection(): TypeInfo;
|
|
10
|
-
export declare function IdentityClient_$ctor_Z7C557C0(transport: IHttpTransport): IdentityClient;
|
|
11
|
-
export declare function IdentityClient__GetClientAsync_Z6B4EADA7(_: IdentityClient, origin: string, cancellationToken: any): any;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { class_type } from "@fable-org/fable-library-ts/Reflection.ts";
|
|
2
|
-
import { UrlPart_op_Implicit_Z721C83C5, composeRelativeUrl } from "../UrlHelpers.js";
|
|
3
|
-
import { Client } from "../Endpoints.js";
|
|
4
|
-
import { singleton } from "@fable-org/fable-library-ts/List.ts";
|
|
5
|
-
export class IdentityClient {
|
|
6
|
-
transport;
|
|
7
|
-
constructor(transport) {
|
|
8
|
-
this.transport = transport;
|
|
9
|
-
}
|
|
10
|
-
GetClientAsync(origin, cancellationToken) {
|
|
11
|
-
const this$ = this;
|
|
12
|
-
return IdentityClient__GetClientAsync_Z6B4EADA7(this$, origin, cancellationToken);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export function IdentityClient_$reflection() {
|
|
16
|
-
return class_type("Fossa.Bridge.Services.Clients.IdentityClient", undefined, IdentityClient);
|
|
17
|
-
}
|
|
18
|
-
export function IdentityClient_$ctor_Z7C557C0(transport) {
|
|
19
|
-
return new IdentityClient(transport);
|
|
20
|
-
}
|
|
21
|
-
export function IdentityClient__GetClientAsync_Z6B4EADA7(_, origin, cancellationToken) {
|
|
22
|
-
return _.transport.GetAsync(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Client)), singleton(["origin", UrlPart_op_Implicit_Z721C83C5(origin)])), cancellationToken);
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=IdentityClient.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityClient.js","sourceRoot":"","sources":["IdentityClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAY,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAW,6BAA6B,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC9F,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAGhE,MAAM,OAAO,cAAc;IACd,SAAS,CAAiB;IACnC,YAAY,SAAyB;QACjC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IACD,cAAc,CAAC,MAAc,EAAE,iBAAsB;QACjD,MAAM,KAAK,GAAmB,IAAI,CAAC;QACnC,OAAO,wCAAwC,CAAC,KAAK,EAAE,MAAM,EAAE,iBAAiB,CAAC,CAAC;IACtF,CAAC;CACJ;AAED,MAAM,UAAU,0BAA0B;IACtC,OAAO,UAAU,CAAC,8CAA8C,EAAE,SAAS,EAAE,cAAc,CAAC,CAAC;AACjG,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,SAAyB;IACnE,OAAO,IAAI,cAAc,CAAC,SAAS,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,wCAAwC,CAAC,CAAiB,EAAE,MAAc,EAAE,iBAAsB;IAC9G,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ,CAA+B,kBAAkB,CAAC,SAAS,CAAC,6BAA6B,CAAC,MAAM,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,QAAQ,EAAE,6BAA6B,CAAC,MAAM,CAAC,CAAsB,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAC;AAC1O,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { IHttpTransport } from "../IHttpTransport.ts";
|
|
3
|
-
import { IIdentityClient } from "./IIdentityClient.ts";
|
|
4
|
-
import { class_type, TypeInfo } from "@fable-org/fable-library-ts/Reflection.ts";
|
|
5
|
-
import { UrlPart, UrlPart_op_Implicit_Z721C83C5, composeRelativeUrl } from "../UrlHelpers.ts";
|
|
6
|
-
import { Client } from "../Endpoints.ts";
|
|
7
|
-
import { singleton } from "@fable-org/fable-library-ts/List.ts";
|
|
8
|
-
import { IdentityClientRetrievalModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
9
|
-
|
|
10
|
-
export class IdentityClient implements IIdentityClient {
|
|
11
|
-
readonly transport: IHttpTransport;
|
|
12
|
-
constructor(transport: IHttpTransport) {
|
|
13
|
-
this.transport = transport;
|
|
14
|
-
}
|
|
15
|
-
GetClientAsync(origin: string, cancellationToken: any): any {
|
|
16
|
-
const this$: IdentityClient = this;
|
|
17
|
-
return IdentityClient__GetClientAsync_Z6B4EADA7(this$, origin, cancellationToken);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export function IdentityClient_$reflection(): TypeInfo {
|
|
22
|
-
return class_type("Fossa.Bridge.Services.Clients.IdentityClient", undefined, IdentityClient);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export function IdentityClient_$ctor_Z7C557C0(transport: IHttpTransport): IdentityClient {
|
|
26
|
-
return new IdentityClient(transport);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export function IdentityClient__GetClientAsync_Z6B4EADA7(_: IdentityClient, origin: string, cancellationToken: any): any {
|
|
30
|
-
return _.transport.GetAsync<IdentityClientRetrievalModel>(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(Client)), singleton(["origin", UrlPart_op_Implicit_Z721C83C5(origin)] as [string, UrlPart])), cancellationToken);
|
|
31
|
-
}
|
|
32
|
-
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IHttpTransport } from "../IHttpTransport.ts";
|
|
2
|
-
import { ISystemLicenseClient } from "./ISystemLicenseClient.ts";
|
|
3
|
-
import { TypeInfo } from "@fable-org/fable-library-ts/Reflection.ts";
|
|
4
|
-
export declare class SystemLicenseClient implements ISystemLicenseClient {
|
|
5
|
-
readonly transport: IHttpTransport;
|
|
6
|
-
constructor(transport: IHttpTransport);
|
|
7
|
-
GetLicenseAsync(cancellationToken: any): any;
|
|
8
|
-
}
|
|
9
|
-
export declare function SystemLicenseClient_$reflection(): TypeInfo;
|
|
10
|
-
export declare function SystemLicenseClient_$ctor_Z7C557C0(transport: IHttpTransport): SystemLicenseClient;
|
|
11
|
-
export declare function SystemLicenseClient__GetLicenseAsync_Z211DAE3E(_: SystemLicenseClient, cancellationToken: any): any;
|