@plyaz/api 1.2.1 → 1.3.0

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.
Files changed (126) hide show
  1. package/dist/api/client/clientEventManager.d.ts +8 -2
  2. package/dist/api/client/clientEventManager.d.ts.map +1 -1
  3. package/dist/api/client/createApiClient.d.ts.map +1 -1
  4. package/dist/api/client/helpers/interceptors.d.ts +2 -2
  5. package/dist/api/client/helpers/interceptors.d.ts.map +1 -1
  6. package/dist/api/client/index.d.ts +2 -1
  7. package/dist/api/client/index.d.ts.map +1 -1
  8. package/dist/api/config/global.d.ts.map +1 -1
  9. package/dist/api/debugger/DebugReport.d.ts.map +1 -1
  10. package/dist/api/debugger/UnifiedDebugger.d.ts.map +1 -1
  11. package/dist/api/debugger/queue/DebuggerQueueManager.d.ts.map +1 -1
  12. package/dist/api/debugger/queue/OperationTracker.d.ts.map +1 -1
  13. package/dist/api/endpoints/campaigns.d.ts.map +1 -1
  14. package/dist/api/endpoints/index.d.ts +55 -0
  15. package/dist/api/endpoints/index.d.ts.map +1 -1
  16. package/dist/api/endpoints/infobip.d.ts +209 -0
  17. package/dist/api/endpoints/infobip.d.ts.map +1 -0
  18. package/dist/api/errors/adapter.d.ts +71 -0
  19. package/dist/api/errors/adapter.d.ts.map +1 -0
  20. package/dist/api/errors/index.d.ts +3 -15
  21. package/dist/api/errors/index.d.ts.map +1 -1
  22. package/dist/api/events/EventManager.d.ts.map +1 -1
  23. package/dist/api/events/factories/base.d.ts +11 -3
  24. package/dist/api/events/factories/base.d.ts.map +1 -1
  25. package/dist/api/events/factories/errors.d.ts +10 -10
  26. package/dist/api/events/factories/errors.d.ts.map +1 -1
  27. package/dist/api/events/queue/ConfigUpdateQueueManager.d.ts.map +1 -1
  28. package/dist/api/events/queue/EventQueueManager.d.ts.map +1 -1
  29. package/dist/api/headers/headerBuilder.d.ts.map +1 -1
  30. package/dist/api/hooks/factories/createApiMutation.d.ts +3 -3
  31. package/dist/api/hooks/factories/createApiMutation.d.ts.map +1 -1
  32. package/dist/api/hooks/factories/createApiQuery.d.ts +3 -3
  33. package/dist/api/hooks/factories/createApiQuery.d.ts.map +1 -1
  34. package/dist/api/hooks/index.d.ts +0 -1
  35. package/dist/api/hooks/index.d.ts.map +1 -1
  36. package/dist/api/index.d.ts +2 -1
  37. package/dist/api/index.d.ts.map +1 -1
  38. package/dist/api/network/frameworks/express.d.ts.map +1 -1
  39. package/dist/api/network/frameworks/nestjs/decorators.d.ts +9 -1
  40. package/dist/api/network/frameworks/nestjs/decorators.d.ts.map +1 -1
  41. package/dist/api/network/frameworks/nestjs/enrichedHeadersGuard.d.ts.map +1 -1
  42. package/dist/api/network/frameworks/nestjs/enrichedHeadersInterceptor.d.ts.map +1 -1
  43. package/dist/api/network/networkConfigurationManager.d.ts.map +1 -1
  44. package/dist/api/network/status.d.ts +1 -4
  45. package/dist/api/network/status.d.ts.map +1 -1
  46. package/dist/api/performance/performanceMonitor.d.ts.map +1 -1
  47. package/dist/api/polling/index.d.ts +1 -1
  48. package/dist/api/polling/index.d.ts.map +1 -1
  49. package/dist/api/polling/strategies.d.ts +1 -5
  50. package/dist/api/polling/strategies.d.ts.map +1 -1
  51. package/dist/api/polling/utils.d.ts.map +1 -1
  52. package/dist/api/pubsub/index.d.ts.map +1 -1
  53. package/dist/api/pubsub/react.d.ts +6 -10
  54. package/dist/api/pubsub/react.d.ts.map +1 -1
  55. package/dist/api/queue/BaseOperationTracker.d.ts.map +1 -1
  56. package/dist/api/queue/EventQueueManager.d.ts.map +1 -1
  57. package/dist/api/queue/QueueOrchestrator.d.ts.map +1 -1
  58. package/dist/api/services/campaigns/GET/useCampaign.d.ts +1 -1
  59. package/dist/api/services/campaigns/GET/useCampaign.d.ts.map +1 -1
  60. package/dist/api/services/campaigns/GET/useCampaignParticipants.d.ts +1 -11
  61. package/dist/api/services/campaigns/GET/useCampaignParticipants.d.ts.map +1 -1
  62. package/dist/api/services/campaigns/GET/useCampaignStats.d.ts +1 -1
  63. package/dist/api/services/campaigns/GET/useCampaignStats.d.ts.map +1 -1
  64. package/dist/api/services/campaigns/GET/useCampaigns.d.ts +1 -1
  65. package/dist/api/services/campaigns/GET/useCampaigns.d.ts.map +1 -1
  66. package/dist/api/services/campaigns/PUT/useUpdateCampaign.d.ts +1 -9
  67. package/dist/api/services/campaigns/PUT/useUpdateCampaign.d.ts.map +1 -1
  68. package/dist/api/services/index.d.ts +1 -0
  69. package/dist/api/services/index.d.ts.map +1 -1
  70. package/dist/api/services/infobip/email/GET/fetchEmailLogs.d.ts +50 -0
  71. package/dist/api/services/infobip/email/GET/fetchEmailLogs.d.ts.map +1 -0
  72. package/dist/api/services/infobip/email/GET/fetchEmailReports.d.ts +44 -0
  73. package/dist/api/services/infobip/email/GET/fetchEmailReports.d.ts.map +1 -0
  74. package/dist/api/services/infobip/email/GET/fetchScheduledEmailStatuses.d.ts +28 -0
  75. package/dist/api/services/infobip/email/GET/fetchScheduledEmailStatuses.d.ts.map +1 -0
  76. package/dist/api/services/infobip/email/GET/fetchScheduledEmails.d.ts +27 -0
  77. package/dist/api/services/infobip/email/GET/fetchScheduledEmails.d.ts.map +1 -0
  78. package/dist/api/services/infobip/email/GET/fetchValidations.d.ts +60 -0
  79. package/dist/api/services/infobip/email/GET/fetchValidations.d.ts.map +1 -0
  80. package/dist/api/services/infobip/email/GET/index.d.ts +10 -0
  81. package/dist/api/services/infobip/email/GET/index.d.ts.map +1 -0
  82. package/dist/api/services/infobip/email/POST/bulkValidateEmails.d.ts +50 -0
  83. package/dist/api/services/infobip/email/POST/bulkValidateEmails.d.ts.map +1 -0
  84. package/dist/api/services/infobip/email/POST/index.d.ts +9 -0
  85. package/dist/api/services/infobip/email/POST/index.d.ts.map +1 -0
  86. package/dist/api/services/infobip/email/POST/sendAdvancedEmail.d.ts +67 -0
  87. package/dist/api/services/infobip/email/POST/sendAdvancedEmail.d.ts.map +1 -0
  88. package/dist/api/services/infobip/email/POST/sendEmail.d.ts +60 -0
  89. package/dist/api/services/infobip/email/POST/sendEmail.d.ts.map +1 -0
  90. package/dist/api/services/infobip/email/POST/validateEmail.d.ts +40 -0
  91. package/dist/api/services/infobip/email/POST/validateEmail.d.ts.map +1 -0
  92. package/dist/api/services/infobip/email/PUT/index.d.ts +7 -0
  93. package/dist/api/services/infobip/email/PUT/index.d.ts.map +1 -0
  94. package/dist/api/services/infobip/email/PUT/rescheduleEmails.d.ts +29 -0
  95. package/dist/api/services/infobip/email/PUT/rescheduleEmails.d.ts.map +1 -0
  96. package/dist/api/services/infobip/email/PUT/updateScheduledEmailStatuses.d.ts +36 -0
  97. package/dist/api/services/infobip/email/PUT/updateScheduledEmailStatuses.d.ts.map +1 -0
  98. package/dist/api/services/infobip/email/index.d.ts +8 -0
  99. package/dist/api/services/infobip/email/index.d.ts.map +1 -0
  100. package/dist/api/services/infobip/index.d.ts +6 -0
  101. package/dist/api/services/infobip/index.d.ts.map +1 -0
  102. package/dist/api/utils/index.d.ts +0 -3
  103. package/dist/api/utils/index.d.ts.map +1 -1
  104. package/dist/index.cjs +1309 -1392
  105. package/dist/index.cjs.map +1 -1
  106. package/dist/index.mjs +1225 -1350
  107. package/dist/index.mjs.map +1 -1
  108. package/package.json +7 -5
  109. package/dist/api/errors/ApiPackageError.d.ts +0 -101
  110. package/dist/api/errors/ApiPackageError.d.ts.map +0 -1
  111. package/dist/api/errors/definitions.d.ts +0 -24
  112. package/dist/api/errors/definitions.d.ts.map +0 -1
  113. package/dist/api/errors/error-codes.d.ts +0 -116
  114. package/dist/api/errors/error-codes.d.ts.map +0 -1
  115. package/dist/api/errors/error-events.d.ts +0 -63
  116. package/dist/api/errors/error-events.d.ts.map +0 -1
  117. package/dist/api/errors/types-constants.d.ts +0 -64
  118. package/dist/api/errors/types-constants.d.ts.map +0 -1
  119. package/dist/api/hooks/types.d.ts +0 -82
  120. package/dist/api/hooks/types.d.ts.map +0 -1
  121. package/dist/api/utils/generation/correlation-id.d.ts +0 -206
  122. package/dist/api/utils/generation/correlation-id.d.ts.map +0 -1
  123. package/dist/api/utils/generation/id-generator.d.ts +0 -133
  124. package/dist/api/utils/generation/id-generator.d.ts.map +0 -1
  125. package/dist/api/utils/generation/request-id.d.ts +0 -106
  126. package/dist/api/utils/generation/request-id.d.ts.map +0 -1
@@ -5,7 +5,7 @@
5
5
  import type { Campaign, CampaignFilters } from '@plyaz/types/api';
6
6
  import type { ServiceOptions } from '@plyaz/types/api';
7
7
  import type { EndpointsList } from '@/api/endpoints';
8
- import type { QueryKey, UseQueryResult, ApiQueryOptions } from '../../../hooks/types';
8
+ import type { QueryKey, UseQueryResult, ApiQueryOptions } from '@plyaz/types/api';
9
9
  /**
10
10
  * Hook for fetching campaign list with optional filters
11
11
  *
@@ -1 +1 @@
1
- {"version":3,"file":"useCampaigns.d.ts","sourceRoot":"","sources":["../../../../../src/api/services/campaigns/GET/useCampaigns.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEtF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,YAAY,CAAC,UAAU,GAAG,aAAa,EACrD,QAAQ,EAAE,QAAQ,EAClB,OAAO,CAAC,EAAE,eAAe,EACzB,cAAc,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,EAC3C,YAAY,CAAC,EAAE,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,EAAE,WAAW,GAAG,WAAW,CAAC,GAC1E,cAAc,CAAC,QAAQ,EAAE,CAAC,CAW5B"}
1
+ {"version":3,"file":"useCampaigns.d.ts","sourceRoot":"","sources":["../../../../../src/api/services/campaigns/GET/useCampaigns.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAElF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,YAAY,CAAC,UAAU,GAAG,aAAa,EACrD,QAAQ,EAAE,QAAQ,EAClB,OAAO,CAAC,EAAE,eAAe,EACzB,cAAc,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,EAC3C,YAAY,CAAC,EAAE,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,EAAE,WAAW,GAAG,WAAW,CAAC,GAC1E,cAAc,CAAC,QAAQ,EAAE,CAAC,CAW5B"}
@@ -3,16 +3,9 @@
3
3
  * Provides optimistic updates and cache invalidation
4
4
  */
5
5
  import { createApiMutation } from '../../../hooks/factories';
6
- import type { Campaign, UpdateCampaignDto } from '@plyaz/types/api';
7
6
  import type { ServiceOptions } from '@plyaz/types/api';
7
+ import type { Campaign, UpdateCampaignParams } from '@plyaz/types/api';
8
8
  import type { EndpointsList } from '@/api/endpoints';
9
- /**
10
- * Parameters for update campaign mutation
11
- */
12
- interface UpdateCampaignParams {
13
- campaignId: string;
14
- data: UpdateCampaignDto;
15
- }
16
9
  /**
17
10
  * Hook for updating campaigns
18
11
  *
@@ -34,5 +27,4 @@ interface UpdateCampaignParams {
34
27
  * ```
35
28
  */
36
29
  export declare function useUpdateCampaign<TEndpoints = EndpointsList>(serviceOptions?: ServiceOptions<TEndpoints>, mutationOptions?: Parameters<ReturnType<typeof createApiMutation<Campaign, Error, UpdateCampaignParams, unknown, TEndpoints>>>[1]): ReturnType<ReturnType<typeof createApiMutation<Campaign, Error, UpdateCampaignParams, unknown, TEndpoints>>>;
37
- export {};
38
30
  //# sourceMappingURL=useUpdateCampaign.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useUpdateCampaign.d.ts","sourceRoot":"","sources":["../../../../../src/api/services/campaigns/PUT/useUpdateCampaign.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD;;GAEG;AACH,UAAU,oBAAoB;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,GAAG,aAAa,EAC1D,cAAc,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,EAC3C,eAAe,CAAC,EAAE,UAAU,CAC1B,UAAU,CAAC,OAAO,iBAAiB,CAAC,QAAQ,EAAE,KAAK,EAAE,oBAAoB,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CACjG,CAAC,CAAC,CAAC,GACH,UAAU,CACX,UAAU,CAAC,OAAO,iBAAiB,CAAC,QAAQ,EAAE,KAAK,EAAE,oBAAoB,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CACjG,CAwBA"}
1
+ {"version":3,"file":"useUpdateCampaign.d.ts","sourceRoot":"","sources":["../../../../../src/api/services/campaigns/PUT/useUpdateCampaign.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,GAAG,aAAa,EAC1D,cAAc,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,EAC3C,eAAe,CAAC,EAAE,UAAU,CAC1B,UAAU,CAAC,OAAO,iBAAiB,CAAC,QAAQ,EAAE,KAAK,EAAE,oBAAoB,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CACjG,CAAC,CAAC,CAAC,GACH,UAAU,CACX,UAAU,CAAC,OAAO,iBAAiB,CAAC,QAAQ,EAAE,KAAK,EAAE,oBAAoB,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CACjG,CAwBA"}
@@ -4,4 +4,5 @@
4
4
  */
5
5
  export { setDefaultApiClient, getDefaultApiClient } from './clients';
6
6
  export * from './campaigns';
7
+ export * from './infobip';
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/services/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAGrE,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/services/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAGrE,cAAc,aAAa,CAAC;AAG5B,cAAc,WAAW,CAAC"}
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Get Email Logs via Infobip Service
3
+ * Retrieves email logs for monitoring and debugging
4
+ *
5
+ * @see https://www.infobip.com/docs/api/channels/email/get-email-logs
6
+ */
7
+ import type { ServiceOptions } from '@plyaz/types/api';
8
+ import type { EndpointsList } from '@/api/endpoints';
9
+ import type { FetchResponse } from 'fetchff';
10
+ import type { InfobipGetEmailLogsParams } from '@plyaz/types/api';
11
+ /**
12
+ * Get email logs from Infobip
13
+ * Uses endpoint: GET /email/1/logs
14
+ *
15
+ * @param params - Query parameters for filtering logs
16
+ * @param options - Optional service options (client override, config overrides)
17
+ * @returns Promise<InfobipEmailLogsResponse>
18
+ *
19
+ * @example
20
+ * ```typescript
21
+ * // Get recent logs (limited by default limit)
22
+ * const logs = await fetchInfobipEmailLogs();
23
+ *
24
+ * // Get logs for specific time range
25
+ * const logs = await fetchInfobipEmailLogs({
26
+ * from: '2025-01-01T00:00:00.000Z',
27
+ * to: '2025-01-31T23:59:59.999Z',
28
+ * limit: 100,
29
+ * });
30
+ *
31
+ * // Get logs for specific bulk
32
+ * const logs = await fetchInfobipEmailLogs({
33
+ * bulkId: 'bulk-123',
34
+ * });
35
+ *
36
+ * // Get logs for specific message
37
+ * const logs = await fetchInfobipEmailLogs({
38
+ * messageId: 'msg-456',
39
+ * });
40
+ *
41
+ * // With longer cache time
42
+ * const logs = await fetchInfobipEmailLogs(params, {
43
+ * apiConfig: { cacheTime: 120 }, // Cache for 2 minutes
44
+ * });
45
+ * ```
46
+ *
47
+ * @throws {ApiPackageError} When the request fails
48
+ */
49
+ export declare function fetchInfobipEmailLogs<TEndpoints = EndpointsList>(params?: InfobipGetEmailLogsParams, options?: ServiceOptions<TEndpoints>): Promise<FetchResponse>;
50
+ //# sourceMappingURL=fetchEmailLogs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchEmailLogs.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/infobip/email/GET/fetchEmailLogs.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAsB,qBAAqB,CAAC,UAAU,GAAG,aAAa,EACpE,MAAM,CAAC,EAAE,yBAAyB,EAClC,OAAO,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GACnC,OAAO,CAAC,aAAa,CAAC,CAuBxB"}
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Get Email Delivery Reports via Infobip Service
3
+ * Retrieves delivery reports for sent emails
4
+ *
5
+ * @see https://www.infobip.com/docs/api/channels/email/get-email-delivery-reports
6
+ */
7
+ import type { ServiceOptions } from '@plyaz/types/api';
8
+ import type { EndpointsList } from '@/api/endpoints';
9
+ import type { FetchResponse } from 'fetchff';
10
+ import type { InfobipGetEmailReportsParams } from '@plyaz/types/api';
11
+ /**
12
+ * Get email delivery reports from Infobip
13
+ * Uses endpoint: GET /email/4/reports
14
+ *
15
+ * @param params - Query parameters for filtering reports
16
+ * @param options - Optional service options (client override, config overrides)
17
+ * @returns Promise<InfobipEmailReportsResponse>
18
+ *
19
+ * @example
20
+ * ```typescript
21
+ * // Get all reports (limited by default limit)
22
+ * const reports = await fetchInfobipEmailReports();
23
+ *
24
+ * // Get reports for specific bulk
25
+ * const reports = await fetchInfobipEmailReports({
26
+ * bulkId: 'bulk-123',
27
+ * limit: 100,
28
+ * });
29
+ *
30
+ * // Get report for specific message
31
+ * const reports = await fetchInfobipEmailReports({
32
+ * messageId: 'msg-456',
33
+ * });
34
+ *
35
+ * // With custom caching
36
+ * const reports = await fetchInfobipEmailReports(params, {
37
+ * apiConfig: { cacheTime: 60 }, // Cache for 1 minute
38
+ * });
39
+ * ```
40
+ *
41
+ * @throws {ApiPackageError} When the request fails
42
+ */
43
+ export declare function fetchInfobipEmailReports<TEndpoints = EndpointsList>(params?: InfobipGetEmailReportsParams, options?: ServiceOptions<TEndpoints>): Promise<FetchResponse>;
44
+ //# sourceMappingURL=fetchEmailReports.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchEmailReports.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/infobip/email/GET/fetchEmailReports.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAsB,wBAAwB,CAAC,UAAU,GAAG,aAAa,EACvE,MAAM,CAAC,EAAE,4BAA4B,EACrC,OAAO,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GACnC,OAAO,CAAC,aAAa,CAAC,CAuBxB"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Get Bulk Status via Infobip Service
3
+ * Retrieves status of a scheduled email bulk
4
+ *
5
+ * @see https://www.infobip.com/docs/api/channels/email/email-message-scheduling
6
+ */
7
+ import type { ServiceOptions } from '@plyaz/types/api';
8
+ import type { EndpointsList } from '@/api/endpoints';
9
+ import type { FetchResponse } from 'fetchff';
10
+ import type { InfobipGetScheduledEmailStatusesParams } from '@plyaz/types/api';
11
+ /**
12
+ * Get scheduled email statuses from Infobip
13
+ * Uses endpoint: GET /email/1/bulks/status
14
+ *
15
+ * @param params - Query parameters (bulkId required)
16
+ * @param options - Optional service options
17
+ * @returns Promise<FetchResponse> with InfobipGetScheduledEmailStatusesResponse
18
+ *
19
+ * @example
20
+ * ```typescript
21
+ * const status = await fetchInfobipScheduledEmailStatuses({
22
+ * bulkId: 'bulk-123'
23
+ * });
24
+ * console.log(status.data.status); // 'PENDING', 'PROCESSING', etc.
25
+ * ```
26
+ */
27
+ export declare function fetchInfobipScheduledEmailStatuses<TEndpoints = EndpointsList>(params: InfobipGetScheduledEmailStatusesParams, options?: ServiceOptions<TEndpoints>): Promise<FetchResponse>;
28
+ //# sourceMappingURL=fetchScheduledEmailStatuses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchScheduledEmailStatuses.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/infobip/email/GET/fetchScheduledEmailStatuses.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,kBAAkB,CAAC;AAE/E;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,kCAAkC,CAAC,UAAU,GAAG,aAAa,EACjF,MAAM,EAAE,sCAAsC,EAC9C,OAAO,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GACnC,OAAO,CAAC,aAAa,CAAC,CAuBxB"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Get Scheduled Email Bulks via Infobip Service
3
+ * Retrieves information about scheduled email bulks
4
+ *
5
+ * @see https://www.infobip.com/docs/api/channels/email/email-message-scheduling
6
+ */
7
+ import type { ServiceOptions } from '@plyaz/types/api';
8
+ import type { EndpointsList } from '@/api/endpoints';
9
+ import type { FetchResponse } from 'fetchff';
10
+ import type { InfobipGetScheduledEmailsParams } from '@plyaz/types/api';
11
+ /**
12
+ * Get scheduled email bulks from Infobip
13
+ * Uses endpoint: GET /email/1/bulks
14
+ *
15
+ * @param params - Query parameters (bulkId required)
16
+ * @param options - Optional service options
17
+ * @returns Promise<FetchResponse> with InfobipGetScheduledEmailsResponse
18
+ *
19
+ * @example
20
+ * ```typescript
21
+ * const bulkInfo = await fetchInfobipScheduledEmails({
22
+ * bulkId: 'bulk-123'
23
+ * });
24
+ * ```
25
+ */
26
+ export declare function fetchInfobipScheduledEmails<TEndpoints = EndpointsList>(params: InfobipGetScheduledEmailsParams, options?: ServiceOptions<TEndpoints>): Promise<FetchResponse>;
27
+ //# sourceMappingURL=fetchScheduledEmails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchScheduledEmails.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/infobip/email/GET/fetchScheduledEmails.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAC;AAExE;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,2BAA2B,CAAC,UAAU,GAAG,aAAa,EAC1E,MAAM,EAAE,+BAA+B,EACvC,OAAO,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GACnC,OAAO,CAAC,aAAa,CAAC,CAuBxB"}
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Get Email Validation Results via Infobip Service
3
+ * Retrieve results of bulk email validation requests
4
+ *
5
+ * @see https://www.infobip.com/docs/api/channels/email/validate-email-addresses
6
+ */
7
+ import type { ServiceOptions } from '@plyaz/types/api';
8
+ import type { EndpointsList } from '@/api/endpoints';
9
+ import type { FetchResponse } from 'fetchff';
10
+ import type { InfobipGetValidationsParams } from '@plyaz/types/api';
11
+ /**
12
+ * Get validation results via Infobip
13
+ * Uses endpoint: GET /email/2/validations
14
+ *
15
+ * @param params - Query parameters for filtering validation results
16
+ * @param options - Optional service options (client override, config overrides)
17
+ * @returns Promise<FetchResponse> with InfobipGetValidationsResponse
18
+ *
19
+ * @example
20
+ * ```typescript
21
+ * // Get validation results by request ID
22
+ * const { data } = await fetchInfobipValidations({
23
+ * validationRequestId: '2034072219640523000',
24
+ * });
25
+ *
26
+ * console.log(data.results); // Array of validation results
27
+ *
28
+ * // Filter by validity status
29
+ * const validOnly = await fetchInfobipValidations({
30
+ * validMailbox: true,
31
+ * validSyntax: true,
32
+ * });
33
+ *
34
+ * // Filter by risk level and other criteria
35
+ * const filtered = await fetchInfobipValidations({
36
+ * risk: 'LOW',
37
+ * disposable: false,
38
+ * roleBased: false,
39
+ * catchAll: false,
40
+ * });
41
+ *
42
+ * // Date range filtering
43
+ * const recent = await fetchInfobipValidations({
44
+ * validatedDateFrom: '2025-03-01T12:03:15.120Z',
45
+ * validatedDateTo: '2025-03-04T15:02:11.400Z',
46
+ * });
47
+ *
48
+ * // Pagination support
49
+ * const page1 = await fetchInfobipValidations({
50
+ * size: 100,
51
+ * });
52
+ *
53
+ * const page2 = await fetchInfobipValidations({
54
+ * cursor: page1.data.cursor,
55
+ * size: 100,
56
+ * });
57
+ * ```
58
+ */
59
+ export declare function fetchInfobipValidations<TEndpoints = EndpointsList>(params?: InfobipGetValidationsParams, options?: ServiceOptions<TEndpoints>): Promise<FetchResponse>;
60
+ //# sourceMappingURL=fetchValidations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchValidations.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/infobip/email/GET/fetchValidations.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAsB,uBAAuB,CAAC,UAAU,GAAG,aAAa,EACtE,MAAM,CAAC,EAAE,2BAA2B,EACpC,OAAO,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GACnC,OAAO,CAAC,aAAa,CAAC,CAwBxB"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Infobip Email GET Services
3
+ * Exports all GET-based email services
4
+ */
5
+ export { fetchInfobipEmailReports } from './fetchEmailReports';
6
+ export { fetchInfobipEmailLogs } from './fetchEmailLogs';
7
+ export { fetchInfobipScheduledEmails } from './fetchScheduledEmails';
8
+ export { fetchInfobipScheduledEmailStatuses } from './fetchScheduledEmailStatuses';
9
+ export { fetchInfobipValidations } from './fetchValidations';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/infobip/email/GET/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,kCAAkC,EAAE,MAAM,+BAA+B,CAAC;AACnF,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Bulk Validate Emails via Infobip Service
3
+ * Submit multiple email addresses for validation (async operation)
4
+ *
5
+ * @see https://www.infobip.com/docs/api/channels/email/validate-email-addresses
6
+ */
7
+ import type { ServiceOptions } from '@plyaz/types/api';
8
+ import type { EndpointsList } from '@/api/endpoints';
9
+ import type { FetchResponse } from 'fetchff';
10
+ import type { InfobipBulkValidateEmailsRequest } from '@plyaz/types/api';
11
+ /**
12
+ * Bulk validate email addresses via Infobip
13
+ * Uses endpoint: POST /email/2/validations
14
+ *
15
+ * This is an async operation that returns 202 with a validation request ID.
16
+ * Use getValidations() to retrieve results.
17
+ *
18
+ * @param payload - Bulk validation request with email addresses
19
+ * @param options - Optional service options (client override, config overrides)
20
+ * @returns Promise<FetchResponse> with InfobipBulkValidateEmailsResponse (202)
21
+ *
22
+ * @example
23
+ * ```typescript
24
+ * // Submit bulk validation request
25
+ * const { data } = await bulkValidateInfobipEmails({
26
+ * destinations: [
27
+ * { destination: 'user1@example.com' },
28
+ * { destination: 'user2@example.com' },
29
+ * { destination: 'invalid@invalid' },
30
+ * ],
31
+ * });
32
+ *
33
+ * console.log(data.validationRequestId); // Use this to fetch results
34
+ *
35
+ * // With custom validation request ID
36
+ * const result = await bulkValidateInfobipEmails({
37
+ * destinations: [{ destination: 'user@example.com' }],
38
+ * validationRequestId: 'custom-request-id-123',
39
+ * });
40
+ *
41
+ * // Later, retrieve results
42
+ * const results = await fetchInfobipValidations({
43
+ * validationRequestId: data.validationRequestId,
44
+ * });
45
+ * ```
46
+ *
47
+ * @throws {ApiPackageError} When the request fails or validation errors occur
48
+ */
49
+ export declare function bulkValidateInfobipEmails<TEndpoints = EndpointsList>(payload: InfobipBulkValidateEmailsRequest, options?: ServiceOptions<TEndpoints>): Promise<FetchResponse>;
50
+ //# sourceMappingURL=bulkValidateEmails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bulkValidateEmails.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/infobip/email/POST/bulkValidateEmails.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,kBAAkB,CAAC;AAEzE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,wBAAsB,yBAAyB,CAAC,UAAU,GAAG,aAAa,EACxE,OAAO,EAAE,gCAAgC,EACzC,OAAO,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GACnC,OAAO,CAAC,aAAa,CAAC,CA2CxB"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Infobip Email POST Services
3
+ * Exports all POST-based email services
4
+ */
5
+ export { sendInfobipEmail } from './sendEmail';
6
+ export { sendInfobipAdvancedEmail } from './sendAdvancedEmail';
7
+ export { validateInfobipEmail } from './validateEmail';
8
+ export { bulkValidateInfobipEmails } from './bulkValidateEmails';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/infobip/email/POST/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Send Advanced Email via Infobip Service
3
+ * Sends transactional or promotional emails using Infobip Advanced Email API v4
4
+ *
5
+ * @see https://www.infobip.com/docs/api/channels/email/send-email-messages
6
+ */
7
+ import type { ServiceOptions } from '@plyaz/types/api';
8
+ import type { EndpointsList } from '@/api/endpoints';
9
+ import type { FetchResponse } from 'fetchff';
10
+ import type { InfobipSendAdvancedEmailRequest } from '@plyaz/types/api';
11
+ /**
12
+ * Send advanced email via Infobip
13
+ * Uses endpoint: POST /email/4/send
14
+ *
15
+ * This is the advanced email API that supports:
16
+ * - Multiple recipients with per-recipient placeholders
17
+ * - Proper attachment objects with content, contentType, and fileName
18
+ * - Inline images
19
+ * - Webhooks per message
20
+ * - Advanced tracking options
21
+ *
22
+ * @param payload - Advanced email send request payload (JSON format)
23
+ * @param options - Optional service options (client override, config overrides)
24
+ * @returns Promise<FetchResponse> with InfobipSendAdvancedEmailResponse
25
+ *
26
+ * @example
27
+ * ```typescript
28
+ * // Basic email
29
+ * const result = await sendInfobipAdvancedEmail({
30
+ * messages: [{
31
+ * sender: 'noreply@example.com',
32
+ * destinations: [{ destination: 'user@example.com' }],
33
+ * content: {
34
+ * subject: 'Welcome!',
35
+ * text: 'Welcome to our platform',
36
+ * },
37
+ * }],
38
+ * });
39
+ *
40
+ * // Email with attachments
41
+ * const result = await sendInfobipAdvancedEmail({
42
+ * messages: [{
43
+ * sender: 'noreply@example.com',
44
+ * destinations: [{ destination: 'user@example.com' }],
45
+ * content: {
46
+ * subject: 'Your Invoice',
47
+ * html: '<p>Please find your invoice attached.</p>',
48
+ * attachments: [{
49
+ * type: 'binary',
50
+ * content: base64FileContent,
51
+ * contentType: 'application/pdf',
52
+ * fileName: 'invoice.pdf',
53
+ * }],
54
+ * },
55
+ * webhooks: {
56
+ * delivery: {
57
+ * url: 'https://example.com/webhooks/infobip/email',
58
+ * },
59
+ * },
60
+ * }],
61
+ * });
62
+ * ```
63
+ *
64
+ * @throws {ApiPackageError} When the request fails or validation errors occur
65
+ */
66
+ export declare function sendInfobipAdvancedEmail<TEndpoints = EndpointsList>(payload: InfobipSendAdvancedEmailRequest, options?: ServiceOptions<TEndpoints>): Promise<FetchResponse>;
67
+ //# sourceMappingURL=sendAdvancedEmail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendAdvancedEmail.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/infobip/email/POST/sendAdvancedEmail.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AAEH,wBAAsB,wBAAwB,CAAC,UAAU,GAAG,aAAa,EACvE,OAAO,EAAE,+BAA+B,EACxC,OAAO,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GACnC,OAAO,CAAC,aAAa,CAAC,CA0DxB"}
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Send Email via Infobip Service
3
+ * Sends transactional or promotional emails using Infobip Email API v3
4
+ *
5
+ * @see https://www.infobip.com/docs/api/channels/email/send-fully-featured-email
6
+ */
7
+ import type { ServiceOptions } from '@plyaz/types/api';
8
+ import type { EndpointsList } from '@/api/endpoints';
9
+ import type { FetchResponse } from 'fetchff';
10
+ import type { InfobipSendEmailRequest } from '@plyaz/types/api';
11
+ /**
12
+ * Send email via Infobip
13
+ * Uses endpoint: POST /email/3/send
14
+ *
15
+ * @param payload - Email send request payload (multipart/form-data format)
16
+ * @param options - Optional service options (client override, config overrides)
17
+ * @returns Promise<FetchResponse> with InfobipSendEmailResponse
18
+ *
19
+ * @example
20
+ * ```typescript
21
+ * // Basic text email
22
+ * const result = await sendInfobipEmail({
23
+ * from: 'noreply@example.com',
24
+ * fromName: 'Example App',
25
+ * to: 'user@example.com',
26
+ * subject: 'Welcome!',
27
+ * text: 'Welcome to our platform',
28
+ * });
29
+ *
30
+ * // HTML email with tracking
31
+ * const result = await sendInfobipEmail({
32
+ * from: 'noreply@example.com',
33
+ * to: 'user@example.com',
34
+ * subject: 'Newsletter',
35
+ * html: '<h1>Hello!</h1><p>Check out our latest updates.</p>',
36
+ * track: true,
37
+ * trackClicks: true,
38
+ * trackOpens: true,
39
+ * });
40
+ *
41
+ * // Email with attachments and webhook
42
+ * const result = await sendInfobipEmail({
43
+ * from: 'noreply@example.com',
44
+ * to: 'user@example.com',
45
+ * subject: 'Your Invoice',
46
+ * html: '<p>Please find your invoice attached.</p>',
47
+ * attachment: [{
48
+ * data: base64FileContent,
49
+ * name: 'invoice.pdf',
50
+ * contentType: 'application/pdf',
51
+ * }],
52
+ * notifyUrl: 'https://example.com/webhooks/infobip/email',
53
+ * notifyContentType: 'application/json',
54
+ * });
55
+ * ```
56
+ *
57
+ * @throws {ApiPackageError} When the request fails or validation errors occur
58
+ */
59
+ export declare function sendInfobipEmail<TEndpoints = EndpointsList>(payload: InfobipSendEmailRequest, options?: ServiceOptions<TEndpoints>): Promise<FetchResponse>;
60
+ //# sourceMappingURL=sendEmail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendEmail.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/infobip/email/POST/sendEmail.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAEhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AAEH,wBAAsB,gBAAgB,CAAC,UAAU,GAAG,aAAa,EAC/D,OAAO,EAAE,uBAAuB,EAChC,OAAO,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GACnC,OAAO,CAAC,aAAa,CAAC,CAgDxB"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Validate Email via Infobip Service
3
+ * Validates email addresses using Infobip Email Validation API
4
+ *
5
+ * @see https://www.infobip.com/docs/api/channels/email/validate-email-addresses
6
+ */
7
+ import type { ServiceOptions } from '@plyaz/types/api';
8
+ import type { EndpointsList } from '@/api/endpoints';
9
+ import type { FetchResponse } from 'fetchff';
10
+ import type { InfobipValidateEmailRequest } from '@plyaz/types/api';
11
+ /**
12
+ * Validate email address via Infobip
13
+ * Uses endpoint: POST /email/2/validation
14
+ *
15
+ * @param email - Email address to validate (can be string or request object)
16
+ * @param options - Optional service options (client override, config overrides)
17
+ * @returns Promise<InfobipValidateEmailResponse>
18
+ *
19
+ * @example
20
+ * ```typescript
21
+ * // Validate single email (string)
22
+ * const result = await validateInfobipEmail('user@example.com');
23
+ * console.log(result.validMailbox); // true or false
24
+ *
25
+ * // Validate with request object
26
+ * const result = await validateInfobipEmail({
27
+ * to: 'user@example.com',
28
+ * });
29
+ *
30
+ * // With custom client and caching
31
+ * const result = await validateInfobipEmail('user@example.com', {
32
+ * apiClient: customClient,
33
+ * apiConfig: { cacheTime: 300 }, // Cache for 5 minutes
34
+ * });
35
+ * ```
36
+ *
37
+ * @throws {ApiPackageError} When the request fails or validation errors occur
38
+ */
39
+ export declare function validateInfobipEmail<TEndpoints = EndpointsList>(email: string | InfobipValidateEmailRequest, options?: ServiceOptions<TEndpoints>): Promise<FetchResponse>;
40
+ //# sourceMappingURL=validateEmail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validateEmail.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/infobip/email/POST/validateEmail.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,wBAAsB,oBAAoB,CAAC,UAAU,GAAG,aAAa,EACnE,KAAK,EAAE,MAAM,GAAG,2BAA2B,EAC3C,OAAO,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GACnC,OAAO,CAAC,aAAa,CAAC,CA6CxB"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Infobip Email PUT Services
3
+ * Exports all PUT-based email services (bulk management)
4
+ */
5
+ export { rescheduleInfobipEmails } from './rescheduleEmails';
6
+ export { updateInfobipScheduledEmailStatuses } from './updateScheduledEmailStatuses';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/infobip/email/PUT/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,mCAAmC,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Reschedule Email Bulk via Infobip Service
3
+ * Changes the scheduled send time for a bulk
4
+ *
5
+ * @see https://www.infobip.com/docs/api/channels/email/email-message-scheduling
6
+ */
7
+ import type { ServiceOptions } from '@plyaz/types/api';
8
+ import type { EndpointsList } from '@/api/endpoints';
9
+ import type { FetchResponse } from 'fetchff';
10
+ import type { InfobipRescheduleEmailsParams, InfobipRescheduleEmailsRequest } from '@plyaz/types/api';
11
+ /**
12
+ * Reschedule email bulk in Infobip
13
+ * Uses endpoint: PUT /email/1/bulks
14
+ *
15
+ * @param params - Query parameters (bulkId)
16
+ * @param payload - New sendAt time
17
+ * @param options - Optional service options
18
+ * @returns Promise<InfobipBulkInfo>
19
+ *
20
+ * @example
21
+ * ```typescript
22
+ * const result = await rescheduleInfobipEmails(
23
+ * { bulkId: 'bulk-123' },
24
+ * { sendAt: '2025-10-24T10:00:00.000Z' }
25
+ * );
26
+ * ```
27
+ */
28
+ export declare function rescheduleInfobipEmails<TEndpoints = EndpointsList>(params: InfobipRescheduleEmailsParams, payload: InfobipRescheduleEmailsRequest, options?: ServiceOptions<TEndpoints>): Promise<FetchResponse>;
29
+ //# sourceMappingURL=rescheduleEmails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rescheduleEmails.d.ts","sourceRoot":"","sources":["../../../../../../src/api/services/infobip/email/PUT/rescheduleEmails.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EACV,6BAA6B,EAC7B,8BAA8B,EAC/B,MAAM,kBAAkB,CAAC;AAE1B;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,uBAAuB,CAAC,UAAU,GAAG,aAAa,EACtE,MAAM,EAAE,6BAA6B,EACrC,OAAO,EAAE,8BAA8B,EACvC,OAAO,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GACnC,OAAO,CAAC,aAAa,CAAC,CA8BxB"}