@plyaz/api 1.7.0 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/client/clientEventManager.d.ts.map +1 -1
- package/dist/api/services/files/GET/downloadFile.d.ts.map +1 -1
- package/dist/api/services/files/GET/useDownloadFile.d.ts.map +1 -1
- package/dist/api/services/files/POST/generateDocument.d.ts.map +1 -1
- package/dist/api/services/files/POST/uploadFile.d.ts.map +1 -1
- package/dist/api/services/files/POST/uploadFiles.d.ts.map +1 -1
- package/dist/api/strategies/unified.d.ts.map +1 -1
- package/dist/entry-frontend.cjs +38 -23
- package/dist/entry-frontend.cjs.map +1 -1
- package/dist/entry-frontend.mjs +38 -23
- package/dist/entry-frontend.mjs.map +1 -1
- package/dist/index.cjs +38 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +38 -23
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/entry-frontend.mjs
CHANGED
|
@@ -16818,6 +16818,7 @@ var ClientEventManager = class _ClientEventManager {
|
|
|
16818
16818
|
/**
|
|
16819
16819
|
* Start monitoring
|
|
16820
16820
|
*/
|
|
16821
|
+
// eslint-disable-next-line complexity
|
|
16821
16822
|
startMonitoring() {
|
|
16822
16823
|
if (this.monitoringState.monitoring) return;
|
|
16823
16824
|
this.monitoringState.monitoring = true;
|
|
@@ -17224,6 +17225,24 @@ var unifiedStrategies = {
|
|
|
17224
17225
|
// Wait for network/resources
|
|
17225
17226
|
performance: "offline"
|
|
17226
17227
|
// Offline-first, maximum caching
|
|
17228
|
+
},
|
|
17229
|
+
/**
|
|
17230
|
+
* Mutation: POST/PUT/DELETE operations (uploads, creates, updates, deletes)
|
|
17231
|
+
* - NO caching (mutations should never be cached)
|
|
17232
|
+
* - Standard retry for actual failures
|
|
17233
|
+
* - NO polling (critical! - polling causes duplicate mutations)
|
|
17234
|
+
* - Realtime performance (immediate response)
|
|
17235
|
+
*
|
|
17236
|
+
* Use this for any data-modifying operation to prevent duplicate requests.
|
|
17237
|
+
*/
|
|
17238
|
+
mutation: {
|
|
17239
|
+
cache: "none",
|
|
17240
|
+
// Never cache mutations
|
|
17241
|
+
retry: "standard",
|
|
17242
|
+
// Standard retry for actual failures (not successes)
|
|
17243
|
+
// NO polling - this is critical! Polling would re-execute the mutation
|
|
17244
|
+
performance: "realtime"
|
|
17245
|
+
// Immediate response, no batching
|
|
17227
17246
|
}
|
|
17228
17247
|
};
|
|
17229
17248
|
function applyUnifiedStrategy(strategyName) {
|
|
@@ -22447,7 +22466,7 @@ __name(useCampaignParticipants, "useCampaignParticipants");
|
|
|
22447
22466
|
// src/api/services/campaigns/POST/createCampaign.ts
|
|
22448
22467
|
async function createCampaign(data, options) {
|
|
22449
22468
|
const client = options?.apiClient ?? getDefaultApiClient();
|
|
22450
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
22469
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
22451
22470
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
22452
22471
|
const updateOptions = {
|
|
22453
22472
|
strategy: "temporary",
|
|
@@ -22471,7 +22490,7 @@ async function joinCampaign(campaignId, options) {
|
|
|
22471
22490
|
API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
22472
22491
|
);
|
|
22473
22492
|
}
|
|
22474
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
22493
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
22475
22494
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
22476
22495
|
const updateOptions = {
|
|
22477
22496
|
strategy: "temporary",
|
|
@@ -22495,7 +22514,7 @@ async function leaveCampaign(campaignId, options) {
|
|
|
22495
22514
|
API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
22496
22515
|
);
|
|
22497
22516
|
}
|
|
22498
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
22517
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
22499
22518
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
22500
22519
|
const updateOptions = {
|
|
22501
22520
|
strategy: "temporary",
|
|
@@ -22577,7 +22596,7 @@ async function updateCampaign(campaignId, data, options) {
|
|
|
22577
22596
|
API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
22578
22597
|
);
|
|
22579
22598
|
}
|
|
22580
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
22599
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
22581
22600
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
22582
22601
|
const updateOptions = {
|
|
22583
22602
|
strategy: "temporary",
|
|
@@ -22622,7 +22641,7 @@ async function deleteCampaign(campaignId, options) {
|
|
|
22622
22641
|
API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
22623
22642
|
);
|
|
22624
22643
|
}
|
|
22625
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
22644
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
22626
22645
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
22627
22646
|
const updateOptions = {
|
|
22628
22647
|
strategy: "temporary",
|
|
@@ -22708,7 +22727,7 @@ async function checkFeatureFlagEnabled(payload, options) {
|
|
|
22708
22727
|
API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
22709
22728
|
);
|
|
22710
22729
|
}
|
|
22711
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
22730
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
22712
22731
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
22713
22732
|
const updateOptions = {
|
|
22714
22733
|
strategy: "temporary",
|
|
@@ -22733,7 +22752,7 @@ async function evaluateFeatureFlag(payload, options) {
|
|
|
22733
22752
|
API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
22734
22753
|
);
|
|
22735
22754
|
}
|
|
22736
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
22755
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
22737
22756
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
22738
22757
|
const updateOptions = {
|
|
22739
22758
|
strategy: "temporary",
|
|
@@ -22770,7 +22789,7 @@ __name(evaluateAllFeatureFlags, "evaluateAllFeatureFlags");
|
|
|
22770
22789
|
// src/api/services/featureFlags/POST/createFeatureFlag.ts
|
|
22771
22790
|
async function createFeatureFlag(data, options) {
|
|
22772
22791
|
const client = options?.apiClient ?? getDefaultApiClient();
|
|
22773
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
22792
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
22774
22793
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
22775
22794
|
const updateOptions = {
|
|
22776
22795
|
strategy: "temporary",
|
|
@@ -22794,7 +22813,7 @@ async function setFeatureFlagOverride(payload, options) {
|
|
|
22794
22813
|
API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
22795
22814
|
);
|
|
22796
22815
|
}
|
|
22797
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
22816
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
22798
22817
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
22799
22818
|
const updateOptions = {
|
|
22800
22819
|
strategy: "temporary",
|
|
@@ -22813,7 +22832,7 @@ __name(setFeatureFlagOverride, "setFeatureFlagOverride");
|
|
|
22813
22832
|
// src/api/services/featureFlags/POST/refreshFeatureFlagCache.ts
|
|
22814
22833
|
async function refreshFeatureFlagCache(options) {
|
|
22815
22834
|
const client = options?.apiClient ?? getDefaultApiClient();
|
|
22816
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
22835
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
22817
22836
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
22818
22837
|
const updateOptions = {
|
|
22819
22838
|
strategy: "temporary",
|
|
@@ -22857,7 +22876,7 @@ async function updateFeatureFlag(payload, options) {
|
|
|
22857
22876
|
API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
22858
22877
|
);
|
|
22859
22878
|
}
|
|
22860
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
22879
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
22861
22880
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
22862
22881
|
const updateOptions = {
|
|
22863
22882
|
strategy: "temporary",
|
|
@@ -22893,7 +22912,7 @@ async function deleteFeatureFlag(key, options) {
|
|
|
22893
22912
|
API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
22894
22913
|
);
|
|
22895
22914
|
}
|
|
22896
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
22915
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
22897
22916
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
22898
22917
|
const updateOptions = {
|
|
22899
22918
|
strategy: "temporary",
|
|
@@ -22917,7 +22936,7 @@ async function removeFeatureFlagOverride(key, options) {
|
|
|
22917
22936
|
API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
22918
22937
|
);
|
|
22919
22938
|
}
|
|
22920
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
22939
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
22921
22940
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
22922
22941
|
const updateOptions = {
|
|
22923
22942
|
strategy: "temporary",
|
|
@@ -23664,7 +23683,7 @@ async function downloadFile(request, options) {
|
|
|
23664
23683
|
);
|
|
23665
23684
|
}
|
|
23666
23685
|
const serviceDefaults = {
|
|
23667
|
-
unifiedStrategy: "
|
|
23686
|
+
unifiedStrategy: "mutation",
|
|
23668
23687
|
timeout: 6e4
|
|
23669
23688
|
// 60 seconds for downloads
|
|
23670
23689
|
};
|
|
@@ -23719,11 +23738,7 @@ __name(useGetFile, "useGetFile");
|
|
|
23719
23738
|
|
|
23720
23739
|
// src/api/services/files/GET/useDownloadFile.ts
|
|
23721
23740
|
function useDownloadFile(queryKey, request, serviceOptions, queryOptions) {
|
|
23722
|
-
return createApiQuery(downloadFile,
|
|
23723
|
-
apiConfig: {
|
|
23724
|
-
unifiedStrategy: "background"
|
|
23725
|
-
}
|
|
23726
|
-
})(queryKey, request, serviceOptions, queryOptions);
|
|
23741
|
+
return createApiQuery(downloadFile)(queryKey, request, serviceOptions, queryOptions);
|
|
23727
23742
|
}
|
|
23728
23743
|
__name(useDownloadFile, "useDownloadFile");
|
|
23729
23744
|
|
|
@@ -23741,7 +23756,7 @@ __name(useGetSignedUrl, "useGetSignedUrl");
|
|
|
23741
23756
|
async function uploadFile(data, options) {
|
|
23742
23757
|
const client = options?.apiClient ?? getDefaultApiClient();
|
|
23743
23758
|
const serviceDefaults = {
|
|
23744
|
-
unifiedStrategy: "
|
|
23759
|
+
unifiedStrategy: "mutation",
|
|
23745
23760
|
timeout: 6e4
|
|
23746
23761
|
// 60 seconds for uploads
|
|
23747
23762
|
};
|
|
@@ -23763,7 +23778,7 @@ __name(uploadFile, "uploadFile");
|
|
|
23763
23778
|
async function uploadFiles(data, options) {
|
|
23764
23779
|
const client = options?.apiClient ?? getDefaultApiClient();
|
|
23765
23780
|
const serviceDefaults = {
|
|
23766
|
-
unifiedStrategy: "
|
|
23781
|
+
unifiedStrategy: "mutation",
|
|
23767
23782
|
timeout: 12e4
|
|
23768
23783
|
// 2 minutes for bulk uploads
|
|
23769
23784
|
};
|
|
@@ -23785,7 +23800,7 @@ __name(uploadFiles, "uploadFiles");
|
|
|
23785
23800
|
async function generateDocument(data, options) {
|
|
23786
23801
|
const client = options?.apiClient ?? getDefaultApiClient();
|
|
23787
23802
|
const serviceDefaults = {
|
|
23788
|
-
unifiedStrategy: "
|
|
23803
|
+
unifiedStrategy: "mutation",
|
|
23789
23804
|
timeout: 3e4
|
|
23790
23805
|
// 30 seconds for document generation
|
|
23791
23806
|
};
|
|
@@ -23845,7 +23860,7 @@ async function deleteFile(request, options) {
|
|
|
23845
23860
|
API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
23846
23861
|
);
|
|
23847
23862
|
}
|
|
23848
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
23863
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
23849
23864
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
23850
23865
|
const updateOptions = {
|
|
23851
23866
|
strategy: "temporary",
|