@defoai/ads-client 1.4.0 → 1.4.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.
Files changed (129) hide show
  1. package/dist/index.cjs +2914 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +2226 -0
  4. package/dist/index.d.ts +2061 -12
  5. package/dist/index.js +2892 -198
  6. package/dist/index.js.map +1 -0
  7. package/package.json +10 -7
  8. package/dist/generated/apis/AdAssetsApi.d.ts +0 -140
  9. package/dist/generated/apis/AdAssetsApi.js +0 -173
  10. package/dist/generated/apis/AdGroupsApi.d.ts +0 -165
  11. package/dist/generated/apis/AdGroupsApi.js +0 -205
  12. package/dist/generated/apis/AdsApi.d.ts +0 -160
  13. package/dist/generated/apis/AdsApi.js +0 -200
  14. package/dist/generated/apis/AssetsApi.d.ts +0 -162
  15. package/dist/generated/apis/AssetsApi.js +0 -203
  16. package/dist/generated/apis/CampaignAssetsApi.d.ts +0 -136
  17. package/dist/generated/apis/CampaignAssetsApi.js +0 -167
  18. package/dist/generated/apis/CampaignsApi.d.ts +0 -169
  19. package/dist/generated/apis/CampaignsApi.js +0 -206
  20. package/dist/generated/apis/KeywordsApi.d.ts +0 -160
  21. package/dist/generated/apis/KeywordsApi.js +0 -200
  22. package/dist/generated/apis/MediaApi.d.ts +0 -50
  23. package/dist/generated/apis/MediaApi.js +0 -51
  24. package/dist/generated/apis/MetaApi.d.ts +0 -86
  25. package/dist/generated/apis/MetaApi.js +0 -104
  26. package/dist/generated/apis/ReportsApi.d.ts +0 -50
  27. package/dist/generated/apis/ReportsApi.js +0 -51
  28. package/dist/generated/apis/SitesApi.d.ts +0 -163
  29. package/dist/generated/apis/SitesApi.js +0 -202
  30. package/dist/generated/apis/SyncApi.d.ts +0 -199
  31. package/dist/generated/apis/SyncApi.js +0 -241
  32. package/dist/generated/apis/index.d.ts +0 -12
  33. package/dist/generated/apis/index.js +0 -14
  34. package/dist/generated/index.d.ts +0 -3
  35. package/dist/generated/index.js +0 -5
  36. package/dist/generated/models/AdAssetCreate.d.ts +0 -83
  37. package/dist/generated/models/AdAssetCreate.js +0 -76
  38. package/dist/generated/models/AdCreate.d.ts +0 -147
  39. package/dist/generated/models/AdCreate.js +0 -97
  40. package/dist/generated/models/AdGroupAudience.d.ts +0 -44
  41. package/dist/generated/models/AdGroupAudience.js +0 -49
  42. package/dist/generated/models/AdGroupCreate.d.ts +0 -104
  43. package/dist/generated/models/AdGroupCreate.js +0 -74
  44. package/dist/generated/models/AdGroupUpdate.d.ts +0 -104
  45. package/dist/generated/models/AdGroupUpdate.js +0 -70
  46. package/dist/generated/models/AdUpdate.d.ts +0 -147
  47. package/dist/generated/models/AdUpdate.js +0 -85
  48. package/dist/generated/models/AssetCreate.d.ts +0 -117
  49. package/dist/generated/models/AssetCreate.js +0 -80
  50. package/dist/generated/models/AssetUpdate.d.ts +0 -79
  51. package/dist/generated/models/AssetUpdate.js +0 -61
  52. package/dist/generated/models/BiddingStrategy.d.ts +0 -70
  53. package/dist/generated/models/BiddingStrategy.js +0 -62
  54. package/dist/generated/models/CampaignAdScheduleField.d.ts +0 -12
  55. package/dist/generated/models/CampaignAdScheduleField.js +0 -4
  56. package/dist/generated/models/CampaignAssetCreate.d.ts +0 -57
  57. package/dist/generated/models/CampaignAssetCreate.js +0 -63
  58. package/dist/generated/models/CampaignCreate.d.ts +0 -161
  59. package/dist/generated/models/CampaignCreate.js +0 -102
  60. package/dist/generated/models/CampaignTargeting.d.ts +0 -50
  61. package/dist/generated/models/CampaignTargeting.js +0 -47
  62. package/dist/generated/models/CampaignUpdate.d.ts +0 -161
  63. package/dist/generated/models/CampaignUpdate.js +0 -98
  64. package/dist/generated/models/CampaignsListCursorParameter.d.ts +0 -26
  65. package/dist/generated/models/CampaignsListCursorParameter.js +0 -31
  66. package/dist/generated/models/ErrorEnvelope.d.ts +0 -33
  67. package/dist/generated/models/ErrorEnvelope.js +0 -44
  68. package/dist/generated/models/ErrorEnvelopeError.d.ts +0 -44
  69. package/dist/generated/models/ErrorEnvelopeError.js +0 -49
  70. package/dist/generated/models/KeywordCreate.d.ts +0 -86
  71. package/dist/generated/models/KeywordCreate.js +0 -73
  72. package/dist/generated/models/KeywordUpdate.d.ts +0 -86
  73. package/dist/generated/models/KeywordUpdate.js +0 -69
  74. package/dist/generated/models/Location.d.ts +0 -61
  75. package/dist/generated/models/Location.js +0 -61
  76. package/dist/generated/models/NegativeKeywordEntry.d.ts +0 -47
  77. package/dist/generated/models/NegativeKeywordEntry.js +0 -55
  78. package/dist/generated/models/ScheduleWindow.d.ts +0 -95
  79. package/dist/generated/models/ScheduleWindow.js +0 -87
  80. package/dist/generated/models/SiteCreate.d.ts +0 -99
  81. package/dist/generated/models/SiteCreate.js +0 -78
  82. package/dist/generated/models/SiteCreateSeoKeywords.d.ts +0 -11
  83. package/dist/generated/models/SiteCreateSeoKeywords.js +0 -12
  84. package/dist/generated/models/SiteCreateTargetGroups.d.ts +0 -11
  85. package/dist/generated/models/SiteCreateTargetGroups.js +0 -12
  86. package/dist/generated/models/SiteLinkEntry.d.ts +0 -50
  87. package/dist/generated/models/SiteLinkEntry.js +0 -47
  88. package/dist/generated/models/SiteUpdate.d.ts +0 -99
  89. package/dist/generated/models/SiteUpdate.js +0 -74
  90. package/dist/generated/models/Sitelink.d.ts +0 -64
  91. package/dist/generated/models/Sitelink.js +0 -51
  92. package/dist/generated/models/StructuredSchedule.d.ts +0 -39
  93. package/dist/generated/models/StructuredSchedule.js +0 -46
  94. package/dist/generated/models/StructuredSnippet.d.ts +0 -38
  95. package/dist/generated/models/StructuredSnippet.js +0 -47
  96. package/dist/generated/models/SuccessEnvelope.d.ts +0 -39
  97. package/dist/generated/models/SuccessEnvelope.js +0 -46
  98. package/dist/generated/models/SuccessEnvelopeMeta.d.ts +0 -39
  99. package/dist/generated/models/SuccessEnvelopeMeta.js +0 -44
  100. package/dist/generated/models/SuccessEnvelopeMetaNextCursor.d.ts +0 -26
  101. package/dist/generated/models/SuccessEnvelopeMetaNextCursor.js +0 -31
  102. package/dist/generated/models/SyncCampaignDetail.d.ts +0 -88
  103. package/dist/generated/models/SyncCampaignDetail.js +0 -71
  104. package/dist/generated/models/SyncPlan.d.ts +0 -35
  105. package/dist/generated/models/SyncPlan.js +0 -43
  106. package/dist/generated/models/SyncPlanPlatformsValue.d.ts +0 -33
  107. package/dist/generated/models/SyncPlanPlatformsValue.js +0 -42
  108. package/dist/generated/models/SyncPlanPlatformsValueTotals.d.ts +0 -44
  109. package/dist/generated/models/SyncPlanPlatformsValueTotals.js +0 -45
  110. package/dist/generated/models/SyncProgress.d.ts +0 -57
  111. package/dist/generated/models/SyncProgress.js +0 -50
  112. package/dist/generated/models/SyncRecord.d.ts +0 -103
  113. package/dist/generated/models/SyncRecord.js +0 -73
  114. package/dist/generated/models/SyncRecordErrorsInner.d.ts +0 -38
  115. package/dist/generated/models/SyncRecordErrorsInner.js +0 -43
  116. package/dist/generated/models/SyncTotals.d.ts +0 -68
  117. package/dist/generated/models/SyncTotals.js +0 -53
  118. package/dist/generated/models/SyncTriggerRequest.d.ts +0 -39
  119. package/dist/generated/models/SyncTriggerRequest.js +0 -44
  120. package/dist/generated/models/SyncTriggerRequestOptions.d.ts +0 -56
  121. package/dist/generated/models/SyncTriggerRequestOptions.js +0 -49
  122. package/dist/generated/models/SyncTriggerResponse.d.ts +0 -59
  123. package/dist/generated/models/SyncTriggerResponse.js +0 -55
  124. package/dist/generated/models/SyncUnlinkRequest.d.ts +0 -44
  125. package/dist/generated/models/SyncUnlinkRequest.js +0 -47
  126. package/dist/generated/models/index.d.ts +0 -45
  127. package/dist/generated/models/index.js +0 -47
  128. package/dist/generated/runtime.d.ts +0 -182
  129. package/dist/generated/runtime.js +0 -318
@@ -1,71 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Defo Ads Public API
5
- * Stable public API for managing campaigns, ads, keywords, and sites.
6
- *
7
- * The version of the OpenAPI document: 1.4.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- /**
15
- * @export
16
- */
17
- export const SyncCampaignDetailPhaseEnum = {
18
- remove: 'remove',
19
- export: 'export',
20
- import: 'import'
21
- };
22
- /**
23
- * @export
24
- */
25
- export const SyncCampaignDetailStatusEnum = {
26
- pending: 'pending',
27
- in_progress: 'in_progress',
28
- completed: 'completed',
29
- failed: 'failed',
30
- skipped: 'skipped'
31
- };
32
- /**
33
- * Check if a given object implements the SyncCampaignDetail interface.
34
- */
35
- export function instanceOfSyncCampaignDetail(value) {
36
- return true;
37
- }
38
- export function SyncCampaignDetailFromJSON(json) {
39
- return SyncCampaignDetailFromJSONTyped(json, false);
40
- }
41
- export function SyncCampaignDetailFromJSONTyped(json, ignoreDiscriminator) {
42
- if (json == null) {
43
- return json;
44
- }
45
- return {
46
- 'id': json['id'] == null ? undefined : json['id'],
47
- 'name': json['name'] == null ? undefined : json['name'],
48
- 'platform': json['platform'] == null ? undefined : json['platform'],
49
- 'phase': json['phase'] == null ? undefined : json['phase'],
50
- 'status': json['status'] == null ? undefined : json['status'],
51
- 'error': json['error'] == null ? undefined : json['error'],
52
- 'processedAt': json['processedAt'] == null ? undefined : (new Date(json['processedAt'])),
53
- };
54
- }
55
- export function SyncCampaignDetailToJSON(json) {
56
- return SyncCampaignDetailToJSONTyped(json, false);
57
- }
58
- export function SyncCampaignDetailToJSONTyped(value, ignoreDiscriminator = false) {
59
- if (value == null) {
60
- return value;
61
- }
62
- return {
63
- 'id': value['id'],
64
- 'name': value['name'],
65
- 'platform': value['platform'],
66
- 'phase': value['phase'],
67
- 'status': value['status'],
68
- 'error': value['error'],
69
- 'processedAt': value['processedAt'] == null ? undefined : ((value['processedAt']).toISOString()),
70
- };
71
- }
@@ -1,35 +0,0 @@
1
- /**
2
- * Defo Ads Public API
3
- * Stable public API for managing campaigns, ads, keywords, and sites.
4
- *
5
- * The version of the OpenAPI document: 1.4.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { SyncPlanPlatformsValue } from './SyncPlanPlatformsValue';
13
- /**
14
- * Per-platform import/export/remove categorization.
15
- * @export
16
- * @interface SyncPlan
17
- */
18
- export interface SyncPlan {
19
- /**
20
- *
21
- * @type {{ [key: string]: SyncPlanPlatformsValue; }}
22
- * @memberof SyncPlan
23
- */
24
- platforms?: {
25
- [key: string]: SyncPlanPlatformsValue;
26
- };
27
- }
28
- /**
29
- * Check if a given object implements the SyncPlan interface.
30
- */
31
- export declare function instanceOfSyncPlan(value: object): value is SyncPlan;
32
- export declare function SyncPlanFromJSON(json: any): SyncPlan;
33
- export declare function SyncPlanFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncPlan;
34
- export declare function SyncPlanToJSON(json: any): SyncPlan;
35
- export declare function SyncPlanToJSONTyped(value?: SyncPlan | null, ignoreDiscriminator?: boolean): any;
@@ -1,43 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Defo Ads Public API
5
- * Stable public API for managing campaigns, ads, keywords, and sites.
6
- *
7
- * The version of the OpenAPI document: 1.4.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import { mapValues } from '../runtime';
15
- import { SyncPlanPlatformsValueFromJSON, SyncPlanPlatformsValueToJSON, } from './SyncPlanPlatformsValue';
16
- /**
17
- * Check if a given object implements the SyncPlan interface.
18
- */
19
- export function instanceOfSyncPlan(value) {
20
- return true;
21
- }
22
- export function SyncPlanFromJSON(json) {
23
- return SyncPlanFromJSONTyped(json, false);
24
- }
25
- export function SyncPlanFromJSONTyped(json, ignoreDiscriminator) {
26
- if (json == null) {
27
- return json;
28
- }
29
- return {
30
- 'platforms': json['platforms'] == null ? undefined : (mapValues(json['platforms'], SyncPlanPlatformsValueFromJSON)),
31
- };
32
- }
33
- export function SyncPlanToJSON(json) {
34
- return SyncPlanToJSONTyped(json, false);
35
- }
36
- export function SyncPlanToJSONTyped(value, ignoreDiscriminator = false) {
37
- if (value == null) {
38
- return value;
39
- }
40
- return {
41
- 'platforms': value['platforms'] == null ? undefined : (mapValues(value['platforms'], SyncPlanPlatformsValueToJSON)),
42
- };
43
- }
@@ -1,33 +0,0 @@
1
- /**
2
- * Defo Ads Public API
3
- * Stable public API for managing campaigns, ads, keywords, and sites.
4
- *
5
- * The version of the OpenAPI document: 1.4.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { SyncPlanPlatformsValueTotals } from './SyncPlanPlatformsValueTotals';
13
- /**
14
- *
15
- * @export
16
- * @interface SyncPlanPlatformsValue
17
- */
18
- export interface SyncPlanPlatformsValue {
19
- /**
20
- *
21
- * @type {SyncPlanPlatformsValueTotals}
22
- * @memberof SyncPlanPlatformsValue
23
- */
24
- totals?: SyncPlanPlatformsValueTotals;
25
- }
26
- /**
27
- * Check if a given object implements the SyncPlanPlatformsValue interface.
28
- */
29
- export declare function instanceOfSyncPlanPlatformsValue(value: object): value is SyncPlanPlatformsValue;
30
- export declare function SyncPlanPlatformsValueFromJSON(json: any): SyncPlanPlatformsValue;
31
- export declare function SyncPlanPlatformsValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncPlanPlatformsValue;
32
- export declare function SyncPlanPlatformsValueToJSON(json: any): SyncPlanPlatformsValue;
33
- export declare function SyncPlanPlatformsValueToJSONTyped(value?: SyncPlanPlatformsValue | null, ignoreDiscriminator?: boolean): any;
@@ -1,42 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Defo Ads Public API
5
- * Stable public API for managing campaigns, ads, keywords, and sites.
6
- *
7
- * The version of the OpenAPI document: 1.4.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import { SyncPlanPlatformsValueTotalsFromJSON, SyncPlanPlatformsValueTotalsToJSON, } from './SyncPlanPlatformsValueTotals';
15
- /**
16
- * Check if a given object implements the SyncPlanPlatformsValue interface.
17
- */
18
- export function instanceOfSyncPlanPlatformsValue(value) {
19
- return true;
20
- }
21
- export function SyncPlanPlatformsValueFromJSON(json) {
22
- return SyncPlanPlatformsValueFromJSONTyped(json, false);
23
- }
24
- export function SyncPlanPlatformsValueFromJSONTyped(json, ignoreDiscriminator) {
25
- if (json == null) {
26
- return json;
27
- }
28
- return {
29
- 'totals': json['totals'] == null ? undefined : SyncPlanPlatformsValueTotalsFromJSON(json['totals']),
30
- };
31
- }
32
- export function SyncPlanPlatformsValueToJSON(json) {
33
- return SyncPlanPlatformsValueToJSONTyped(json, false);
34
- }
35
- export function SyncPlanPlatformsValueToJSONTyped(value, ignoreDiscriminator = false) {
36
- if (value == null) {
37
- return value;
38
- }
39
- return {
40
- 'totals': SyncPlanPlatformsValueTotalsToJSON(value['totals']),
41
- };
42
- }
@@ -1,44 +0,0 @@
1
- /**
2
- * Defo Ads Public API
3
- * Stable public API for managing campaigns, ads, keywords, and sites.
4
- *
5
- * The version of the OpenAPI document: 1.4.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface SyncPlanPlatformsValueTotals
16
- */
17
- export interface SyncPlanPlatformsValueTotals {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof SyncPlanPlatformsValueTotals
22
- */
23
- _import?: number;
24
- /**
25
- *
26
- * @type {number}
27
- * @memberof SyncPlanPlatformsValueTotals
28
- */
29
- _export?: number;
30
- /**
31
- *
32
- * @type {number}
33
- * @memberof SyncPlanPlatformsValueTotals
34
- */
35
- remove?: number;
36
- }
37
- /**
38
- * Check if a given object implements the SyncPlanPlatformsValueTotals interface.
39
- */
40
- export declare function instanceOfSyncPlanPlatformsValueTotals(value: object): value is SyncPlanPlatformsValueTotals;
41
- export declare function SyncPlanPlatformsValueTotalsFromJSON(json: any): SyncPlanPlatformsValueTotals;
42
- export declare function SyncPlanPlatformsValueTotalsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncPlanPlatformsValueTotals;
43
- export declare function SyncPlanPlatformsValueTotalsToJSON(json: any): SyncPlanPlatformsValueTotals;
44
- export declare function SyncPlanPlatformsValueTotalsToJSONTyped(value?: SyncPlanPlatformsValueTotals | null, ignoreDiscriminator?: boolean): any;
@@ -1,45 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Defo Ads Public API
5
- * Stable public API for managing campaigns, ads, keywords, and sites.
6
- *
7
- * The version of the OpenAPI document: 1.4.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- /**
15
- * Check if a given object implements the SyncPlanPlatformsValueTotals interface.
16
- */
17
- export function instanceOfSyncPlanPlatformsValueTotals(value) {
18
- return true;
19
- }
20
- export function SyncPlanPlatformsValueTotalsFromJSON(json) {
21
- return SyncPlanPlatformsValueTotalsFromJSONTyped(json, false);
22
- }
23
- export function SyncPlanPlatformsValueTotalsFromJSONTyped(json, ignoreDiscriminator) {
24
- if (json == null) {
25
- return json;
26
- }
27
- return {
28
- '_import': json['import'] == null ? undefined : json['import'],
29
- '_export': json['export'] == null ? undefined : json['export'],
30
- 'remove': json['remove'] == null ? undefined : json['remove'],
31
- };
32
- }
33
- export function SyncPlanPlatformsValueTotalsToJSON(json) {
34
- return SyncPlanPlatformsValueTotalsToJSONTyped(json, false);
35
- }
36
- export function SyncPlanPlatformsValueTotalsToJSONTyped(value, ignoreDiscriminator = false) {
37
- if (value == null) {
38
- return value;
39
- }
40
- return {
41
- 'import': value['_import'],
42
- 'export': value['_export'],
43
- 'remove': value['remove'],
44
- };
45
- }
@@ -1,57 +0,0 @@
1
- /**
2
- * Defo Ads Public API
3
- * Stable public API for managing campaigns, ads, keywords, and sites.
4
- *
5
- * The version of the OpenAPI document: 1.4.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { SyncCampaignDetail } from './SyncCampaignDetail';
13
- /**
14
- *
15
- * @export
16
- * @interface SyncProgress
17
- */
18
- export interface SyncProgress {
19
- /**
20
- *
21
- * @type {string}
22
- * @memberof SyncProgress
23
- */
24
- currentPlatform?: string;
25
- /**
26
- *
27
- * @type {string}
28
- * @memberof SyncProgress
29
- */
30
- currentPhase?: string;
31
- /**
32
- *
33
- * @type {number}
34
- * @memberof SyncProgress
35
- */
36
- totalCampaigns?: number;
37
- /**
38
- *
39
- * @type {number}
40
- * @memberof SyncProgress
41
- */
42
- processedCampaigns?: number;
43
- /**
44
- *
45
- * @type {Array<SyncCampaignDetail>}
46
- * @memberof SyncProgress
47
- */
48
- campaignDetails?: Array<SyncCampaignDetail>;
49
- }
50
- /**
51
- * Check if a given object implements the SyncProgress interface.
52
- */
53
- export declare function instanceOfSyncProgress(value: object): value is SyncProgress;
54
- export declare function SyncProgressFromJSON(json: any): SyncProgress;
55
- export declare function SyncProgressFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncProgress;
56
- export declare function SyncProgressToJSON(json: any): SyncProgress;
57
- export declare function SyncProgressToJSONTyped(value?: SyncProgress | null, ignoreDiscriminator?: boolean): any;
@@ -1,50 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Defo Ads Public API
5
- * Stable public API for managing campaigns, ads, keywords, and sites.
6
- *
7
- * The version of the OpenAPI document: 1.4.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import { SyncCampaignDetailFromJSON, SyncCampaignDetailToJSON, } from './SyncCampaignDetail';
15
- /**
16
- * Check if a given object implements the SyncProgress interface.
17
- */
18
- export function instanceOfSyncProgress(value) {
19
- return true;
20
- }
21
- export function SyncProgressFromJSON(json) {
22
- return SyncProgressFromJSONTyped(json, false);
23
- }
24
- export function SyncProgressFromJSONTyped(json, ignoreDiscriminator) {
25
- if (json == null) {
26
- return json;
27
- }
28
- return {
29
- 'currentPlatform': json['currentPlatform'] == null ? undefined : json['currentPlatform'],
30
- 'currentPhase': json['currentPhase'] == null ? undefined : json['currentPhase'],
31
- 'totalCampaigns': json['totalCampaigns'] == null ? undefined : json['totalCampaigns'],
32
- 'processedCampaigns': json['processedCampaigns'] == null ? undefined : json['processedCampaigns'],
33
- 'campaignDetails': json['campaignDetails'] == null ? undefined : (json['campaignDetails'].map(SyncCampaignDetailFromJSON)),
34
- };
35
- }
36
- export function SyncProgressToJSON(json) {
37
- return SyncProgressToJSONTyped(json, false);
38
- }
39
- export function SyncProgressToJSONTyped(value, ignoreDiscriminator = false) {
40
- if (value == null) {
41
- return value;
42
- }
43
- return {
44
- 'currentPlatform': value['currentPlatform'],
45
- 'currentPhase': value['currentPhase'],
46
- 'totalCampaigns': value['totalCampaigns'],
47
- 'processedCampaigns': value['processedCampaigns'],
48
- 'campaignDetails': value['campaignDetails'] == null ? undefined : (value['campaignDetails'].map(SyncCampaignDetailToJSON)),
49
- };
50
- }
@@ -1,103 +0,0 @@
1
- /**
2
- * Defo Ads Public API
3
- * Stable public API for managing campaigns, ads, keywords, and sites.
4
- *
5
- * The version of the OpenAPI document: 1.4.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { SyncRecordErrorsInner } from './SyncRecordErrorsInner';
13
- import type { SyncTotals } from './SyncTotals';
14
- import type { SyncProgress } from './SyncProgress';
15
- /**
16
- * A sync session. `status` terminal values: completed | partial | failed | cancelled.
17
- * @export
18
- * @interface SyncRecord
19
- */
20
- export interface SyncRecord {
21
- /**
22
- *
23
- * @type {string}
24
- * @memberof SyncRecord
25
- */
26
- syncId?: string;
27
- /**
28
- *
29
- * @type {string}
30
- * @memberof SyncRecord
31
- */
32
- spaceId?: string | null;
33
- /**
34
- *
35
- * @type {string}
36
- * @memberof SyncRecord
37
- */
38
- status?: SyncRecordStatusEnum;
39
- /**
40
- *
41
- * @type {Date}
42
- * @memberof SyncRecord
43
- */
44
- startedAt?: Date;
45
- /**
46
- *
47
- * @type {Date}
48
- * @memberof SyncRecord
49
- */
50
- completedAt?: Date | null;
51
- /**
52
- *
53
- * @type {boolean}
54
- * @memberof SyncRecord
55
- */
56
- scheduled?: boolean;
57
- /**
58
- *
59
- * @type {{ [key: string]: any; }}
60
- * @memberof SyncRecord
61
- */
62
- platforms?: {
63
- [key: string]: any;
64
- };
65
- /**
66
- *
67
- * @type {SyncTotals}
68
- * @memberof SyncRecord
69
- */
70
- totals?: SyncTotals;
71
- /**
72
- *
73
- * @type {SyncProgress}
74
- * @memberof SyncRecord
75
- */
76
- progress?: SyncProgress;
77
- /**
78
- *
79
- * @type {Array<SyncRecordErrorsInner>}
80
- * @memberof SyncRecord
81
- */
82
- errors?: Array<SyncRecordErrorsInner>;
83
- }
84
- /**
85
- * @export
86
- */
87
- export declare const SyncRecordStatusEnum: {
88
- readonly in_progress: "in_progress";
89
- readonly completed: "completed";
90
- readonly partial: "partial";
91
- readonly failed: "failed";
92
- readonly cancelled: "cancelled";
93
- readonly paused: "paused";
94
- };
95
- export type SyncRecordStatusEnum = typeof SyncRecordStatusEnum[keyof typeof SyncRecordStatusEnum];
96
- /**
97
- * Check if a given object implements the SyncRecord interface.
98
- */
99
- export declare function instanceOfSyncRecord(value: object): value is SyncRecord;
100
- export declare function SyncRecordFromJSON(json: any): SyncRecord;
101
- export declare function SyncRecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncRecord;
102
- export declare function SyncRecordToJSON(json: any): SyncRecord;
103
- export declare function SyncRecordToJSONTyped(value?: SyncRecord | null, ignoreDiscriminator?: boolean): any;
@@ -1,73 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Defo Ads Public API
5
- * Stable public API for managing campaigns, ads, keywords, and sites.
6
- *
7
- * The version of the OpenAPI document: 1.4.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import { SyncRecordErrorsInnerFromJSON, SyncRecordErrorsInnerToJSON, } from './SyncRecordErrorsInner';
15
- import { SyncTotalsFromJSON, SyncTotalsToJSON, } from './SyncTotals';
16
- import { SyncProgressFromJSON, SyncProgressToJSON, } from './SyncProgress';
17
- /**
18
- * @export
19
- */
20
- export const SyncRecordStatusEnum = {
21
- in_progress: 'in_progress',
22
- completed: 'completed',
23
- partial: 'partial',
24
- failed: 'failed',
25
- cancelled: 'cancelled',
26
- paused: 'paused'
27
- };
28
- /**
29
- * Check if a given object implements the SyncRecord interface.
30
- */
31
- export function instanceOfSyncRecord(value) {
32
- return true;
33
- }
34
- export function SyncRecordFromJSON(json) {
35
- return SyncRecordFromJSONTyped(json, false);
36
- }
37
- export function SyncRecordFromJSONTyped(json, ignoreDiscriminator) {
38
- if (json == null) {
39
- return json;
40
- }
41
- return {
42
- 'syncId': json['syncId'] == null ? undefined : json['syncId'],
43
- 'spaceId': json['spaceId'] == null ? undefined : json['spaceId'],
44
- 'status': json['status'] == null ? undefined : json['status'],
45
- 'startedAt': json['startedAt'] == null ? undefined : (new Date(json['startedAt'])),
46
- 'completedAt': json['completedAt'] == null ? undefined : (new Date(json['completedAt'])),
47
- 'scheduled': json['scheduled'] == null ? undefined : json['scheduled'],
48
- 'platforms': json['platforms'] == null ? undefined : json['platforms'],
49
- 'totals': json['totals'] == null ? undefined : SyncTotalsFromJSON(json['totals']),
50
- 'progress': json['progress'] == null ? undefined : SyncProgressFromJSON(json['progress']),
51
- 'errors': json['errors'] == null ? undefined : (json['errors'].map(SyncRecordErrorsInnerFromJSON)),
52
- };
53
- }
54
- export function SyncRecordToJSON(json) {
55
- return SyncRecordToJSONTyped(json, false);
56
- }
57
- export function SyncRecordToJSONTyped(value, ignoreDiscriminator = false) {
58
- if (value == null) {
59
- return value;
60
- }
61
- return {
62
- 'syncId': value['syncId'],
63
- 'spaceId': value['spaceId'],
64
- 'status': value['status'],
65
- 'startedAt': value['startedAt'] == null ? undefined : ((value['startedAt']).toISOString()),
66
- 'completedAt': value['completedAt'] == null ? undefined : (value['completedAt'].toISOString()),
67
- 'scheduled': value['scheduled'],
68
- 'platforms': value['platforms'],
69
- 'totals': SyncTotalsToJSON(value['totals']),
70
- 'progress': SyncProgressToJSON(value['progress']),
71
- 'errors': value['errors'] == null ? undefined : (value['errors'].map(SyncRecordErrorsInnerToJSON)),
72
- };
73
- }
@@ -1,38 +0,0 @@
1
- /**
2
- * Defo Ads Public API
3
- * Stable public API for managing campaigns, ads, keywords, and sites.
4
- *
5
- * The version of the OpenAPI document: 1.4.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface SyncRecordErrorsInner
16
- */
17
- export interface SyncRecordErrorsInner {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof SyncRecordErrorsInner
22
- */
23
- message?: string;
24
- /**
25
- *
26
- * @type {Date}
27
- * @memberof SyncRecordErrorsInner
28
- */
29
- timestamp?: Date;
30
- }
31
- /**
32
- * Check if a given object implements the SyncRecordErrorsInner interface.
33
- */
34
- export declare function instanceOfSyncRecordErrorsInner(value: object): value is SyncRecordErrorsInner;
35
- export declare function SyncRecordErrorsInnerFromJSON(json: any): SyncRecordErrorsInner;
36
- export declare function SyncRecordErrorsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncRecordErrorsInner;
37
- export declare function SyncRecordErrorsInnerToJSON(json: any): SyncRecordErrorsInner;
38
- export declare function SyncRecordErrorsInnerToJSONTyped(value?: SyncRecordErrorsInner | null, ignoreDiscriminator?: boolean): any;
@@ -1,43 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Defo Ads Public API
5
- * Stable public API for managing campaigns, ads, keywords, and sites.
6
- *
7
- * The version of the OpenAPI document: 1.4.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- /**
15
- * Check if a given object implements the SyncRecordErrorsInner interface.
16
- */
17
- export function instanceOfSyncRecordErrorsInner(value) {
18
- return true;
19
- }
20
- export function SyncRecordErrorsInnerFromJSON(json) {
21
- return SyncRecordErrorsInnerFromJSONTyped(json, false);
22
- }
23
- export function SyncRecordErrorsInnerFromJSONTyped(json, ignoreDiscriminator) {
24
- if (json == null) {
25
- return json;
26
- }
27
- return {
28
- 'message': json['message'] == null ? undefined : json['message'],
29
- 'timestamp': json['timestamp'] == null ? undefined : (new Date(json['timestamp'])),
30
- };
31
- }
32
- export function SyncRecordErrorsInnerToJSON(json) {
33
- return SyncRecordErrorsInnerToJSONTyped(json, false);
34
- }
35
- export function SyncRecordErrorsInnerToJSONTyped(value, ignoreDiscriminator = false) {
36
- if (value == null) {
37
- return value;
38
- }
39
- return {
40
- 'message': value['message'],
41
- 'timestamp': value['timestamp'] == null ? undefined : ((value['timestamp']).toISOString()),
42
- };
43
- }