@smartsides/oracle-ebs-sdk 1.0.9 → 1.0.10

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/README.md CHANGED
@@ -179,6 +179,22 @@ const preview = await client.sitRequests.saveAndPreview(data);
179
179
  const result = await client.sitRequests.submit(data);
180
180
  ```
181
181
 
182
+ ### Segments
183
+
184
+ ```typescript
185
+ // Get SIT segments metadata
186
+ const segments = await client.segments.getSitSegments({
187
+ idFlexNum: '50496'
188
+ });
189
+
190
+ // Returns array of segment metadata:
191
+ // - segmentNumber, segmentName, segmentPrompt
192
+ // - applicationColumnName, requiredFlag
193
+ // - defaultValue, valueSetName, validationType
194
+ // - enabledFlag, displayedFlag, executionStatus
195
+ ```
196
+
197
+
182
198
  ### Notifications
183
199
 
184
200
  ```typescript
@@ -173,16 +173,16 @@ declare class LeavesModule extends BaseClient {
173
173
  createRequest(input: CreateLeaveRequestInput): Promise<CreateLeaveRequestResponse>;
174
174
  }
175
175
 
176
- interface SitSegment {
176
+ interface SitSegment$1 {
177
177
  segmentName: string;
178
178
  segmentValue: string;
179
179
  displayValue?: string;
180
180
  }
181
- interface GetSitSegmentsParams {
181
+ interface GetSitSegmentsParams$1 {
182
182
  idFlexNum: string;
183
183
  }
184
- interface GetSitSegmentsResponse {
185
- segments: SitSegment[];
184
+ interface GetSitSegmentsResponse$1 {
185
+ segments: SitSegment$1[];
186
186
  }
187
187
  interface SaveAndPreviewSitRequestInput {
188
188
  itemType: string;
@@ -233,7 +233,7 @@ interface GetSitHistoryResponse {
233
233
  }
234
234
 
235
235
  declare class SitRequestsModule extends BaseClient {
236
- getSegments(params: GetSitSegmentsParams): Promise<GetSitSegmentsResponse>;
236
+ getSegments(params: GetSitSegmentsParams$1): Promise<GetSitSegmentsResponse$1>;
237
237
  saveAndPreview(input: SaveAndPreviewSitRequestInput): Promise<SaveAndPreviewSitRequestResponse>;
238
238
  submit(input: SubmitSitRequestInput): Promise<SubmitSitRequestResponse>;
239
239
  getHistory(params: GetSitHistoryParams): Promise<GetSitHistoryResponse>;
@@ -696,6 +696,33 @@ declare class AiModule extends BaseClient {
696
696
  deleteThread(threadId: string): Promise<void>;
697
697
  }
698
698
 
699
+ interface GetSitSegmentsParams {
700
+ idFlexNum: string;
701
+ }
702
+ interface SitSegment {
703
+ segmentNumber?: string;
704
+ segmentName?: string;
705
+ segmentPrompt?: string;
706
+ applicationColumnName?: string;
707
+ requiredFlag?: string;
708
+ defaultType?: string;
709
+ originalDefaultValue?: string;
710
+ executedDefaultValue?: string;
711
+ valueSetId?: string;
712
+ flexValueSetName?: string;
713
+ validationType?: string;
714
+ enabledFlag?: string;
715
+ displayedFlag?: string;
716
+ updatableFlag?: string;
717
+ insertableFlag?: string;
718
+ executionStatus?: string;
719
+ }
720
+ type GetSitSegmentsResponse = SitSegment[];
721
+
722
+ declare class SegmentsModule extends BaseClient {
723
+ getSitSegments(params: GetSitSegmentsParams): Promise<GetSitSegmentsResponse>;
724
+ }
725
+
699
726
  declare class OracleEBSClient {
700
727
  readonly auth: AuthModule;
701
728
  readonly leaves: LeavesModule;
@@ -707,6 +734,7 @@ declare class OracleEBSClient {
707
734
  readonly forms: FormsModule;
708
735
  readonly health: HealthModule;
709
736
  readonly ai: AiModule;
737
+ readonly segments: SegmentsModule;
710
738
  constructor(config: OracleEBSConfig);
711
739
  setToken(token: string, user?: {
712
740
  userName?: string;
@@ -719,4 +747,4 @@ declare class OracleEBSClient {
719
747
  clearToken(): void;
720
748
  }
721
749
 
722
- export { ActionType as $, type APIResponse as A, type GetPayslipDetailsParams as B, type CacheOptions as C, type PayslipDetail as D, type GetPayslipDetailsResponse as E, type PersonalInformation as F, type GetAbsenceTypesParams as G, type EmployeeHierarchyNode as H, type GetEmployeeHierarchyResponse as I, type GetTableColumnsParams as J, type GetTableColumnsResponse as K, type LoginCredentials as L, type DffSegment as M, type Notification as N, OracleEBSClient as O, type ProcessApprovalInput as P, type GetDffSegmentsParams as Q, type RetryOptions as R, type SitSegment as S, type TableColumn as T, type UserContext as U, type GetDffSegmentsResponse as V, type HealthCheckResponse as W, type AccrualBalance as X, type GetAccrualBalancesParams as Y, type GetAccrualBalancesResponse as Z, MessageRole as _, type OracleEBSConfig as a, UserIntent as a0, type ChatMessage as a1, type CallToAction as a2, type AiResponse as a3, type ChatRequest as a4, type VoiceTranscription as a5, type VoiceResponse as a6, type ChatHistory as a7, type ChatThread as a8, type ThreadMessage as a9, type GetThreadMessagesResponse as aa, type GetThreadsResponse as ab, type CreateThreadResponse as ac, type DeleteThreadResponse as ad, type LoginResponse as b, type Responsibility as c, type AbsenceType as d, type GetAbsenceTypesResponse as e, type LeaveHistoryRecord as f, type GetLeaveHistoryResponse as g, type CreateLeaveRequestInput as h, type CreateLeaveRequestResponse as i, type GetSitSegmentsParams as j, type GetSitSegmentsResponse as k, type SaveAndPreviewSitRequestInput as l, type SaveAndPreviewSitRequestResponse as m, type SubmitSitRequestInput as n, type SubmitSitRequestResponse as o, type GetSitHistoryParams as p, type SitHistoryRecord as q, type GetSitHistoryResponse as r, type GetNotificationsResponse as s, type NotificationDetails as t, type GetNotificationDetailsParams as u, type ProcessApprovalResponse as v, type CloseFyiParams as w, type CloseFyiResponse as x, type GetPayslipHeaderParams as y, type PayslipHeader as z };
750
+ export { type GetAccrualBalancesParams as $, type APIResponse as A, type CloseFyiResponse as B, type CacheOptions as C, type GetPayslipHeaderParams as D, type PayslipHeader as E, type GetPayslipDetailsParams as F, type GetAbsenceTypesParams as G, type PayslipDetail as H, type GetPayslipDetailsResponse as I, type PersonalInformation as J, type EmployeeHierarchyNode as K, type LoginCredentials as L, type GetEmployeeHierarchyResponse as M, type Notification as N, OracleEBSClient as O, type ProcessApprovalInput as P, type GetTableColumnsParams as Q, type RetryOptions as R, type SitSegment$1 as S, type TableColumn as T, type UserContext as U, type GetTableColumnsResponse as V, type DffSegment as W, type GetDffSegmentsParams as X, type GetDffSegmentsResponse as Y, type HealthCheckResponse as Z, type AccrualBalance as _, type OracleEBSConfig as a, type GetAccrualBalancesResponse as a0, MessageRole as a1, ActionType as a2, UserIntent as a3, type ChatMessage as a4, type CallToAction as a5, type AiResponse as a6, type ChatRequest as a7, type VoiceTranscription as a8, type VoiceResponse as a9, type ChatHistory as aa, type ChatThread as ab, type ThreadMessage as ac, type GetThreadMessagesResponse as ad, type GetThreadsResponse as ae, type CreateThreadResponse as af, type DeleteThreadResponse as ag, type LoginResponse as b, type Responsibility as c, type AbsenceType as d, type GetAbsenceTypesResponse as e, type LeaveHistoryRecord as f, type GetLeaveHistoryResponse as g, type CreateLeaveRequestInput as h, type CreateLeaveRequestResponse as i, type GetSitSegmentsParams$1 as j, type GetSitSegmentsResponse$1 as k, type SaveAndPreviewSitRequestInput as l, type SaveAndPreviewSitRequestResponse as m, type SubmitSitRequestInput as n, type SubmitSitRequestResponse as o, type GetSitHistoryParams as p, type SitHistoryRecord as q, type GetSitHistoryResponse as r, type SitSegment as s, type GetSitSegmentsParams as t, type GetSitSegmentsResponse as u, type GetNotificationsResponse as v, type NotificationDetails as w, type GetNotificationDetailsParams as x, type ProcessApprovalResponse as y, type CloseFyiParams as z };
@@ -173,16 +173,16 @@ declare class LeavesModule extends BaseClient {
173
173
  createRequest(input: CreateLeaveRequestInput): Promise<CreateLeaveRequestResponse>;
174
174
  }
175
175
 
176
- interface SitSegment {
176
+ interface SitSegment$1 {
177
177
  segmentName: string;
178
178
  segmentValue: string;
179
179
  displayValue?: string;
180
180
  }
181
- interface GetSitSegmentsParams {
181
+ interface GetSitSegmentsParams$1 {
182
182
  idFlexNum: string;
183
183
  }
184
- interface GetSitSegmentsResponse {
185
- segments: SitSegment[];
184
+ interface GetSitSegmentsResponse$1 {
185
+ segments: SitSegment$1[];
186
186
  }
187
187
  interface SaveAndPreviewSitRequestInput {
188
188
  itemType: string;
@@ -233,7 +233,7 @@ interface GetSitHistoryResponse {
233
233
  }
234
234
 
235
235
  declare class SitRequestsModule extends BaseClient {
236
- getSegments(params: GetSitSegmentsParams): Promise<GetSitSegmentsResponse>;
236
+ getSegments(params: GetSitSegmentsParams$1): Promise<GetSitSegmentsResponse$1>;
237
237
  saveAndPreview(input: SaveAndPreviewSitRequestInput): Promise<SaveAndPreviewSitRequestResponse>;
238
238
  submit(input: SubmitSitRequestInput): Promise<SubmitSitRequestResponse>;
239
239
  getHistory(params: GetSitHistoryParams): Promise<GetSitHistoryResponse>;
@@ -696,6 +696,33 @@ declare class AiModule extends BaseClient {
696
696
  deleteThread(threadId: string): Promise<void>;
697
697
  }
698
698
 
699
+ interface GetSitSegmentsParams {
700
+ idFlexNum: string;
701
+ }
702
+ interface SitSegment {
703
+ segmentNumber?: string;
704
+ segmentName?: string;
705
+ segmentPrompt?: string;
706
+ applicationColumnName?: string;
707
+ requiredFlag?: string;
708
+ defaultType?: string;
709
+ originalDefaultValue?: string;
710
+ executedDefaultValue?: string;
711
+ valueSetId?: string;
712
+ flexValueSetName?: string;
713
+ validationType?: string;
714
+ enabledFlag?: string;
715
+ displayedFlag?: string;
716
+ updatableFlag?: string;
717
+ insertableFlag?: string;
718
+ executionStatus?: string;
719
+ }
720
+ type GetSitSegmentsResponse = SitSegment[];
721
+
722
+ declare class SegmentsModule extends BaseClient {
723
+ getSitSegments(params: GetSitSegmentsParams): Promise<GetSitSegmentsResponse>;
724
+ }
725
+
699
726
  declare class OracleEBSClient {
700
727
  readonly auth: AuthModule;
701
728
  readonly leaves: LeavesModule;
@@ -707,6 +734,7 @@ declare class OracleEBSClient {
707
734
  readonly forms: FormsModule;
708
735
  readonly health: HealthModule;
709
736
  readonly ai: AiModule;
737
+ readonly segments: SegmentsModule;
710
738
  constructor(config: OracleEBSConfig);
711
739
  setToken(token: string, user?: {
712
740
  userName?: string;
@@ -719,4 +747,4 @@ declare class OracleEBSClient {
719
747
  clearToken(): void;
720
748
  }
721
749
 
722
- export { ActionType as $, type APIResponse as A, type GetPayslipDetailsParams as B, type CacheOptions as C, type PayslipDetail as D, type GetPayslipDetailsResponse as E, type PersonalInformation as F, type GetAbsenceTypesParams as G, type EmployeeHierarchyNode as H, type GetEmployeeHierarchyResponse as I, type GetTableColumnsParams as J, type GetTableColumnsResponse as K, type LoginCredentials as L, type DffSegment as M, type Notification as N, OracleEBSClient as O, type ProcessApprovalInput as P, type GetDffSegmentsParams as Q, type RetryOptions as R, type SitSegment as S, type TableColumn as T, type UserContext as U, type GetDffSegmentsResponse as V, type HealthCheckResponse as W, type AccrualBalance as X, type GetAccrualBalancesParams as Y, type GetAccrualBalancesResponse as Z, MessageRole as _, type OracleEBSConfig as a, UserIntent as a0, type ChatMessage as a1, type CallToAction as a2, type AiResponse as a3, type ChatRequest as a4, type VoiceTranscription as a5, type VoiceResponse as a6, type ChatHistory as a7, type ChatThread as a8, type ThreadMessage as a9, type GetThreadMessagesResponse as aa, type GetThreadsResponse as ab, type CreateThreadResponse as ac, type DeleteThreadResponse as ad, type LoginResponse as b, type Responsibility as c, type AbsenceType as d, type GetAbsenceTypesResponse as e, type LeaveHistoryRecord as f, type GetLeaveHistoryResponse as g, type CreateLeaveRequestInput as h, type CreateLeaveRequestResponse as i, type GetSitSegmentsParams as j, type GetSitSegmentsResponse as k, type SaveAndPreviewSitRequestInput as l, type SaveAndPreviewSitRequestResponse as m, type SubmitSitRequestInput as n, type SubmitSitRequestResponse as o, type GetSitHistoryParams as p, type SitHistoryRecord as q, type GetSitHistoryResponse as r, type GetNotificationsResponse as s, type NotificationDetails as t, type GetNotificationDetailsParams as u, type ProcessApprovalResponse as v, type CloseFyiParams as w, type CloseFyiResponse as x, type GetPayslipHeaderParams as y, type PayslipHeader as z };
750
+ export { type GetAccrualBalancesParams as $, type APIResponse as A, type CloseFyiResponse as B, type CacheOptions as C, type GetPayslipHeaderParams as D, type PayslipHeader as E, type GetPayslipDetailsParams as F, type GetAbsenceTypesParams as G, type PayslipDetail as H, type GetPayslipDetailsResponse as I, type PersonalInformation as J, type EmployeeHierarchyNode as K, type LoginCredentials as L, type GetEmployeeHierarchyResponse as M, type Notification as N, OracleEBSClient as O, type ProcessApprovalInput as P, type GetTableColumnsParams as Q, type RetryOptions as R, type SitSegment$1 as S, type TableColumn as T, type UserContext as U, type GetTableColumnsResponse as V, type DffSegment as W, type GetDffSegmentsParams as X, type GetDffSegmentsResponse as Y, type HealthCheckResponse as Z, type AccrualBalance as _, type OracleEBSConfig as a, type GetAccrualBalancesResponse as a0, MessageRole as a1, ActionType as a2, UserIntent as a3, type ChatMessage as a4, type CallToAction as a5, type AiResponse as a6, type ChatRequest as a7, type VoiceTranscription as a8, type VoiceResponse as a9, type ChatHistory as aa, type ChatThread as ab, type ThreadMessage as ac, type GetThreadMessagesResponse as ad, type GetThreadsResponse as ae, type CreateThreadResponse as af, type DeleteThreadResponse as ag, type LoginResponse as b, type Responsibility as c, type AbsenceType as d, type GetAbsenceTypesResponse as e, type LeaveHistoryRecord as f, type GetLeaveHistoryResponse as g, type CreateLeaveRequestInput as h, type CreateLeaveRequestResponse as i, type GetSitSegmentsParams$1 as j, type GetSitSegmentsResponse$1 as k, type SaveAndPreviewSitRequestInput as l, type SaveAndPreviewSitRequestResponse as m, type SubmitSitRequestInput as n, type SubmitSitRequestResponse as o, type GetSitHistoryParams as p, type SitHistoryRecord as q, type GetSitHistoryResponse as r, type SitSegment as s, type GetSitSegmentsParams as t, type GetSitSegmentsResponse as u, type GetNotificationsResponse as v, type NotificationDetails as w, type GetNotificationDetailsParams as x, type ProcessApprovalResponse as y, type CloseFyiParams as z };
@@ -1,6 +1,6 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { UseMutationOptions, UseQueryOptions } from '@tanstack/react-query';
3
- import { G as GetAbsenceTypesParams, j as GetSitSegmentsParams, Q as GetDffSegmentsParams, O as OracleEBSClient, b as LoginResponse, L as LoginCredentials, U as UserContext, e as GetAbsenceTypesResponse, g as GetLeaveHistoryResponse, i as CreateLeaveRequestResponse, h as CreateLeaveRequestInput, k as GetSitSegmentsResponse, m as SaveAndPreviewSitRequestResponse, l as SaveAndPreviewSitRequestInput, o as SubmitSitRequestResponse, n as SubmitSitRequestInput, s as GetNotificationsResponse, u as GetNotificationDetailsParams, t as NotificationDetails, v as ProcessApprovalResponse, P as ProcessApprovalInput, y as GetPayslipHeaderParams, z as PayslipHeader, B as GetPayslipDetailsParams, E as GetPayslipDetailsResponse, F as PersonalInformation, I as GetEmployeeHierarchyResponse, Y as GetAccrualBalancesParams, Z as GetAccrualBalancesResponse, J as GetTableColumnsParams, K as GetTableColumnsResponse, V as GetDffSegmentsResponse, W as HealthCheckResponse } from '../OracleEBSClient-BDnxW4cW.mjs';
3
+ import { G as GetAbsenceTypesParams, j as GetSitSegmentsParams, X as GetDffSegmentsParams, O as OracleEBSClient, b as LoginResponse, L as LoginCredentials, U as UserContext, e as GetAbsenceTypesResponse, g as GetLeaveHistoryResponse, i as CreateLeaveRequestResponse, h as CreateLeaveRequestInput, k as GetSitSegmentsResponse, m as SaveAndPreviewSitRequestResponse, l as SaveAndPreviewSitRequestInput, o as SubmitSitRequestResponse, n as SubmitSitRequestInput, v as GetNotificationsResponse, x as GetNotificationDetailsParams, w as NotificationDetails, y as ProcessApprovalResponse, P as ProcessApprovalInput, D as GetPayslipHeaderParams, E as PayslipHeader, F as GetPayslipDetailsParams, I as GetPayslipDetailsResponse, J as PersonalInformation, M as GetEmployeeHierarchyResponse, $ as GetAccrualBalancesParams, a0 as GetAccrualBalancesResponse, Q as GetTableColumnsParams, V as GetTableColumnsResponse, Y as GetDffSegmentsResponse, Z as HealthCheckResponse } from '../OracleEBSClient-DFGpQFfQ.mjs';
4
4
  import 'ky';
5
5
 
6
6
  declare const queryKeys: {
@@ -1,6 +1,6 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { UseMutationOptions, UseQueryOptions } from '@tanstack/react-query';
3
- import { G as GetAbsenceTypesParams, j as GetSitSegmentsParams, Q as GetDffSegmentsParams, O as OracleEBSClient, b as LoginResponse, L as LoginCredentials, U as UserContext, e as GetAbsenceTypesResponse, g as GetLeaveHistoryResponse, i as CreateLeaveRequestResponse, h as CreateLeaveRequestInput, k as GetSitSegmentsResponse, m as SaveAndPreviewSitRequestResponse, l as SaveAndPreviewSitRequestInput, o as SubmitSitRequestResponse, n as SubmitSitRequestInput, s as GetNotificationsResponse, u as GetNotificationDetailsParams, t as NotificationDetails, v as ProcessApprovalResponse, P as ProcessApprovalInput, y as GetPayslipHeaderParams, z as PayslipHeader, B as GetPayslipDetailsParams, E as GetPayslipDetailsResponse, F as PersonalInformation, I as GetEmployeeHierarchyResponse, Y as GetAccrualBalancesParams, Z as GetAccrualBalancesResponse, J as GetTableColumnsParams, K as GetTableColumnsResponse, V as GetDffSegmentsResponse, W as HealthCheckResponse } from '../OracleEBSClient-BDnxW4cW.js';
3
+ import { G as GetAbsenceTypesParams, j as GetSitSegmentsParams, X as GetDffSegmentsParams, O as OracleEBSClient, b as LoginResponse, L as LoginCredentials, U as UserContext, e as GetAbsenceTypesResponse, g as GetLeaveHistoryResponse, i as CreateLeaveRequestResponse, h as CreateLeaveRequestInput, k as GetSitSegmentsResponse, m as SaveAndPreviewSitRequestResponse, l as SaveAndPreviewSitRequestInput, o as SubmitSitRequestResponse, n as SubmitSitRequestInput, v as GetNotificationsResponse, x as GetNotificationDetailsParams, w as NotificationDetails, y as ProcessApprovalResponse, P as ProcessApprovalInput, D as GetPayslipHeaderParams, E as PayslipHeader, F as GetPayslipDetailsParams, I as GetPayslipDetailsResponse, J as PersonalInformation, M as GetEmployeeHierarchyResponse, $ as GetAccrualBalancesParams, a0 as GetAccrualBalancesResponse, Q as GetTableColumnsParams, V as GetTableColumnsResponse, Y as GetDffSegmentsResponse, Z as HealthCheckResponse } from '../OracleEBSClient-DFGpQFfQ.js';
4
4
  import 'ky';
5
5
 
6
6
  declare const queryKeys: {
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as APIResponse, d as AbsenceType, X as AccrualBalance, $ as ActionType, a3 as AiResponse, C as CacheOptions, a2 as CallToAction, a7 as ChatHistory, a1 as ChatMessage, a4 as ChatRequest, a8 as ChatThread, w as CloseFyiParams, x as CloseFyiResponse, h as CreateLeaveRequestInput, i as CreateLeaveRequestResponse, ac as CreateThreadResponse, ad as DeleteThreadResponse, M as DffSegment, H as EmployeeHierarchyNode, G as GetAbsenceTypesParams, e as GetAbsenceTypesResponse, Y as GetAccrualBalancesParams, Z as GetAccrualBalancesResponse, Q as GetDffSegmentsParams, V as GetDffSegmentsResponse, I as GetEmployeeHierarchyResponse, g as GetLeaveHistoryResponse, u as GetNotificationDetailsParams, s as GetNotificationsResponse, B as GetPayslipDetailsParams, E as GetPayslipDetailsResponse, y as GetPayslipHeaderParams, p as GetSitHistoryParams, r as GetSitHistoryResponse, j as GetSitSegmentsParams, k as GetSitSegmentsResponse, J as GetTableColumnsParams, K as GetTableColumnsResponse, aa as GetThreadMessagesResponse, ab as GetThreadsResponse, W as HealthCheckResponse, f as LeaveHistoryRecord, L as LoginCredentials, b as LoginResponse, _ as MessageRole, N as Notification, t as NotificationDetails, O as OracleEBSClient, a as OracleEBSConfig, D as PayslipDetail, z as PayslipHeader, F as PersonalInformation, P as ProcessApprovalInput, v as ProcessApprovalResponse, c as Responsibility, R as RetryOptions, l as SaveAndPreviewSitRequestInput, m as SaveAndPreviewSitRequestResponse, q as SitHistoryRecord, S as SitSegment, n as SubmitSitRequestInput, o as SubmitSitRequestResponse, T as TableColumn, a9 as ThreadMessage, U as UserContext, a0 as UserIntent, a6 as VoiceResponse, a5 as VoiceTranscription } from './OracleEBSClient-BDnxW4cW.mjs';
1
+ export { A as APIResponse, d as AbsenceType, _ as AccrualBalance, a2 as ActionType, a6 as AiResponse, C as CacheOptions, a5 as CallToAction, aa as ChatHistory, a4 as ChatMessage, a7 as ChatRequest, ab as ChatThread, z as CloseFyiParams, B as CloseFyiResponse, h as CreateLeaveRequestInput, i as CreateLeaveRequestResponse, af as CreateThreadResponse, ag as DeleteThreadResponse, W as DffSegment, K as EmployeeHierarchyNode, G as GetAbsenceTypesParams, e as GetAbsenceTypesResponse, $ as GetAccrualBalancesParams, a0 as GetAccrualBalancesResponse, X as GetDffSegmentsParams, Y as GetDffSegmentsResponse, M as GetEmployeeHierarchyResponse, g as GetLeaveHistoryResponse, x as GetNotificationDetailsParams, v as GetNotificationsResponse, F as GetPayslipDetailsParams, I as GetPayslipDetailsResponse, D as GetPayslipHeaderParams, t as GetSegmentsParams, u as GetSegmentsResponse, p as GetSitHistoryParams, r as GetSitHistoryResponse, j as GetSitSegmentsParams, k as GetSitSegmentsResponse, Q as GetTableColumnsParams, V as GetTableColumnsResponse, ad as GetThreadMessagesResponse, ae as GetThreadsResponse, Z as HealthCheckResponse, f as LeaveHistoryRecord, L as LoginCredentials, b as LoginResponse, a1 as MessageRole, N as Notification, w as NotificationDetails, O as OracleEBSClient, a as OracleEBSConfig, H as PayslipDetail, E as PayslipHeader, J as PersonalInformation, P as ProcessApprovalInput, y as ProcessApprovalResponse, c as Responsibility, R as RetryOptions, l as SaveAndPreviewSitRequestInput, m as SaveAndPreviewSitRequestResponse, s as SegmentItem, q as SitHistoryRecord, S as SitSegment, n as SubmitSitRequestInput, o as SubmitSitRequestResponse, T as TableColumn, ac as ThreadMessage, U as UserContext, a3 as UserIntent, a9 as VoiceResponse, a8 as VoiceTranscription } from './OracleEBSClient-DFGpQFfQ.mjs';
2
2
  export { queryKeys, useAccrualBalances, useCreateLeaveRequest, useDffSegments, useEmployeeHierarchy, useHealthCheck, useLeaveHistory, useLeaveTypes, useLogin, useNotificationDetails, useNotifications, usePayslipDetails, usePayslipHeader, usePersonalInfo, useProcessApproval, useSaveAndPreviewSitRequest, useSitSegments, useSubmitSitRequest, useTableColumns, useUserContext } from './hooks/index.mjs';
3
3
  import 'ky';
4
4
  import '@tanstack/react-query';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as APIResponse, d as AbsenceType, X as AccrualBalance, $ as ActionType, a3 as AiResponse, C as CacheOptions, a2 as CallToAction, a7 as ChatHistory, a1 as ChatMessage, a4 as ChatRequest, a8 as ChatThread, w as CloseFyiParams, x as CloseFyiResponse, h as CreateLeaveRequestInput, i as CreateLeaveRequestResponse, ac as CreateThreadResponse, ad as DeleteThreadResponse, M as DffSegment, H as EmployeeHierarchyNode, G as GetAbsenceTypesParams, e as GetAbsenceTypesResponse, Y as GetAccrualBalancesParams, Z as GetAccrualBalancesResponse, Q as GetDffSegmentsParams, V as GetDffSegmentsResponse, I as GetEmployeeHierarchyResponse, g as GetLeaveHistoryResponse, u as GetNotificationDetailsParams, s as GetNotificationsResponse, B as GetPayslipDetailsParams, E as GetPayslipDetailsResponse, y as GetPayslipHeaderParams, p as GetSitHistoryParams, r as GetSitHistoryResponse, j as GetSitSegmentsParams, k as GetSitSegmentsResponse, J as GetTableColumnsParams, K as GetTableColumnsResponse, aa as GetThreadMessagesResponse, ab as GetThreadsResponse, W as HealthCheckResponse, f as LeaveHistoryRecord, L as LoginCredentials, b as LoginResponse, _ as MessageRole, N as Notification, t as NotificationDetails, O as OracleEBSClient, a as OracleEBSConfig, D as PayslipDetail, z as PayslipHeader, F as PersonalInformation, P as ProcessApprovalInput, v as ProcessApprovalResponse, c as Responsibility, R as RetryOptions, l as SaveAndPreviewSitRequestInput, m as SaveAndPreviewSitRequestResponse, q as SitHistoryRecord, S as SitSegment, n as SubmitSitRequestInput, o as SubmitSitRequestResponse, T as TableColumn, a9 as ThreadMessage, U as UserContext, a0 as UserIntent, a6 as VoiceResponse, a5 as VoiceTranscription } from './OracleEBSClient-BDnxW4cW.js';
1
+ export { A as APIResponse, d as AbsenceType, _ as AccrualBalance, a2 as ActionType, a6 as AiResponse, C as CacheOptions, a5 as CallToAction, aa as ChatHistory, a4 as ChatMessage, a7 as ChatRequest, ab as ChatThread, z as CloseFyiParams, B as CloseFyiResponse, h as CreateLeaveRequestInput, i as CreateLeaveRequestResponse, af as CreateThreadResponse, ag as DeleteThreadResponse, W as DffSegment, K as EmployeeHierarchyNode, G as GetAbsenceTypesParams, e as GetAbsenceTypesResponse, $ as GetAccrualBalancesParams, a0 as GetAccrualBalancesResponse, X as GetDffSegmentsParams, Y as GetDffSegmentsResponse, M as GetEmployeeHierarchyResponse, g as GetLeaveHistoryResponse, x as GetNotificationDetailsParams, v as GetNotificationsResponse, F as GetPayslipDetailsParams, I as GetPayslipDetailsResponse, D as GetPayslipHeaderParams, t as GetSegmentsParams, u as GetSegmentsResponse, p as GetSitHistoryParams, r as GetSitHistoryResponse, j as GetSitSegmentsParams, k as GetSitSegmentsResponse, Q as GetTableColumnsParams, V as GetTableColumnsResponse, ad as GetThreadMessagesResponse, ae as GetThreadsResponse, Z as HealthCheckResponse, f as LeaveHistoryRecord, L as LoginCredentials, b as LoginResponse, a1 as MessageRole, N as Notification, w as NotificationDetails, O as OracleEBSClient, a as OracleEBSConfig, H as PayslipDetail, E as PayslipHeader, J as PersonalInformation, P as ProcessApprovalInput, y as ProcessApprovalResponse, c as Responsibility, R as RetryOptions, l as SaveAndPreviewSitRequestInput, m as SaveAndPreviewSitRequestResponse, s as SegmentItem, q as SitHistoryRecord, S as SitSegment, n as SubmitSitRequestInput, o as SubmitSitRequestResponse, T as TableColumn, ac as ThreadMessage, U as UserContext, a3 as UserIntent, a9 as VoiceResponse, a8 as VoiceTranscription } from './OracleEBSClient-DFGpQFfQ.js';
2
2
  export { queryKeys, useAccrualBalances, useCreateLeaveRequest, useDffSegments, useEmployeeHierarchy, useHealthCheck, useLeaveHistory, useLeaveTypes, useLogin, useNotificationDetails, useNotifications, usePayslipDetails, usePayslipHeader, usePersonalInfo, useProcessApproval, useSaveAndPreviewSitRequest, useSitSegments, useSubmitSitRequest, useTableColumns, useUserContext } from './hooks/index.js';
3
3
  import 'ky';
4
4
  import '@tanstack/react-query';
package/dist/index.js CHANGED
@@ -683,6 +683,19 @@ var AiModule = class extends BaseClient {
683
683
  }
684
684
  };
685
685
 
686
+ // src/modules/SegmentsModule.ts
687
+ var SegmentsModule = class extends BaseClient {
688
+ /**
689
+ * Get SIT segments
690
+ */
691
+ async getSitSegments(params) {
692
+ const searchParams = new URLSearchParams();
693
+ searchParams.set("idFlexNum", params.idFlexNum);
694
+ const response = await this.get(`segments/sit-segments?${searchParams}`);
695
+ return response.data;
696
+ }
697
+ };
698
+
686
699
  // src/client/OracleEBSClient.ts
687
700
  var OracleEBSClient = class {
688
701
  constructor(config) {
@@ -696,6 +709,7 @@ var OracleEBSClient = class {
696
709
  this.forms = new FormsModule(config);
697
710
  this.health = new HealthModule(config);
698
711
  this.ai = new AiModule(config);
712
+ this.segments = new SegmentsModule(config);
699
713
  }
700
714
  /**
701
715
  * Set authentication token for all modules
@@ -711,6 +725,7 @@ var OracleEBSClient = class {
711
725
  this.forms.setToken(token, user);
712
726
  this.health.setToken(token, user);
713
727
  this.ai.setToken(token, user);
728
+ this.segments.setToken(token, user);
714
729
  }
715
730
  /**
716
731
  * Clear authentication token from all modules
@@ -726,6 +741,7 @@ var OracleEBSClient = class {
726
741
  this.forms.clearToken();
727
742
  this.health.clearToken();
728
743
  this.ai.clearToken();
744
+ this.segments.clearToken();
729
745
  }
730
746
  };
731
747