@fossa-app/bridge 0.1.17 → 0.1.18
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.js +34 -0
- package/dist/Models/ApiModels/EnvelopeModels.js.map +1 -0
- package/dist/Models/ApiModels/EnvelopeModels.ts +42 -0
- package/dist/Models/ApiModels/PayloadModels.js +286 -0
- package/dist/Models/ApiModels/PayloadModels.js.map +1 -0
- package/dist/Models/ApiModels/PayloadModels.ts +326 -0
- package/dist/Models/ApiModels/SharedModels.js +79 -0
- package/dist/Models/ApiModels/SharedModels.js.map +1 -0
- package/dist/Models/ApiModels/SharedModels.ts +91 -0
- package/dist/Services/Clients/BranchClient.js +63 -0
- package/dist/Services/Clients/BranchClient.js.map +1 -0
- package/dist/Services/Clients/BranchClient.ts +78 -0
- package/dist/Services/Clients/CompanyClient.js +45 -0
- package/dist/Services/Clients/CompanyClient.js.map +1 -0
- package/dist/Services/Clients/CompanyClient.ts +56 -0
- package/dist/Services/Clients/CompanyLicenseClient.js +31 -0
- package/dist/Services/Clients/CompanyLicenseClient.js.map +1 -0
- package/dist/Services/Clients/CompanyLicenseClient.ts +41 -0
- package/dist/Services/Clients/CompanySettingsClient.js +45 -0
- package/dist/Services/Clients/CompanySettingsClient.js.map +1 -0
- package/dist/Services/Clients/CompanySettingsClient.ts +56 -0
- package/dist/Services/Clients/DepartmentClient.js +63 -0
- package/dist/Services/Clients/DepartmentClient.js.map +1 -0
- package/dist/Services/Clients/DepartmentClient.ts +78 -0
- package/dist/Services/Clients/EmployeeClient.js +102 -0
- package/dist/Services/Clients/EmployeeClient.js.map +1 -0
- package/dist/Services/Clients/EmployeeClient.ts +123 -0
- package/dist/Services/Clients/IBranchClient.js +2 -0
- package/dist/Services/Clients/IBranchClient.js.map +1 -0
- package/dist/Services/Clients/IBranchClient.ts +12 -0
- package/dist/Services/Clients/ICompanyClient.js +2 -0
- package/dist/Services/Clients/ICompanyClient.js.map +1 -0
- package/dist/Services/Clients/ICompanyClient.ts +10 -0
- package/dist/Services/Clients/ICompanyLicenseClient.js +2 -0
- package/dist/Services/Clients/ICompanyLicenseClient.js.map +1 -0
- package/dist/Services/Clients/ICompanyLicenseClient.ts +7 -0
- package/dist/Services/Clients/ICompanySettingsClient.js +2 -0
- package/dist/Services/Clients/ICompanySettingsClient.js.map +1 -0
- package/dist/Services/Clients/ICompanySettingsClient.ts +10 -0
- package/dist/Services/Clients/IDepartmentClient.js +2 -0
- package/dist/Services/Clients/IDepartmentClient.js.map +1 -0
- package/dist/Services/Clients/IDepartmentClient.ts +12 -0
- package/dist/Services/Clients/IEmployeeClient.js +2 -0
- package/dist/Services/Clients/IEmployeeClient.js.map +1 -0
- package/dist/Services/Clients/IEmployeeClient.ts +17 -0
- package/dist/Services/Clients/IIdentityClient.js +2 -0
- package/dist/Services/Clients/IIdentityClient.js.map +1 -0
- package/dist/Services/Clients/IIdentityClient.ts +6 -0
- package/dist/Services/Clients/ISystemLicenseClient.js +2 -0
- package/dist/Services/Clients/ISystemLicenseClient.js.map +1 -0
- package/dist/Services/Clients/ISystemLicenseClient.ts +6 -0
- package/dist/Services/Clients/IdentityClient.js +24 -0
- package/dist/Services/Clients/IdentityClient.js.map +1 -0
- package/dist/Services/Clients/IdentityClient.ts +32 -0
- package/dist/Services/Clients/SystemLicenseClient.js +24 -0
- package/dist/Services/Clients/SystemLicenseClient.js.map +1 -0
- package/dist/Services/Clients/SystemLicenseClient.ts +33 -0
- package/dist/Services/Endpoints.js +11 -0
- package/dist/Services/Endpoints.js.map +1 -0
- package/dist/Services/Endpoints.ts +22 -0
- package/dist/Services/IHttpTransport.js +2 -0
- package/dist/Services/IHttpTransport.js.map +1 -0
- package/dist/Services/IHttpTransport.ts +10 -0
- package/dist/Services/UrlHelpers.js +86 -0
- package/dist/Services/UrlHelpers.js.map +1 -0
- package/dist/Services/UrlHelpers.ts +107 -0
- package/package.json +1 -1
|
@@ -0,0 +1,123 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IBranchClient.js","sourceRoot":"","sources":["IBranchClient.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ICompanyClient.js","sourceRoot":"","sources":["ICompanyClient.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ICompanyLicenseClient.js","sourceRoot":"","sources":["ICompanyLicenseClient.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ICompanySettingsClient.js","sourceRoot":"","sources":["ICompanySettingsClient.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDepartmentClient.js","sourceRoot":"","sources":["IDepartmentClient.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEmployeeClient.js","sourceRoot":"","sources":["IEmployeeClient.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IIdentityClient.js","sourceRoot":"","sources":["IIdentityClient.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ISystemLicenseClient.js","sourceRoot":"","sources":["ISystemLicenseClient.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { class_type } from "@fable-org/fable-library-ts/Reflection.ts";
|
|
2
|
+
import { UrlPart_op_Implicit_Z721C83C5, composeRelativeUrl } from "../UrlHelpers.js";
|
|
3
|
+
import { SystemLicense } from "../Endpoints.js";
|
|
4
|
+
import { empty, singleton } from "@fable-org/fable-library-ts/List.ts";
|
|
5
|
+
export class SystemLicenseClient {
|
|
6
|
+
transport;
|
|
7
|
+
constructor(transport) {
|
|
8
|
+
this.transport = transport;
|
|
9
|
+
}
|
|
10
|
+
GetLicenseAsync(cancellationToken) {
|
|
11
|
+
const this$ = this;
|
|
12
|
+
return SystemLicenseClient__GetLicenseAsync_Z211DAE3E(this$, cancellationToken);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export function SystemLicenseClient_$reflection() {
|
|
16
|
+
return class_type("Fossa.Bridge.Services.Clients.SystemLicenseClient", undefined, SystemLicenseClient);
|
|
17
|
+
}
|
|
18
|
+
export function SystemLicenseClient_$ctor_Z7C557C0(transport) {
|
|
19
|
+
return new SystemLicenseClient(transport);
|
|
20
|
+
}
|
|
21
|
+
export function SystemLicenseClient__GetLicenseAsync_Z211DAE3E(_, cancellationToken) {
|
|
22
|
+
return _.transport.GetAsync(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(SystemLicense)), empty()), cancellationToken);
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=SystemLicenseClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SystemLicenseClient.js","sourceRoot":"","sources":["SystemLicenseClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAY,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAW,6BAA6B,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC9F,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAIvE,MAAM,OAAO,mBAAmB;IACnB,SAAS,CAAiB;IACnC,YAAY,SAAyB;QACjC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IACD,eAAe,CAAC,iBAAsB;QAClC,MAAM,KAAK,GAAwB,IAAI,CAAC;QACxC,OAAO,8CAA8C,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC;IACpF,CAAC;CACJ;AAED,MAAM,UAAU,+BAA+B;IAC3C,OAAO,UAAU,CAAC,mDAAmD,EAAE,SAAS,EAAE,mBAAmB,CAAC,CAAC;AAC3G,CAAC;AAED,MAAM,UAAU,kCAAkC,CAAC,SAAyB;IACxE,OAAO,IAAI,mBAAmB,CAAC,SAAS,CAAC,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,8CAA8C,CAAC,CAAsB,EAAE,iBAAsB;IACzG,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAkD,kBAAkB,CAAC,SAAS,CAAC,6BAA6B,CAAC,aAAa,CAAC,CAAC,EAAE,KAAK,EAAqB,CAAC,EAAE,iBAAiB,CAAC,CAAC;AAC7M,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
import { IHttpTransport } from "../IHttpTransport.ts";
|
|
3
|
+
import { ISystemLicenseClient } from "./ISystemLicenseClient.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 { SystemLicense } from "../Endpoints.ts";
|
|
7
|
+
import { empty, singleton } from "@fable-org/fable-library-ts/List.ts";
|
|
8
|
+
import { LicenseResponseModel$1 } from "../../Models/ApiModels/EnvelopeModels.ts";
|
|
9
|
+
import { SystemEntitlementsModel } from "../../Models/ApiModels/PayloadModels.ts";
|
|
10
|
+
|
|
11
|
+
export class SystemLicenseClient implements ISystemLicenseClient {
|
|
12
|
+
readonly transport: IHttpTransport;
|
|
13
|
+
constructor(transport: IHttpTransport) {
|
|
14
|
+
this.transport = transport;
|
|
15
|
+
}
|
|
16
|
+
GetLicenseAsync(cancellationToken: any): any {
|
|
17
|
+
const this$: SystemLicenseClient = this;
|
|
18
|
+
return SystemLicenseClient__GetLicenseAsync_Z211DAE3E(this$, cancellationToken);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function SystemLicenseClient_$reflection(): TypeInfo {
|
|
23
|
+
return class_type("Fossa.Bridge.Services.Clients.SystemLicenseClient", undefined, SystemLicenseClient);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function SystemLicenseClient_$ctor_Z7C557C0(transport: IHttpTransport): SystemLicenseClient {
|
|
27
|
+
return new SystemLicenseClient(transport);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function SystemLicenseClient__GetLicenseAsync_Z211DAE3E(_: SystemLicenseClient, cancellationToken: any): any {
|
|
31
|
+
return _.transport.GetAsync<LicenseResponseModel$1<SystemEntitlementsModel>>(composeRelativeUrl(singleton(UrlPart_op_Implicit_Z721C83C5(SystemLicense)), empty<[string, UrlPart]>()), cancellationToken);
|
|
32
|
+
}
|
|
33
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const BasePath = "api/1.0";
|
|
2
|
+
export const Client = "Identity/Client";
|
|
3
|
+
export const SystemLicense = "License/System";
|
|
4
|
+
export const CompanyLicense = "License/Company";
|
|
5
|
+
export const Company = "Company";
|
|
6
|
+
export const CompanySettings = "CompanySettings";
|
|
7
|
+
export const Branches = "Branches";
|
|
8
|
+
export const Departments = "Departments";
|
|
9
|
+
export const Employee = "Employee";
|
|
10
|
+
export const Employees = "Employees";
|
|
11
|
+
//# sourceMappingURL=Endpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Endpoints.js","sourceRoot":"","sources":["Endpoints.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAG,SAAS,CAAC;AAElC,MAAM,CAAC,MAAM,MAAM,GAAG,iBAAiB,CAAC;AAExC,MAAM,CAAC,MAAM,aAAa,GAAG,gBAAgB,CAAC;AAE9C,MAAM,CAAC,MAAM,cAAc,GAAG,iBAAiB,CAAC;AAEhD,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;AAEjC,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAEjD,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC;AAEnC,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC;AAEzC,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC;AAEnC,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export const BasePath = "api/1.0";
|
|
4
|
+
|
|
5
|
+
export const Client = "Identity/Client";
|
|
6
|
+
|
|
7
|
+
export const SystemLicense = "License/System";
|
|
8
|
+
|
|
9
|
+
export const CompanyLicense = "License/Company";
|
|
10
|
+
|
|
11
|
+
export const Company = "Company";
|
|
12
|
+
|
|
13
|
+
export const CompanySettings = "CompanySettings";
|
|
14
|
+
|
|
15
|
+
export const Branches = "Branches";
|
|
16
|
+
|
|
17
|
+
export const Departments = "Departments";
|
|
18
|
+
|
|
19
|
+
export const Employee = "Employee";
|
|
20
|
+
|
|
21
|
+
export const Employees = "Employees";
|
|
22
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IHttpTransport.js","sourceRoot":"","sources":["IHttpTransport.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export interface IHttpTransport {
|
|
4
|
+
DeleteAsync(requestUri: string, cancellationToken: any): any,
|
|
5
|
+
GetAsync<TResponse>(requestUri: string, cancellationToken: any): any,
|
|
6
|
+
PatchAsync<TRequest>(requestUri: string, request: TRequest, cancellationToken: any): any,
|
|
7
|
+
PostAsync<TRequest>(requestUri: string, request: TRequest, cancellationToken: any): any,
|
|
8
|
+
PutAsync<TRequest>(requestUri: string, request: TRequest, cancellationToken: any): any
|
|
9
|
+
}
|
|
10
|
+
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { isEmpty, cons, map, tryFind, ofArray } from "@fable-org/fable-library-ts/List.ts";
|
|
2
|
+
import { value as value_2 } from "@fable-org/fable-library-ts/Option.ts";
|
|
3
|
+
import { join, substring } from "@fable-org/fable-library-ts/String.ts";
|
|
4
|
+
import { FSharpChoice$2_Choice2Of2, FSharpChoice$2_Choice1Of2 } from "@fable-org/fable-library-ts/Choice.ts";
|
|
5
|
+
import { class_type } from "@fable-org/fable-library-ts/Reflection.ts";
|
|
6
|
+
import { BasePath } from "./Endpoints.js";
|
|
7
|
+
import { escapeDataString } from "@fable-org/fable-library-ts/Util.ts";
|
|
8
|
+
import { toString } from "@fable-org/fable-library-ts/Types.ts";
|
|
9
|
+
const suffixMappings = ofArray([[".dev.localhost:4211", ".dev.localhost:5210"], [".test.localhost:4210", ".test.localhost:5211"], [".test.localhost:4211", ".test.localhost:5211"], [".localhost:4210", ".localhost:5210"]]);
|
|
10
|
+
export function getBackendOrigin(frontendOrigin) {
|
|
11
|
+
const mapping = tryFind((tupledArg) => frontendOrigin.endsWith(tupledArg[0]), suffixMappings);
|
|
12
|
+
if (mapping == null) {
|
|
13
|
+
return frontendOrigin;
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
const frontendSuffix_1 = value_2(mapping)[0];
|
|
17
|
+
const backendSuffix = value_2(mapping)[1];
|
|
18
|
+
return substring(frontendOrigin, 0, frontendOrigin.length - frontendSuffix_1.length) + backendSuffix;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export class UrlPart {
|
|
22
|
+
value;
|
|
23
|
+
constructor(value) {
|
|
24
|
+
this.value = value;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export function UrlPart_$reflection() {
|
|
28
|
+
return class_type("Fossa.Bridge.Services.UrlHelpers.UrlPart", undefined, UrlPart);
|
|
29
|
+
}
|
|
30
|
+
export function UrlPart_$ctor_Z19415666(value) {
|
|
31
|
+
return new UrlPart(value);
|
|
32
|
+
}
|
|
33
|
+
export function UrlPart__get_Value(_) {
|
|
34
|
+
return _.value;
|
|
35
|
+
}
|
|
36
|
+
export function UrlPart_op_Implicit_Z721C83C5(s) {
|
|
37
|
+
return UrlPart_$ctor_Z19415666(FSharpChoice$2_Choice1Of2(s));
|
|
38
|
+
}
|
|
39
|
+
export function UrlPart_op_Implicit_Z6CAC3EAA(f) {
|
|
40
|
+
return UrlPart_$ctor_Z19415666(FSharpChoice$2_Choice2Of2(f));
|
|
41
|
+
}
|
|
42
|
+
export function UrlPart_op_Implicit_Z1FBCCD16(b) {
|
|
43
|
+
return UrlPart_$ctor_Z19415666(FSharpChoice$2_Choice1Of2(b ? "true" : "false"));
|
|
44
|
+
}
|
|
45
|
+
export function UrlPart_op_Implicit_Z524259A4(i) {
|
|
46
|
+
return UrlPart_$ctor_Z19415666(FSharpChoice$2_Choice2Of2(i));
|
|
47
|
+
}
|
|
48
|
+
export function UrlPart_op_Implicit_Z524259C1(i) {
|
|
49
|
+
return UrlPart_$ctor_Z19415666(FSharpChoice$2_Choice2Of2(i));
|
|
50
|
+
}
|
|
51
|
+
export function UrlPart_op_Implicit_5E38073B(f) {
|
|
52
|
+
return UrlPart_$ctor_Z19415666(FSharpChoice$2_Choice2Of2(f));
|
|
53
|
+
}
|
|
54
|
+
export function UrlPart_op_Implicit_32C73145(d) {
|
|
55
|
+
return UrlPart_$ctor_Z19415666(FSharpChoice$2_Choice2Of2(d));
|
|
56
|
+
}
|
|
57
|
+
export function UrlPart_op_Implicit_244AC511(g) {
|
|
58
|
+
return UrlPart_$ctor_Z19415666(FSharpChoice$2_Choice2Of2(g));
|
|
59
|
+
}
|
|
60
|
+
export function UrlPart_op_Implicit_7F9DDECF(dt) {
|
|
61
|
+
return UrlPart_$ctor_Z19415666(FSharpChoice$2_Choice2Of2(dt));
|
|
62
|
+
}
|
|
63
|
+
export function UrlPart_op_Implicit_Z53C0511E(dto) {
|
|
64
|
+
return UrlPart_$ctor_Z19415666(FSharpChoice$2_Choice2Of2(dto));
|
|
65
|
+
}
|
|
66
|
+
export function composeRelativeUrl(relativePathSections, queryParameters) {
|
|
67
|
+
return join("/", cons(BasePath, map(escapeDataString, map((section) => {
|
|
68
|
+
const matchValue = UrlPart__get_Value(section);
|
|
69
|
+
if (matchValue.tag === /* Choice2Of2 */ 1) {
|
|
70
|
+
return toString(matchValue.fields[0]);
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
return matchValue.fields[0];
|
|
74
|
+
}
|
|
75
|
+
}, relativePathSections)))) + (isEmpty(queryParameters) ? "" : ("?" + join("&", map((tupledArg_1) => ((escapeDataString(tupledArg_1[0]) + "=") + escapeDataString(tupledArg_1[1])), map((tupledArg) => {
|
|
76
|
+
const key = tupledArg[0];
|
|
77
|
+
const matchValue_1 = UrlPart__get_Value(tupledArg[1]);
|
|
78
|
+
if (matchValue_1.tag === /* Choice2Of2 */ 1) {
|
|
79
|
+
return [key, toString(matchValue_1.fields[0])];
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
return [key, matchValue_1.fields[0]];
|
|
83
|
+
}
|
|
84
|
+
}, queryParameters)))));
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=UrlHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UrlHelpers.js","sourceRoot":"","sources":["UrlHelpers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAc,OAAO,EAAE,MAAM,qCAAqC,CAAC;AACvG,OAAO,EAAE,KAAK,IAAI,OAAO,EAAU,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,yBAAyB,EAAE,yBAAyB,EAAyB,MAAM,uCAAuC,CAAC;AACpI,OAAO,EAAE,UAAU,EAAY,MAAM,2CAA2C,CAAC;AAIjF,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAEhE,MAAM,cAAc,GAAiC,OAAO,CAAC,CAAC,CAAC,qBAAqB,EAAE,qBAAqB,CAAqB,EAAE,CAAC,sBAAsB,EAAE,sBAAsB,CAAqB,EAAE,CAAC,sBAAsB,EAAE,sBAAsB,CAAqB,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,CAAqB,CAAC,CAAC,CAAC;AAE3U,MAAM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