@worknice/js-sdk 0.0.6 → 0.0.8-rc.1
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 +7 -5
- package/dist/_types-kBsjg67t.d.ts +0 -697
- package/dist/api/ApiError.d.ts +0 -13
- package/dist/api/ApiError.js +0 -29
- package/dist/api/ApiError.js.map +0 -1
- package/dist/api/WorkniceIntegrationLogger.d.ts +0 -123
- package/dist/api/WorkniceIntegrationLogger.js +0 -203
- package/dist/api/WorkniceIntegrationLogger.js.map +0 -1
- package/dist/api/_generated.d.ts +0 -5490
- package/dist/api/_generated.js +0 -388
- package/dist/api/_generated.js.map +0 -1
- package/dist/api/_types.d.ts +0 -2
- package/dist/api/_types.js +0 -2
- package/dist/api/_types.js.map +0 -1
- package/dist/api/assertNotNull.d.ts +0 -5
- package/dist/api/assertNotNull.js +0 -14
- package/dist/api/assertNotNull.js.map +0 -1
- package/dist/api/createApiOperation.d.ts +0 -11
- package/dist/api/createApiOperation.js +0 -6
- package/dist/api/createApiOperation.js.map +0 -1
- package/dist/api/createWorkniceClient.d.ts +0 -2
- package/dist/api/createWorkniceClient.js +0 -123
- package/dist/api/createWorkniceClient.js.map +0 -1
- package/dist/api/operations/activateIntegration.d.ts +0 -22
- package/dist/api/operations/activateIntegration.js +0 -29
- package/dist/api/operations/activateIntegration.js.map +0 -1
- package/dist/api/operations/authorizeIntegration.d.ts +0 -20
- package/dist/api/operations/authorizeIntegration.js +0 -23
- package/dist/api/operations/authorizeIntegration.js.map +0 -1
- package/dist/api/operations/completeSync.d.ts +0 -20
- package/dist/api/operations/completeSync.js +0 -23
- package/dist/api/operations/completeSync.js.map +0 -1
- package/dist/api/operations/createApiToken.d.ts +0 -14
- package/dist/api/operations/createApiToken.js +0 -31
- package/dist/api/operations/createApiToken.js.map +0 -1
- package/dist/api/operations/createDataImport.d.ts +0 -12
- package/dist/api/operations/createDataImport.js +0 -25
- package/dist/api/operations/createDataImport.js.map +0 -1
- package/dist/api/operations/createPersonConnection.d.ts +0 -139
- package/dist/api/operations/createPersonConnection.js +0 -66
- package/dist/api/operations/createPersonConnection.js.map +0 -1
- package/dist/api/operations/createPersonDataImportLine.d.ts +0 -26
- package/dist/api/operations/createPersonDataImportLine.js +0 -57
- package/dist/api/operations/createPersonDataImportLine.js.map +0 -1
- package/dist/api/operations/deleteApiToken.d.ts +0 -10
- package/dist/api/operations/deleteApiToken.js +0 -21
- package/dist/api/operations/deleteApiToken.js.map +0 -1
- package/dist/api/operations/deletePersonConnection.d.ts +0 -10
- package/dist/api/operations/deletePersonConnection.js +0 -21
- package/dist/api/operations/deletePersonConnection.js.map +0 -1
- package/dist/api/operations/getApiTokens.d.ts +0 -14
- package/dist/api/operations/getApiTokens.js +0 -39
- package/dist/api/operations/getApiTokens.js.map +0 -1
- package/dist/api/operations/getIntegration.d.ts +0 -65
- package/dist/api/operations/getIntegration.js +0 -32
- package/dist/api/operations/getIntegration.js.map +0 -1
- package/dist/api/operations/getMyApps.d.ts +0 -37
- package/dist/api/operations/getMyApps.js +0 -62
- package/dist/api/operations/getMyApps.js.map +0 -1
- package/dist/api/operations/getPeople.d.ts +0 -65
- package/dist/api/operations/getPeople.js +0 -79
- package/dist/api/operations/getPeople.js.map +0 -1
- package/dist/api/operations/getPersonConnections.d.ts +0 -114
- package/dist/api/operations/getPersonConnections.js +0 -44
- package/dist/api/operations/getPersonConnections.js.map +0 -1
- package/dist/api/operations/initializeIntegration.d.ts +0 -20
- package/dist/api/operations/initializeIntegration.js +0 -23
- package/dist/api/operations/initializeIntegration.js.map +0 -1
- package/dist/api/operations/updatePersonConnection.d.ts +0 -139
- package/dist/api/operations/updatePersonConnection.js +0 -66
- package/dist/api/operations/updatePersonConnection.js.map +0 -1
- package/dist/employee-records/EQUALITY_CHECKS.d.ts +0 -10
- package/dist/employee-records/EQUALITY_CHECKS.js +0 -111
- package/dist/employee-records/EQUALITY_CHECKS.js.map +0 -1
- package/dist/employee-records/_types.d.ts +0 -192
- package/dist/employee-records/_types.js +0 -1
- package/dist/employee-records/_types.js.map +0 -1
- package/dist/employee-records/comparePersonDataTransferLines.d.ts +0 -6
- package/dist/employee-records/comparePersonDataTransferLines.js +0 -383
- package/dist/employee-records/comparePersonDataTransferLines.js.map +0 -1
- package/dist/employee-records/index.d.ts +0 -20
- package/dist/employee-records/index.js +0 -33
- package/dist/employee-records/index.js.map +0 -1
- package/dist/employee-records/mergePersonDataTransferLines.d.ts +0 -6
- package/dist/employee-records/mergePersonDataTransferLines.js +0 -22
- package/dist/employee-records/mergePersonDataTransferLines.js.map +0 -1
- package/dist/employee-records/validatePersonDataTransferLine.d.ts +0 -6
- package/dist/employee-records/validatePersonDataTransferLine.js +0 -31
- package/dist/employee-records/validatePersonDataTransferLine.js.map +0 -1
- package/dist/employee-records/validatePersonDataTransferLineBankAccounts.d.ts +0 -6
- package/dist/employee-records/validatePersonDataTransferLineBankAccounts.js +0 -241
- package/dist/employee-records/validatePersonDataTransferLineBankAccounts.js.map +0 -1
- package/dist/employee-records/validatePersonDataTransferLineDateOfBirth.d.ts +0 -6
- package/dist/employee-records/validatePersonDataTransferLineDateOfBirth.js +0 -17
- package/dist/employee-records/validatePersonDataTransferLineDateOfBirth.js.map +0 -1
- package/dist/employee-records/validatePersonDataTransferLineEmergencyContacts.d.ts +0 -6
- package/dist/employee-records/validatePersonDataTransferLineEmergencyContacts.js +0 -6
- package/dist/employee-records/validatePersonDataTransferLineEmergencyContacts.js.map +0 -1
- package/dist/employee-records/validatePersonDataTransferLineFullName.d.ts +0 -6
- package/dist/employee-records/validatePersonDataTransferLineFullName.js +0 -20
- package/dist/employee-records/validatePersonDataTransferLineFullName.js.map +0 -1
- package/dist/employee-records/validatePersonDataTransferLineGender.d.ts +0 -6
- package/dist/employee-records/validatePersonDataTransferLineGender.js +0 -13
- package/dist/employee-records/validatePersonDataTransferLineGender.js.map +0 -1
- package/dist/employee-records/validatePersonDataTransferLinePersonalEmail.d.ts +0 -6
- package/dist/employee-records/validatePersonDataTransferLinePersonalEmail.js +0 -15
- package/dist/employee-records/validatePersonDataTransferLinePersonalEmail.js.map +0 -1
- package/dist/employee-records/validatePersonDataTransferLinePersonalPhone.d.ts +0 -6
- package/dist/employee-records/validatePersonDataTransferLinePersonalPhone.js +0 -15
- package/dist/employee-records/validatePersonDataTransferLinePersonalPhone.js.map +0 -1
- package/dist/employee-records/validatePersonDataTransferLinePostalAddress.d.ts +0 -6
- package/dist/employee-records/validatePersonDataTransferLinePostalAddress.js +0 -39
- package/dist/employee-records/validatePersonDataTransferLinePostalAddress.js.map +0 -1
- package/dist/employee-records/validatePersonDataTransferLineResidentialAddress.d.ts +0 -6
- package/dist/employee-records/validatePersonDataTransferLineResidentialAddress.js +0 -39
- package/dist/employee-records/validatePersonDataTransferLineResidentialAddress.js.map +0 -1
- package/dist/employee-records/validatePersonDataTransferLineSuperFunds.d.ts +0 -6
- package/dist/employee-records/validatePersonDataTransferLineSuperFunds.js +0 -46
- package/dist/employee-records/validatePersonDataTransferLineSuperFunds.js.map +0 -1
- package/dist/employee-records/validatePersonDataTransferLineTaxDetails.d.ts +0 -6
- package/dist/employee-records/validatePersonDataTransferLineTaxDetails.js +0 -46
- package/dist/employee-records/validatePersonDataTransferLineTaxDetails.js.map +0 -1
- package/dist/employee-records/validatePersonDataTransferLineTenure.d.ts +0 -6
- package/dist/employee-records/validatePersonDataTransferLineTenure.js +0 -20
- package/dist/employee-records/validatePersonDataTransferLineTenure.js.map +0 -1
- package/dist/helpers/_types.d.ts +0 -22
- package/dist/helpers/_types.js +0 -1
- package/dist/helpers/_types.js.map +0 -1
- package/dist/helpers/handleApproveLeaveRequestWebhook.d.ts +0 -15
- package/dist/helpers/handleApproveLeaveRequestWebhook.js +0 -21
- package/dist/helpers/handleApproveLeaveRequestWebhook.js.map +0 -1
- package/dist/helpers/handleCancelLeaveRequestWebhook.d.ts +0 -15
- package/dist/helpers/handleCancelLeaveRequestWebhook.js +0 -21
- package/dist/helpers/handleCancelLeaveRequestWebhook.js.map +0 -1
- package/dist/helpers/handleCreateIntegrationWebhook.d.ts +0 -14
- package/dist/helpers/handleCreateIntegrationWebhook.js +0 -42
- package/dist/helpers/handleCreateIntegrationWebhook.js.map +0 -1
- package/dist/helpers/handleCreateLeaveRequestWebhook.d.ts +0 -15
- package/dist/helpers/handleCreateLeaveRequestWebhook.js +0 -21
- package/dist/helpers/handleCreateLeaveRequestWebhook.js.map +0 -1
- package/dist/helpers/handleDenyLeaveRequestWebhook.d.ts +0 -15
- package/dist/helpers/handleDenyLeaveRequestWebhook.js +0 -21
- package/dist/helpers/handleDenyLeaveRequestWebhook.js.map +0 -1
- package/dist/helpers/handleGetAuthorizationUrlWebhook.d.ts +0 -12
- package/dist/helpers/handleGetAuthorizationUrlWebhook.js +0 -27
- package/dist/helpers/handleGetAuthorizationUrlWebhook.js.map +0 -1
- package/dist/helpers/handleGetLeaveBalancesWebhook.d.ts +0 -13
- package/dist/helpers/handleGetLeaveBalancesWebhook.js +0 -27
- package/dist/helpers/handleGetLeaveBalancesWebhook.js.map +0 -1
- package/dist/helpers/handleGetLeaveCategoriesWebhook.d.ts +0 -15
- package/dist/helpers/handleGetLeaveCategoriesWebhook.js +0 -27
- package/dist/helpers/handleGetLeaveCategoriesWebhook.js.map +0 -1
- package/dist/helpers/handleGetLeaveRequestHoursWebhook.d.ts +0 -13
- package/dist/helpers/handleGetLeaveRequestHoursWebhook.js +0 -27
- package/dist/helpers/handleGetLeaveRequestHoursWebhook.js.map +0 -1
- package/dist/helpers/handleProcessLeaveRequestWebhook.d.ts +0 -15
- package/dist/helpers/handleProcessLeaveRequestWebhook.js +0 -21
- package/dist/helpers/handleProcessLeaveRequestWebhook.js.map +0 -1
- package/dist/helpers/handleRequest.d.ts +0 -12
- package/dist/helpers/handleRequest.js +0 -58
- package/dist/helpers/handleRequest.js.map +0 -1
- package/dist/helpers/handleRequestWithWorknice.d.ts +0 -23
- package/dist/helpers/handleRequestWithWorknice.js +0 -44
- package/dist/helpers/handleRequestWithWorknice.js.map +0 -1
- package/dist/helpers/handleTriggerIntegrationSyncWebhook.d.ts +0 -77
- package/dist/helpers/handleTriggerIntegrationSyncWebhook.js +0 -687
- package/dist/helpers/handleTriggerIntegrationSyncWebhook.js.map +0 -1
- package/dist/helpers/index.d.ts +0 -19
- package/dist/helpers/index.js +0 -29
- package/dist/helpers/index.js.map +0 -1
- package/dist/index.d.ts +0 -20
- package/dist/index.js +0 -10
- package/dist/index.js.map +0 -1
- package/dist/utils/disambiguatePersonConnections.d.ts +0 -25
- package/dist/utils/disambiguatePersonConnections.js +0 -18
- package/dist/utils/disambiguatePersonConnections.js.map +0 -1
- package/dist/utils/errorToString.d.ts +0 -22
- package/dist/utils/errorToString.js +0 -32
- package/dist/utils/errorToString.js.map +0 -1
- package/dist/utils/isNotNullable.d.ts +0 -10
- package/dist/utils/isNotNullable.js +0 -6
- package/dist/utils/isNotNullable.js.map +0 -1
- package/dist/utils/isSamePlainDate.d.ts +0 -3
- package/dist/utils/isSamePlainDate.js +0 -5
- package/dist/utils/isSamePlainDate.js.map +0 -1
- package/dist/utils/isValidPlainDate.d.ts +0 -1
- package/dist/utils/isValidPlainDate.js +0 -5
- package/dist/utils/isValidPlainDate.js.map +0 -1
- package/dist/utils/parsePlainDate.d.ts +0 -1
- package/dist/utils/parsePlainDate.js +0 -5
- package/dist/utils/parsePlainDate.js.map +0 -1
- package/dist/webhooks.d.ts +0 -112
- package/dist/webhooks.js +0 -1
- package/dist/webhooks.js.map +0 -1
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import gql from "dedent";
|
|
2
|
-
import disambiguatePersonConnections from "../../utils/disambiguatePersonConnections.js";
|
|
3
|
-
import {
|
|
4
|
-
ConnectionStatus
|
|
5
|
-
} from "../_types.js";
|
|
6
|
-
import createApiOperation from "../createApiOperation.js";
|
|
7
|
-
const createPersonConnection = createApiOperation(
|
|
8
|
-
({ fetchFromApi }) => async (variables, fetchOptions) => {
|
|
9
|
-
const result = await fetchFromApi(
|
|
10
|
-
gql`
|
|
11
|
-
mutation CreatePersonConnection(
|
|
12
|
-
$integrationId: ID!
|
|
13
|
-
$remote: ConnectionRemoteInput
|
|
14
|
-
$personId: ID
|
|
15
|
-
$status: ConnectionStatus!
|
|
16
|
-
) {
|
|
17
|
-
createPersonConnection(
|
|
18
|
-
integrationId: $integrationId
|
|
19
|
-
remote: $remote
|
|
20
|
-
personId: $personId
|
|
21
|
-
status: $status
|
|
22
|
-
) {
|
|
23
|
-
__typename
|
|
24
|
-
createdAt
|
|
25
|
-
id
|
|
26
|
-
person {
|
|
27
|
-
displayName
|
|
28
|
-
id
|
|
29
|
-
updatedAt
|
|
30
|
-
}
|
|
31
|
-
remote {
|
|
32
|
-
name
|
|
33
|
-
id
|
|
34
|
-
url
|
|
35
|
-
}
|
|
36
|
-
status
|
|
37
|
-
updatedAt
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
`,
|
|
41
|
-
variables.status === ConnectionStatus.Connected || variables.status === ConnectionStatus.Merged ? {
|
|
42
|
-
integrationId: variables.integrationId,
|
|
43
|
-
personId: variables.personId,
|
|
44
|
-
remote: variables.remote,
|
|
45
|
-
status: variables.status
|
|
46
|
-
} : variables.status === ConnectionStatus.LocalOnly ? {
|
|
47
|
-
integrationId: variables.integrationId,
|
|
48
|
-
personId: variables.personId,
|
|
49
|
-
remote: null,
|
|
50
|
-
status: variables.status
|
|
51
|
-
} : {
|
|
52
|
-
integrationId: variables.integrationId,
|
|
53
|
-
personId: null,
|
|
54
|
-
remote: variables.remote,
|
|
55
|
-
status: variables.status
|
|
56
|
-
},
|
|
57
|
-
fetchOptions
|
|
58
|
-
);
|
|
59
|
-
return disambiguatePersonConnections(result.data.createPersonConnection);
|
|
60
|
-
}
|
|
61
|
-
);
|
|
62
|
-
var createPersonConnection_default = createPersonConnection;
|
|
63
|
-
export {
|
|
64
|
-
createPersonConnection_default as default
|
|
65
|
-
};
|
|
66
|
-
//# sourceMappingURL=createPersonConnection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/api/operations/createPersonConnection.ts"],"sourcesContent":["import gql from \"dedent\";\nimport disambiguatePersonConnections from \"../../utils/disambiguatePersonConnections.js\";\nimport {\n ConnectionStatus,\n type CreatePersonConnectionMutation,\n type CreatePersonConnectionMutationVariables,\n} from \"../_types.js\";\nimport createApiOperation from \"../createApiOperation.js\";\n\nconst createPersonConnection = createApiOperation(\n ({ fetchFromApi }) =>\n async (\n variables:\n | {\n integrationId: string;\n personId: string;\n remote: {\n id: string;\n name: string;\n };\n status: ConnectionStatus.Connected;\n }\n | {\n integrationId: string;\n personId: string;\n status: ConnectionStatus.LocalOnly;\n }\n | {\n integrationId: string;\n personId: string;\n remote: {\n id: string;\n name: string;\n };\n status: ConnectionStatus.Merged;\n }\n | {\n integrationId: string;\n remote: {\n id: string;\n name: string;\n };\n status: ConnectionStatus.RemoteOnly;\n },\n fetchOptions?,\n ) => {\n const result = await fetchFromApi<\n CreatePersonConnectionMutation,\n CreatePersonConnectionMutationVariables\n >(\n gql`\n mutation CreatePersonConnection(\n $integrationId: ID!\n $remote: ConnectionRemoteInput\n $personId: ID\n $status: ConnectionStatus!\n ) {\n createPersonConnection(\n integrationId: $integrationId\n remote: $remote\n personId: $personId\n status: $status\n ) {\n __typename\n createdAt\n id\n person {\n displayName\n id\n updatedAt\n }\n remote {\n name\n id\n url\n }\n status\n updatedAt\n }\n }\n `,\n variables.status === ConnectionStatus.Connected ||\n variables.status === ConnectionStatus.Merged\n ? {\n integrationId: variables.integrationId,\n personId: variables.personId,\n remote: variables.remote,\n status: variables.status,\n }\n : variables.status === ConnectionStatus.LocalOnly\n ? {\n integrationId: variables.integrationId,\n personId: variables.personId,\n remote: null,\n status: variables.status,\n }\n : {\n integrationId: variables.integrationId,\n personId: null,\n remote: variables.remote,\n status: variables.status,\n },\n fetchOptions,\n );\n\n return disambiguatePersonConnections(result.data.createPersonConnection);\n },\n);\n\nexport default createPersonConnection;\n"],"mappings":"AAAA,OAAO,SAAS;AAChB,OAAO,mCAAmC;AAC1C;AAAA,EACE;AAAA,OAGK;AACP,OAAO,wBAAwB;AAE/B,MAAM,yBAAyB;AAAA,EAC7B,CAAC,EAAE,aAAa,MACd,OACE,WAgCA,iBACG;AACH,UAAM,SAAS,MAAM;AAAA,MAInB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MA+BA,UAAU,WAAW,iBAAiB,aACpC,UAAU,WAAW,iBAAiB,SACpC;AAAA,QACE,eAAe,UAAU;AAAA,QACzB,UAAU,UAAU;AAAA,QACpB,QAAQ,UAAU;AAAA,QAClB,QAAQ,UAAU;AAAA,MACpB,IACA,UAAU,WAAW,iBAAiB,YACpC;AAAA,QACE,eAAe,UAAU;AAAA,QACzB,UAAU,UAAU;AAAA,QACpB,QAAQ;AAAA,QACR,QAAQ,UAAU;AAAA,MACpB,IACA;AAAA,QACE,eAAe,UAAU;AAAA,QACzB,UAAU;AAAA,QACV,QAAQ,UAAU;AAAA,QAClB,QAAQ,UAAU;AAAA,MACpB;AAAA,MACN;AAAA,IACF;AAEA,WAAO,8BAA8B,OAAO,KAAK,sBAAsB;AAAA,EACzE;AACJ;AAEA,IAAO,iCAAQ;","names":[]}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Exact, InputMaybe, PersonBankAccountsChangeInput, PersonDataTransferConfigInput, Scalars, PersonDateOfBirthChangeInput, PersonEmergencyContactsChangeInput, PersonFullNameChangeInput, PersonGenderChangeInput, PersonPersonalEmailChangeInput, PersonPersonalPhoneChangeInput, PersonPostalAddressChangeInput, PersonResidentialAddressChangeInput, PersonSuperFundsChangeInput, PersonTaxDetailsChangeInput, PersonTenureChangeInput } from '../_generated.js';
|
|
2
|
-
import { F as FetchOptions, S as SuccessfulQueryResult } from '../../_types-kBsjg67t.js';
|
|
3
|
-
|
|
4
|
-
declare const createPersonDataImportLine: (context: {
|
|
5
|
-
fetchFromApi: <Data extends object, Variables extends object>(query: string, variables?: Variables, fetchOptions?: FetchOptions) => Promise<SuccessfulQueryResult<Data>>;
|
|
6
|
-
}) => (variables: Exact<{
|
|
7
|
-
bankAccounts?: InputMaybe<PersonBankAccountsChangeInput>;
|
|
8
|
-
config: PersonDataTransferConfigInput;
|
|
9
|
-
dataImportId: Scalars["ID"]["input"];
|
|
10
|
-
dateOfBirth?: InputMaybe<PersonDateOfBirthChangeInput>;
|
|
11
|
-
emergencyContacts?: InputMaybe<PersonEmergencyContactsChangeInput>;
|
|
12
|
-
fullName?: InputMaybe<PersonFullNameChangeInput>;
|
|
13
|
-
gender?: InputMaybe<PersonGenderChangeInput>;
|
|
14
|
-
personalEmail?: InputMaybe<PersonPersonalEmailChangeInput>;
|
|
15
|
-
personalPhone?: InputMaybe<PersonPersonalPhoneChangeInput>;
|
|
16
|
-
personId: Scalars["ID"]["input"];
|
|
17
|
-
postalAddress?: InputMaybe<PersonPostalAddressChangeInput>;
|
|
18
|
-
residentialAddress?: InputMaybe<PersonResidentialAddressChangeInput>;
|
|
19
|
-
superFunds?: InputMaybe<PersonSuperFundsChangeInput>;
|
|
20
|
-
taxDetails?: InputMaybe<PersonTaxDetailsChangeInput>;
|
|
21
|
-
tenure?: InputMaybe<PersonTenureChangeInput>;
|
|
22
|
-
}>, fetchOptions?: FetchOptions) => Promise<{
|
|
23
|
-
id: string;
|
|
24
|
-
}>;
|
|
25
|
-
|
|
26
|
-
export { createPersonDataImportLine as default };
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import gql from "dedent";
|
|
2
|
-
import {
|
|
3
|
-
} from "../_types.js";
|
|
4
|
-
import createApiOperation from "../createApiOperation.js";
|
|
5
|
-
const createPersonDataImportLine = createApiOperation(
|
|
6
|
-
({ fetchFromApi }) => async (variables, fetchOptions) => {
|
|
7
|
-
const result = await fetchFromApi(
|
|
8
|
-
gql`
|
|
9
|
-
mutation CreatePersonDataImportLine(
|
|
10
|
-
$bankAccounts: PersonBankAccountsChangeInput
|
|
11
|
-
$config: PersonDataTransferConfigInput!
|
|
12
|
-
$dataImportId: ID!
|
|
13
|
-
$dateOfBirth: PersonDateOfBirthChangeInput
|
|
14
|
-
$emergencyContacts: PersonEmergencyContactsChangeInput
|
|
15
|
-
$fullName: PersonFullNameChangeInput
|
|
16
|
-
$gender: PersonGenderChangeInput
|
|
17
|
-
$personalEmail: PersonPersonalEmailChangeInput
|
|
18
|
-
$personalPhone: PersonPersonalPhoneChangeInput
|
|
19
|
-
$personId: ID!
|
|
20
|
-
$postalAddress: PersonPostalAddressChangeInput
|
|
21
|
-
$residentialAddress: PersonResidentialAddressChangeInput
|
|
22
|
-
$superFunds: PersonSuperFundsChangeInput
|
|
23
|
-
$taxDetails: PersonTaxDetailsChangeInput
|
|
24
|
-
$tenure: PersonTenureChangeInput
|
|
25
|
-
) {
|
|
26
|
-
createPersonDataImportLine(
|
|
27
|
-
bankAccounts: $bankAccounts
|
|
28
|
-
config: $config
|
|
29
|
-
dataImportId: $dataImportId
|
|
30
|
-
dateOfBirth: $dateOfBirth
|
|
31
|
-
emergencyContacts: $emergencyContacts
|
|
32
|
-
fullName: $fullName
|
|
33
|
-
gender: $gender
|
|
34
|
-
personalEmail: $personalEmail
|
|
35
|
-
personalPhone: $personalPhone
|
|
36
|
-
personId: $personId
|
|
37
|
-
postalAddress: $postalAddress
|
|
38
|
-
residentialAddress: $residentialAddress
|
|
39
|
-
superFunds: $superFunds
|
|
40
|
-
taxDetails: $taxDetails
|
|
41
|
-
tenure: $tenure
|
|
42
|
-
) {
|
|
43
|
-
id
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
`,
|
|
47
|
-
variables,
|
|
48
|
-
fetchOptions
|
|
49
|
-
);
|
|
50
|
-
return result.data.createPersonDataImportLine;
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
var createPersonDataImportLine_default = createPersonDataImportLine;
|
|
54
|
-
export {
|
|
55
|
-
createPersonDataImportLine_default as default
|
|
56
|
-
};
|
|
57
|
-
//# sourceMappingURL=createPersonDataImportLine.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/api/operations/createPersonDataImportLine.ts"],"sourcesContent":["import gql from \"dedent\";\nimport {\n type CreatePersonDataImportLineMutation,\n type CreatePersonDataImportLineMutationVariables,\n} from \"../_types.js\";\nimport createApiOperation from \"../createApiOperation.js\";\n\nconst createPersonDataImportLine = createApiOperation(\n ({ fetchFromApi }) =>\n async (variables: CreatePersonDataImportLineMutationVariables, fetchOptions?) => {\n const result = await fetchFromApi<\n CreatePersonDataImportLineMutation,\n CreatePersonDataImportLineMutationVariables\n >(\n gql`\n mutation CreatePersonDataImportLine(\n $bankAccounts: PersonBankAccountsChangeInput\n $config: PersonDataTransferConfigInput!\n $dataImportId: ID!\n $dateOfBirth: PersonDateOfBirthChangeInput\n $emergencyContacts: PersonEmergencyContactsChangeInput\n $fullName: PersonFullNameChangeInput\n $gender: PersonGenderChangeInput\n $personalEmail: PersonPersonalEmailChangeInput\n $personalPhone: PersonPersonalPhoneChangeInput\n $personId: ID!\n $postalAddress: PersonPostalAddressChangeInput\n $residentialAddress: PersonResidentialAddressChangeInput\n $superFunds: PersonSuperFundsChangeInput\n $taxDetails: PersonTaxDetailsChangeInput\n $tenure: PersonTenureChangeInput\n ) {\n createPersonDataImportLine(\n bankAccounts: $bankAccounts\n config: $config\n dataImportId: $dataImportId\n dateOfBirth: $dateOfBirth\n emergencyContacts: $emergencyContacts\n fullName: $fullName\n gender: $gender\n personalEmail: $personalEmail\n personalPhone: $personalPhone\n personId: $personId\n postalAddress: $postalAddress\n residentialAddress: $residentialAddress\n superFunds: $superFunds\n taxDetails: $taxDetails\n tenure: $tenure\n ) {\n id\n }\n }\n `,\n variables,\n fetchOptions,\n );\n\n return result.data.createPersonDataImportLine;\n },\n);\n\nexport default createPersonDataImportLine;\n"],"mappings":"AAAA,OAAO,SAAS;AAChB;AAAA,OAGO;AACP,OAAO,wBAAwB;AAE/B,MAAM,6BAA6B;AAAA,EACjC,CAAC,EAAE,aAAa,MACd,OAAO,WAAwD,iBAAkB;AAC/E,UAAM,SAAS,MAAM;AAAA,MAInB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAuCA;AAAA,MACA;AAAA,IACF;AAEA,WAAO,OAAO,KAAK;AAAA,EACrB;AACJ;AAEA,IAAO,qCAAQ;","names":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Exact, Scalars } from '../_generated.js';
|
|
2
|
-
import { F as FetchOptions, S as SuccessfulQueryResult } from '../../_types-kBsjg67t.js';
|
|
3
|
-
|
|
4
|
-
declare const deleteApiToken: (context: {
|
|
5
|
-
fetchFromApi: <Data extends object, Variables extends object>(query: string, variables?: Variables, fetchOptions?: FetchOptions) => Promise<SuccessfulQueryResult<Data>>;
|
|
6
|
-
}) => (variables: Exact<{
|
|
7
|
-
tokenId: Scalars["ID"]["input"];
|
|
8
|
-
}>, fetchOptions?: FetchOptions) => Promise<boolean>;
|
|
9
|
-
|
|
10
|
-
export { deleteApiToken as default };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import gql from "dedent";
|
|
2
|
-
import createApiOperation from "../createApiOperation.js";
|
|
3
|
-
const deleteApiToken = createApiOperation(
|
|
4
|
-
({ fetchFromApi }) => async (variables, fetchOptions) => {
|
|
5
|
-
const result = await fetchFromApi(
|
|
6
|
-
gql`
|
|
7
|
-
mutation DeleteApiToken($tokenId: ID!) {
|
|
8
|
-
deleteApiToken(tokenId: $tokenId)
|
|
9
|
-
}
|
|
10
|
-
`,
|
|
11
|
-
variables,
|
|
12
|
-
fetchOptions
|
|
13
|
-
);
|
|
14
|
-
return result.data.deleteApiToken;
|
|
15
|
-
}
|
|
16
|
-
);
|
|
17
|
-
var deleteApiToken_default = deleteApiToken;
|
|
18
|
-
export {
|
|
19
|
-
deleteApiToken_default as default
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=deleteApiToken.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/api/operations/deleteApiToken.ts"],"sourcesContent":["import gql from \"dedent\";\nimport type { DeleteApiTokenMutation, DeleteApiTokenMutationVariables } from \"../_types.js\";\nimport createApiOperation from \"../createApiOperation.js\";\n\nconst deleteApiToken = createApiOperation(\n ({ fetchFromApi }) =>\n async (variables: DeleteApiTokenMutationVariables, fetchOptions?) => {\n const result = await fetchFromApi<DeleteApiTokenMutation, DeleteApiTokenMutationVariables>(\n gql`\n mutation DeleteApiToken($tokenId: ID!) {\n deleteApiToken(tokenId: $tokenId)\n }\n `,\n variables,\n fetchOptions,\n );\n\n return result.data.deleteApiToken;\n },\n);\n\nexport default deleteApiToken;\n"],"mappings":"AAAA,OAAO,SAAS;AAEhB,OAAO,wBAAwB;AAE/B,MAAM,iBAAiB;AAAA,EACrB,CAAC,EAAE,aAAa,MACd,OAAO,WAA4C,iBAAkB;AACnE,UAAM,SAAS,MAAM;AAAA,MACnB;AAAA;AAAA;AAAA;AAAA;AAAA,MAKA;AAAA,MACA;AAAA,IACF;AAEA,WAAO,OAAO,KAAK;AAAA,EACrB;AACJ;AAEA,IAAO,yBAAQ;","names":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Exact, Scalars } from '../_generated.js';
|
|
2
|
-
import { F as FetchOptions, S as SuccessfulQueryResult } from '../../_types-kBsjg67t.js';
|
|
3
|
-
|
|
4
|
-
declare const deletePersonConnection: (context: {
|
|
5
|
-
fetchFromApi: <Data extends object, Variables extends object>(query: string, variables?: Variables, fetchOptions?: FetchOptions) => Promise<SuccessfulQueryResult<Data>>;
|
|
6
|
-
}) => (variables: Exact<{
|
|
7
|
-
personConnectionId: Scalars["ID"]["input"];
|
|
8
|
-
}>, fetchOptions?: FetchOptions) => Promise<boolean>;
|
|
9
|
-
|
|
10
|
-
export { deletePersonConnection as default };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import gql from "dedent";
|
|
2
|
-
import createApiOperation from "../createApiOperation.js";
|
|
3
|
-
const deletePersonConnection = createApiOperation(
|
|
4
|
-
({ fetchFromApi }) => async (variables, fetchOptions) => {
|
|
5
|
-
const result = await fetchFromApi(
|
|
6
|
-
gql`
|
|
7
|
-
mutation DeletePersonConnection($personConnectionId: ID!) {
|
|
8
|
-
deletePersonConnection(id: $personConnectionId)
|
|
9
|
-
}
|
|
10
|
-
`,
|
|
11
|
-
variables,
|
|
12
|
-
fetchOptions
|
|
13
|
-
);
|
|
14
|
-
return result.data.deletePersonConnection;
|
|
15
|
-
}
|
|
16
|
-
);
|
|
17
|
-
var deletePersonConnection_default = deletePersonConnection;
|
|
18
|
-
export {
|
|
19
|
-
deletePersonConnection_default as default
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=deletePersonConnection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/api/operations/deletePersonConnection.ts"],"sourcesContent":["import gql from \"dedent\";\nimport type {\n DeletePersonConnectionMutation,\n DeletePersonConnectionMutationVariables,\n} from \"../_types.js\";\nimport createApiOperation from \"../createApiOperation.js\";\n\nconst deletePersonConnection = createApiOperation(\n ({ fetchFromApi }) =>\n async (variables: DeletePersonConnectionMutationVariables, fetchOptions?) => {\n const result = await fetchFromApi<\n DeletePersonConnectionMutation,\n DeletePersonConnectionMutationVariables\n >(\n gql`\n mutation DeletePersonConnection($personConnectionId: ID!) {\n deletePersonConnection(id: $personConnectionId)\n }\n `,\n variables,\n fetchOptions,\n );\n\n return result.data.deletePersonConnection;\n },\n);\n\nexport default deletePersonConnection;\n"],"mappings":"AAAA,OAAO,SAAS;AAKhB,OAAO,wBAAwB;AAE/B,MAAM,yBAAyB;AAAA,EAC7B,CAAC,EAAE,aAAa,MACd,OAAO,WAAoD,iBAAkB;AAC3E,UAAM,SAAS,MAAM;AAAA,MAInB;AAAA;AAAA;AAAA;AAAA;AAAA,MAKA;AAAA,MACA;AAAA,IACF;AAEA,WAAO,OAAO,KAAK;AAAA,EACrB;AACJ;AAEA,IAAO,iCAAQ;","names":[]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Exact } from '../_generated.js';
|
|
2
|
-
import { F as FetchOptions, S as SuccessfulQueryResult } from '../../_types-kBsjg67t.js';
|
|
3
|
-
|
|
4
|
-
declare const getApiTokens: (context: {
|
|
5
|
-
fetchFromApi: <Data extends object, Variables extends object>(query: string, variables?: Variables, fetchOptions?: FetchOptions) => Promise<SuccessfulQueryResult<Data>>;
|
|
6
|
-
}) => (variables: Exact<{
|
|
7
|
-
[key: string]: never;
|
|
8
|
-
}>, fetchOptions?: FetchOptions) => Promise<{
|
|
9
|
-
createdAt: string;
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
}[]>;
|
|
13
|
-
|
|
14
|
-
export { getApiTokens as default };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import gql from "dedent";
|
|
2
|
-
import { AuthState } from "../_types.js";
|
|
3
|
-
import { ApiErrorCode } from "../ApiError.js";
|
|
4
|
-
import assertNotNull from "../assertNotNull.js";
|
|
5
|
-
import createApiOperation from "../createApiOperation.js";
|
|
6
|
-
const getApiTokens = createApiOperation(
|
|
7
|
-
({ fetchFromApi }) => async (variables, fetchOptions) => {
|
|
8
|
-
const result = await fetchFromApi(
|
|
9
|
-
gql`
|
|
10
|
-
query GetApiTokens {
|
|
11
|
-
session {
|
|
12
|
-
person {
|
|
13
|
-
apiTokens {
|
|
14
|
-
createdAt
|
|
15
|
-
id
|
|
16
|
-
name
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
authState
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
`,
|
|
23
|
-
variables,
|
|
24
|
-
fetchOptions
|
|
25
|
-
);
|
|
26
|
-
const person = result.data.session.person;
|
|
27
|
-
assertNotNull(
|
|
28
|
-
person,
|
|
29
|
-
"person",
|
|
30
|
-
result.data.session.authState === AuthState.Unauthenticated ? ApiErrorCode.SESSION_UNAUTHENTICATED : ApiErrorCode.SESSION_UNASSOCIATED
|
|
31
|
-
);
|
|
32
|
-
return person.apiTokens;
|
|
33
|
-
}
|
|
34
|
-
);
|
|
35
|
-
var getApiTokens_default = getApiTokens;
|
|
36
|
-
export {
|
|
37
|
-
getApiTokens_default as default
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=getApiTokens.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/api/operations/getApiTokens.ts"],"sourcesContent":["import gql from \"dedent\";\nimport { AuthState, type GetApiTokensQuery, type GetApiTokensQueryVariables } from \"../_types.js\";\nimport { ApiErrorCode } from \"../ApiError.js\";\nimport assertNotNull from \"../assertNotNull.js\";\nimport createApiOperation from \"../createApiOperation.js\";\n\nconst getApiTokens = createApiOperation(\n ({ fetchFromApi }) =>\n async (variables: GetApiTokensQueryVariables, fetchOptions?) => {\n const result = await fetchFromApi<GetApiTokensQuery, GetApiTokensQueryVariables>(\n gql`\n query GetApiTokens {\n session {\n person {\n apiTokens {\n createdAt\n id\n name\n }\n }\n authState\n }\n }\n `,\n variables,\n fetchOptions,\n );\n\n const person = result.data.session.person;\n\n assertNotNull(\n person,\n \"person\",\n result.data.session.authState === AuthState.Unauthenticated\n ? ApiErrorCode.SESSION_UNAUTHENTICATED\n : ApiErrorCode.SESSION_UNASSOCIATED,\n );\n\n return person.apiTokens;\n },\n);\n\nexport default getApiTokens;\n"],"mappings":"AAAA,OAAO,SAAS;AAChB,SAAS,iBAA0E;AACnF,SAAS,oBAAoB;AAC7B,OAAO,mBAAmB;AAC1B,OAAO,wBAAwB;AAE/B,MAAM,eAAe;AAAA,EACnB,CAAC,EAAE,aAAa,MACd,OAAO,WAAuC,iBAAkB;AAC9D,UAAM,SAAS,MAAM;AAAA,MACnB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAcA;AAAA,MACA;AAAA,IACF;AAEA,UAAM,SAAS,OAAO,KAAK,QAAQ;AAEnC;AAAA,MACE;AAAA,MACA;AAAA,MACA,OAAO,KAAK,QAAQ,cAAc,UAAU,kBACxC,aAAa,0BACb,aAAa;AAAA,IACnB;AAEA,WAAO,OAAO;AAAA,EAChB;AACJ;AAEA,IAAO,uBAAQ;","names":[]}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { Exact, Scalars, IntegrationStatus, AppCategory } from '../_generated.js';
|
|
2
|
-
import { F as FetchOptions, S as SuccessfulQueryResult } from '../../_types-kBsjg67t.js';
|
|
3
|
-
|
|
4
|
-
declare const getIntegration: (context: {
|
|
5
|
-
fetchFromApi: <Data extends object, Variables extends object>(query: string, variables?: Variables, fetchOptions?: FetchOptions) => Promise<SuccessfulQueryResult<Data>>;
|
|
6
|
-
}) => (variables: Exact<{
|
|
7
|
-
integrationId: Scalars["ID"]["input"];
|
|
8
|
-
}>, fetchOptions?: FetchOptions) => Promise<{
|
|
9
|
-
archived: boolean;
|
|
10
|
-
id: string;
|
|
11
|
-
status: IntegrationStatus;
|
|
12
|
-
app: {
|
|
13
|
-
category: AppCategory;
|
|
14
|
-
name: string;
|
|
15
|
-
};
|
|
16
|
-
org: {
|
|
17
|
-
id: string;
|
|
18
|
-
};
|
|
19
|
-
} | {
|
|
20
|
-
archived: boolean;
|
|
21
|
-
id: string;
|
|
22
|
-
status: IntegrationStatus;
|
|
23
|
-
app: {
|
|
24
|
-
category: AppCategory;
|
|
25
|
-
name: string;
|
|
26
|
-
};
|
|
27
|
-
org: {
|
|
28
|
-
id: string;
|
|
29
|
-
};
|
|
30
|
-
} | {
|
|
31
|
-
archived: boolean;
|
|
32
|
-
id: string;
|
|
33
|
-
status: IntegrationStatus;
|
|
34
|
-
app: {
|
|
35
|
-
category: AppCategory;
|
|
36
|
-
name: string;
|
|
37
|
-
};
|
|
38
|
-
org: {
|
|
39
|
-
id: string;
|
|
40
|
-
};
|
|
41
|
-
} | {
|
|
42
|
-
archived: boolean;
|
|
43
|
-
id: string;
|
|
44
|
-
status: IntegrationStatus;
|
|
45
|
-
app: {
|
|
46
|
-
category: AppCategory;
|
|
47
|
-
name: string;
|
|
48
|
-
};
|
|
49
|
-
org: {
|
|
50
|
-
id: string;
|
|
51
|
-
};
|
|
52
|
-
} | {
|
|
53
|
-
archived: boolean;
|
|
54
|
-
id: string;
|
|
55
|
-
status: IntegrationStatus;
|
|
56
|
-
app: {
|
|
57
|
-
category: AppCategory;
|
|
58
|
-
name: string;
|
|
59
|
-
};
|
|
60
|
-
org: {
|
|
61
|
-
id: string;
|
|
62
|
-
};
|
|
63
|
-
}>;
|
|
64
|
-
|
|
65
|
-
export { getIntegration as default };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import gql from "dedent";
|
|
2
|
-
import createApiOperation from "../createApiOperation.js";
|
|
3
|
-
const getIntegration = createApiOperation(
|
|
4
|
-
({ fetchFromApi }) => async (variables, fetchOptions) => {
|
|
5
|
-
const result = await fetchFromApi(
|
|
6
|
-
gql`
|
|
7
|
-
query GetIntegration($integrationId: ID!) {
|
|
8
|
-
integration(id: $integrationId) {
|
|
9
|
-
app {
|
|
10
|
-
category
|
|
11
|
-
name
|
|
12
|
-
}
|
|
13
|
-
archived
|
|
14
|
-
id
|
|
15
|
-
org {
|
|
16
|
-
id
|
|
17
|
-
}
|
|
18
|
-
status
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
`,
|
|
22
|
-
variables,
|
|
23
|
-
fetchOptions
|
|
24
|
-
);
|
|
25
|
-
return result.data.integration;
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
var getIntegration_default = getIntegration;
|
|
29
|
-
export {
|
|
30
|
-
getIntegration_default as default
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=getIntegration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/api/operations/getIntegration.ts"],"sourcesContent":["import gql from \"dedent\";\nimport type { GetIntegrationQuery, GetIntegrationQueryVariables } from \"../_types.js\";\nimport createApiOperation from \"../createApiOperation.js\";\n\nconst getIntegration = createApiOperation(\n ({ fetchFromApi }) =>\n async (variables: GetIntegrationQueryVariables, fetchOptions?) => {\n const result = await fetchFromApi<GetIntegrationQuery, GetIntegrationQueryVariables>(\n gql`\n query GetIntegration($integrationId: ID!) {\n integration(id: $integrationId) {\n app {\n category\n name\n }\n archived\n id\n org {\n id\n }\n status\n }\n }\n `,\n variables,\n fetchOptions,\n );\n return result.data.integration;\n },\n);\n\nexport default getIntegration;\n"],"mappings":"AAAA,OAAO,SAAS;AAEhB,OAAO,wBAAwB;AAE/B,MAAM,iBAAiB;AAAA,EACrB,CAAC,EAAE,aAAa,MACd,OAAO,WAAyC,iBAAkB;AAChE,UAAM,SAAS,MAAM;AAAA,MACnB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAgBA;AAAA,MACA;AAAA,IACF;AACA,WAAO,OAAO,KAAK;AAAA,EACrB;AACJ;AAEA,IAAO,yBAAQ;","names":[]}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Exact, AppCategory, AppStatus } from '../_generated.js';
|
|
2
|
-
import { F as FetchOptions, S as SuccessfulQueryResult } from '../../_types-kBsjg67t.js';
|
|
3
|
-
|
|
4
|
-
declare const getMyApps: (context: {
|
|
5
|
-
fetchFromApi: <Data extends object, Variables extends object>(query: string, variables?: Variables, fetchOptions?: FetchOptions) => Promise<SuccessfulQueryResult<Data>>;
|
|
6
|
-
}) => (variables: Exact<{
|
|
7
|
-
[key: string]: never;
|
|
8
|
-
}>, fetchOptions?: FetchOptions) => Promise<{
|
|
9
|
-
category: AppCategory;
|
|
10
|
-
description?: string | null;
|
|
11
|
-
id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
status: AppStatus;
|
|
14
|
-
logo?: {
|
|
15
|
-
url: string;
|
|
16
|
-
} | null;
|
|
17
|
-
config: {
|
|
18
|
-
webhooks: {
|
|
19
|
-
approveLeaveRequest?: string | null;
|
|
20
|
-
cancelLeaveRequest?: string | null;
|
|
21
|
-
createIntegration?: string | null;
|
|
22
|
-
createLeaveRequest?: string | null;
|
|
23
|
-
denyLeaveRequest?: string | null;
|
|
24
|
-
getAuthorizationUrl?: string | null;
|
|
25
|
-
getConfigurationUrl?: string | null;
|
|
26
|
-
getLeaveBalances?: string | null;
|
|
27
|
-
getLeaveCategories?: string | null;
|
|
28
|
-
getLeaveRequestHours?: string | null;
|
|
29
|
-
getReconfigurationUrl?: string | null;
|
|
30
|
-
personConnected?: string | null;
|
|
31
|
-
processLeaveRequest?: string | null;
|
|
32
|
-
triggerIntegrationSync?: string | null;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
}[]>;
|
|
36
|
-
|
|
37
|
-
export { getMyApps as default };
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import gql from "dedent";
|
|
2
|
-
import { AuthState } from "../_types.js";
|
|
3
|
-
import { ApiErrorCode } from "../ApiError.js";
|
|
4
|
-
import assertNotNull from "../assertNotNull.js";
|
|
5
|
-
import createApiOperation from "../createApiOperation.js";
|
|
6
|
-
const getMyApps = createApiOperation(
|
|
7
|
-
({ fetchFromApi }) => async (variables, fetchOptions) => {
|
|
8
|
-
const result = await fetchFromApi(
|
|
9
|
-
gql`
|
|
10
|
-
query GetMyApps {
|
|
11
|
-
session {
|
|
12
|
-
account {
|
|
13
|
-
apps(includeDraft: true) {
|
|
14
|
-
category
|
|
15
|
-
description
|
|
16
|
-
id
|
|
17
|
-
logo {
|
|
18
|
-
url
|
|
19
|
-
}
|
|
20
|
-
name
|
|
21
|
-
status
|
|
22
|
-
config {
|
|
23
|
-
webhooks {
|
|
24
|
-
approveLeaveRequest
|
|
25
|
-
cancelLeaveRequest
|
|
26
|
-
createIntegration
|
|
27
|
-
createLeaveRequest
|
|
28
|
-
denyLeaveRequest
|
|
29
|
-
getAuthorizationUrl
|
|
30
|
-
getConfigurationUrl
|
|
31
|
-
getLeaveBalances
|
|
32
|
-
getLeaveCategories
|
|
33
|
-
getLeaveRequestHours
|
|
34
|
-
getReconfigurationUrl
|
|
35
|
-
personConnected
|
|
36
|
-
processLeaveRequest
|
|
37
|
-
triggerIntegrationSync
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
authState
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
`,
|
|
46
|
-
variables,
|
|
47
|
-
fetchOptions
|
|
48
|
-
);
|
|
49
|
-
const account = result.data.session.account;
|
|
50
|
-
assertNotNull(
|
|
51
|
-
account,
|
|
52
|
-
"session.account",
|
|
53
|
-
result.data.session.authState === AuthState.Unauthenticated ? ApiErrorCode.SESSION_UNAUTHENTICATED : ApiErrorCode.SESSION_UNASSOCIATED
|
|
54
|
-
);
|
|
55
|
-
return account.apps;
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
var getMyApps_default = getMyApps;
|
|
59
|
-
export {
|
|
60
|
-
getMyApps_default as default
|
|
61
|
-
};
|
|
62
|
-
//# sourceMappingURL=getMyApps.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/api/operations/getMyApps.ts"],"sourcesContent":["import gql from \"dedent\";\nimport { AuthState, type GetMyAppsQuery, type GetMyAppsQueryVariables } from \"../_types.js\";\nimport { ApiErrorCode } from \"../ApiError.js\";\nimport assertNotNull from \"../assertNotNull.js\";\nimport createApiOperation from \"../createApiOperation.js\";\n\nconst getMyApps = createApiOperation(\n ({ fetchFromApi }) =>\n async (variables: GetMyAppsQueryVariables, fetchOptions?) => {\n const result = await fetchFromApi<GetMyAppsQuery, GetMyAppsQueryVariables>(\n gql`\n query GetMyApps {\n session {\n account {\n apps(includeDraft: true) {\n category\n description\n id\n logo {\n url\n }\n name\n status\n config {\n webhooks {\n approveLeaveRequest\n cancelLeaveRequest\n createIntegration\n createLeaveRequest\n denyLeaveRequest\n getAuthorizationUrl\n getConfigurationUrl\n getLeaveBalances\n getLeaveCategories\n getLeaveRequestHours\n getReconfigurationUrl\n personConnected\n processLeaveRequest\n triggerIntegrationSync\n }\n }\n }\n }\n authState\n }\n }\n `,\n variables,\n fetchOptions,\n );\n\n const account = result.data.session.account;\n\n assertNotNull(\n account,\n \"session.account\",\n result.data.session.authState === AuthState.Unauthenticated\n ? ApiErrorCode.SESSION_UNAUTHENTICATED\n : ApiErrorCode.SESSION_UNASSOCIATED,\n );\n\n return account.apps;\n },\n);\n\nexport default getMyApps;\n"],"mappings":"AAAA,OAAO,SAAS;AAChB,SAAS,iBAAoE;AAC7E,SAAS,oBAAoB;AAC7B,OAAO,mBAAmB;AAC1B,OAAO,wBAAwB;AAE/B,MAAM,YAAY;AAAA,EAChB,CAAC,EAAE,aAAa,MACd,OAAO,WAAoC,iBAAkB;AAC3D,UAAM,SAAS,MAAM;AAAA,MACnB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAqCA;AAAA,MACA;AAAA,IACF;AAEA,UAAM,UAAU,OAAO,KAAK,QAAQ;AAEpC;AAAA,MACE;AAAA,MACA;AAAA,MACA,OAAO,KAAK,QAAQ,cAAc,UAAU,kBACxC,aAAa,0BACb,aAAa;AAAA,IACnB;AAEA,WAAO,QAAQ;AAAA,EACjB;AACJ;AAEA,IAAO,oBAAQ;","names":[]}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { Exact, Scalars, AllocationMethod, Gender, TaxResidencyStatus, SuperFundNomination, TaxFileNumberExemption } from '../_generated.js';
|
|
2
|
-
import { F as FetchOptions, S as SuccessfulQueryResult } from '../../_types-kBsjg67t.js';
|
|
3
|
-
|
|
4
|
-
declare const getPeople: (context: {
|
|
5
|
-
fetchFromApi: <Data extends object, Variables extends object>(query: string, variables?: Variables, fetchOptions?: FetchOptions) => Promise<SuccessfulQueryResult<Data>>;
|
|
6
|
-
}) => (variables: Exact<{
|
|
7
|
-
orgId: Scalars["ID"]["input"];
|
|
8
|
-
}>, fetchOptions?: FetchOptions) => Promise<{
|
|
9
|
-
bankAccount1Allocation?: string | null;
|
|
10
|
-
bankAccount1AllocationMethod?: AllocationMethod | null;
|
|
11
|
-
bankAccount1Bsb?: string | null;
|
|
12
|
-
bankAccount1Name?: string | null;
|
|
13
|
-
bankAccount1Number?: string | null;
|
|
14
|
-
bankAccount2Allocation?: string | null;
|
|
15
|
-
bankAccount2AllocationMethod?: AllocationMethod | null;
|
|
16
|
-
bankAccount2Bsb?: string | null;
|
|
17
|
-
bankAccount2Name?: string | null;
|
|
18
|
-
bankAccount2Number?: string | null;
|
|
19
|
-
bankAccount3Allocation?: string | null;
|
|
20
|
-
bankAccount3AllocationMethod?: AllocationMethod | null;
|
|
21
|
-
bankAccount3Bsb?: string | null;
|
|
22
|
-
bankAccount3Name?: string | null;
|
|
23
|
-
bankAccount3Number?: string | null;
|
|
24
|
-
bankAccount4Allocation?: string | null;
|
|
25
|
-
bankAccount4AllocationMethod?: AllocationMethod | null;
|
|
26
|
-
bankAccount4Bsb?: string | null;
|
|
27
|
-
bankAccount4Name?: string | null;
|
|
28
|
-
bankAccount4Number?: string | null;
|
|
29
|
-
bankAccount5Allocation?: string | null;
|
|
30
|
-
bankAccount5AllocationMethod?: AllocationMethod | null;
|
|
31
|
-
bankAccount5Bsb?: string | null;
|
|
32
|
-
bankAccount5Name?: string | null;
|
|
33
|
-
bankAccount5Number?: string | null;
|
|
34
|
-
dateOfBirth?: string | null;
|
|
35
|
-
displayName: string;
|
|
36
|
-
employeeCode?: string | null;
|
|
37
|
-
endDate?: string | null;
|
|
38
|
-
familyName?: string | null;
|
|
39
|
-
gender?: Gender | null;
|
|
40
|
-
givenName?: string | null;
|
|
41
|
-
hasLoanOrStudentDebt?: boolean | null;
|
|
42
|
-
id: string;
|
|
43
|
-
otherGivenNames?: string | null;
|
|
44
|
-
personalEmail?: string | null;
|
|
45
|
-
personalPhone?: string | null;
|
|
46
|
-
profileEmail?: string | null;
|
|
47
|
-
residencyStatus?: TaxResidencyStatus | null;
|
|
48
|
-
residentialAddressCity?: string | null;
|
|
49
|
-
residentialAddressCountry?: string | null;
|
|
50
|
-
residentialAddressLine1?: string | null;
|
|
51
|
-
residentialAddressLine2?: string | null;
|
|
52
|
-
residentialAddressPostcode?: string | null;
|
|
53
|
-
residentialAddressState?: string | null;
|
|
54
|
-
startDate?: string | null;
|
|
55
|
-
superFund1MemberName?: string | null;
|
|
56
|
-
superFund1MemberNumber?: string | null;
|
|
57
|
-
superFund1Nomination?: SuperFundNomination | null;
|
|
58
|
-
superFund1Usi?: string | null;
|
|
59
|
-
taxFileNumber?: string | null;
|
|
60
|
-
taxFileNumberExemption?: TaxFileNumberExemption | null;
|
|
61
|
-
taxFreeThresholdClaimed?: boolean | null;
|
|
62
|
-
updatedAt: string;
|
|
63
|
-
}[]>;
|
|
64
|
-
|
|
65
|
-
export { getPeople as default };
|