diff --git a/graphql.schema.json b/graphql.schema.json index fc9cf79..36a135f 100644 --- a/graphql.schema.json +++ b/graphql.schema.json @@ -1225,10 +1225,230 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "errors", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "JSONObject", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, - "interfaces": [], + "interfaces": [ + { + "kind": "INTERFACE", + "name": "EntitlementResource", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INTERFACE", + "name": "EntitlementResource", + "description": null, + "fields": [ + { + "name": "id", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ObjectId", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "NonEmptyString", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "systemStatus", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "SystemStatus", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "creationDate", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateISO", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lastChangeDate", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateISO", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "errors", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "JSONObject", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": [ + { "kind": "OBJECT", "name": "Marketplace", "ofType": null }, + { + "kind": "OBJECT", + "name": "Organization", + "ofType": null + }, + { "kind": "OBJECT", "name": "MediaChannel", "ofType": null } + ] + }, + { + "kind": "ENUM", + "name": "SystemStatus", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "PENDING", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "PENDING_DELETION", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "PENDING_SYNC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "PROCESSING", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "PROCESSING_SYNC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "PROCESSING_DELETION", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "PROCESSED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ERROR", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "DELETED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "SCALAR", + "name": "JSONObject", + "description": "The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).", + "fields": null, + "inputFields": null, + "interfaces": null, "enumValues": null, "possibleTypes": null }, @@ -1400,20 +1620,34 @@ "deprecationReason": null }, { - "name": "error", + "name": "errors", "description": null, "args": [], "type": { - "kind": "SCALAR", - "name": "JSONObject", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "JSONObject", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null } ], "inputFields": null, - "interfaces": [], + "interfaces": [ + { + "kind": "INTERFACE", + "name": "EntitlementResource", + "ofType": null + } + ], "enumValues": null, "possibleTypes": null }, @@ -1992,7 +2226,7 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "UNION", + "kind": "INTERFACE", "name": "EntitlementResource", "ofType": null } @@ -2060,24 +2294,228 @@ "possibleTypes": null }, { - "kind": "UNION", - "name": "EntitlementResource", + "kind": "ENUM", + "name": "AuthPermission", "description": null, "fields": null, "inputFields": null, "interfaces": null, - "enumValues": null, - "possibleTypes": [ - { "kind": "OBJECT", "name": "Marketplace", "ofType": null }, + "enumValues": [ { - "kind": "OBJECT", - "name": "Organization", - "ofType": null + "name": "READ", + "description": null, + "isDeprecated": false, + "deprecationReason": null }, - { "kind": "OBJECT", "name": "MediaChannel", "ofType": null } - ] - }, - { + { + "name": "WRITE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "DELETE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MANAGE_ENTITLEMENTS", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "MarketplaceConnection", + "description": null, + "fields": [ + { + "name": "edges", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MarketplaceEdge", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "pageInfo", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "MarketplaceEdge", + "description": null, + "fields": [ + { + "name": "cursor", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ObjectId", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "node", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "Marketplace", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "OrganizationTierEnum", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "Standard", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "Developer", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "MediaChannelConnection", + "description": null, + "fields": [ + { + "name": "edges", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MediaChannelEdge", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "pageInfo", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "MediaChannelEdge", + "description": null, + "fields": [ + { + "name": "cursor", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ObjectId", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "node", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "MediaChannel", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { "kind": "OBJECT", "name": "MediaChannel", "description": null, @@ -2247,13 +2685,21 @@ "deprecationReason": null }, { - "name": "error", + "name": "errors", "description": null, "args": [], "type": { - "kind": "SCALAR", - "name": "JSONObject", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "JSONObject", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null @@ -2313,17 +2759,13 @@ } ], "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "JSONObject", - "description": "The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).", - "fields": null, - "inputFields": null, - "interfaces": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "EntitlementResource", + "ofType": null + } + ], "enumValues": null, "possibleTypes": null }, @@ -2363,77 +2805,12 @@ "possibleTypes": null }, { - "kind": "ENUM", - "name": "SystemStatus", + "kind": "OBJECT", + "name": "CatalogConnection", "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "PENDING", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, + "fields": [ { - "name": "PENDING_DELETION", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PENDING_SYNC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PROCESSING", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PROCESSING_SYNC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PROCESSING_DELETION", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PROCESSED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ERROR", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DELETED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CatalogConnection", - "description": null, - "fields": [ - { - "name": "edges", + "name": "edges", "description": null, "args": [], "type": { @@ -2651,13 +3028,21 @@ "deprecationReason": null }, { - "name": "error", + "name": "errors", "description": null, "args": [], "type": { - "kind": "SCALAR", - "name": "JSONObject", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "JSONObject", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null @@ -3455,51 +3840,54 @@ }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "MarketingCampaignStatus", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ACTIVE", - "description": null, - "isDeprecated": false, - "deprecationReason": null }, { - "name": "PAUSED", + "name": "errors", "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "JSONObject", + "ofType": null + } + } + }, "isDeprecated": false, "deprecationReason": null } ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "ResultResource", + "ofType": null + } + ], + "enumValues": null, "possibleTypes": null }, { - "kind": "OBJECT", - "name": "MarketingAdConnection", + "kind": "INTERFACE", + "name": "ResultResource", "description": null, "fields": [ { - "name": "edges", + "name": "id", "description": null, "args": [], "type": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "MarketingAdEdge", + "kind": "SCALAR", + "name": "ObjectId", "ofType": null } }, @@ -3507,34 +3895,23 @@ "deprecationReason": null }, { - "name": "pageInfo", + "name": "creationDate", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "PageInfo", + "kind": "SCALAR", + "name": "DateISO", "ofType": null } }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MarketingAdEdge", - "description": null, - "fields": [ + }, { - "name": "cursor", + "name": "lastChangeDate", "description": null, "args": [], "type": { @@ -3542,7 +3919,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "ObjectId", + "name": "DateISO", "ofType": null } }, @@ -3550,26 +3927,37 @@ "deprecationReason": null }, { - "name": "node", + "name": "vendor", "description": null, "args": [], "type": { - "kind": "OBJECT", - "name": "MarketingAd", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Vendor", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null } ], "inputFields": null, - "interfaces": [], + "interfaces": null, "enumValues": null, - "possibleTypes": null + "possibleTypes": [ + { + "kind": "OBJECT", + "name": "MarketingCampaign", + "ofType": null + }, + { "kind": "OBJECT", "name": "MarketingAd", "ofType": null } + ] }, { "kind": "OBJECT", - "name": "MarketingAd", + "name": "Vendor", "description": null, "fields": [ { @@ -3621,7 +4009,7 @@ "deprecationReason": null }, { - "name": "remoteId", + "name": "name", "description": null, "args": [], "type": { @@ -3629,7 +4017,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "NonEmptyString", "ofType": null } }, @@ -3637,15 +4025,15 @@ "deprecationReason": null }, { - "name": "preview", + "name": "marketplace", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "Marketplace", "ofType": null } }, @@ -3653,7 +4041,7 @@ "deprecationReason": null }, { - "name": "results", + "name": "products", "description": null, "args": [ { @@ -3679,22 +4067,22 @@ ], "type": { "kind": "OBJECT", - "name": "ResultConnection", + "name": "ProductConnection", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "marketingCampaign", + "name": "systemStatus", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "MarketingCampaign", + "kind": "ENUM", + "name": "SystemStatus", "ofType": null } }, @@ -3702,16 +4090,20 @@ "deprecationReason": null }, { - "name": "vendor", + "name": "errors", "description": null, "args": [], "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "OBJECT", - "name": "Vendor", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "JSONObject", + "ofType": null + } } }, "isDeprecated": false, @@ -3723,9 +4115,32 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "ENUM", + "name": "MarketingCampaignStatus", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "ACTIVE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "PAUSED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, { "kind": "OBJECT", - "name": "ResultConnection", + "name": "MarketingAdConnection", "description": null, "fields": [ { @@ -3737,7 +4152,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "ResultEdge", + "name": "MarketingAdEdge", "ofType": null } }, @@ -3768,7 +4183,7 @@ }, { "kind": "OBJECT", - "name": "ResultEdge", + "name": "MarketingAdEdge", "description": null, "fields": [ { @@ -3793,7 +4208,7 @@ "args": [], "type": { "kind": "OBJECT", - "name": "Result", + "name": "MarketingAd", "ofType": null }, "isDeprecated": false, @@ -3807,7 +4222,7 @@ }, { "kind": "OBJECT", - "name": "Result", + "name": "MarketingAd", "description": null, "fields": [ { @@ -3859,7 +4274,7 @@ "deprecationReason": null }, { - "name": "date", + "name": "remoteId", "description": null, "args": [], "type": { @@ -3867,7 +4282,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "DateISO", + "name": "String", "ofType": null } }, @@ -3875,25 +4290,17 @@ "deprecationReason": null }, { - "name": "impressions", + "name": "preview", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null @@ -3901,53 +4308,95 @@ { "name": "results", "description": null, + "args": [ + { + "name": "first", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "after", + "description": null, + "type": { + "kind": "SCALAR", + "name": "ObjectId", + "ofType": null + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "ResultConnection", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "marketingCampaign", + "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "kind": "OBJECT", + "name": "MarketingCampaign", + "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "type", + "name": "vendor", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "ENUM", - "name": "ResultResourceTypeEnum", + "kind": "OBJECT", + "name": "Vendor", "ofType": null } }, "isDeprecated": false, "deprecationReason": null - }, + } + ], + "inputFields": null, + "interfaces": [ { - "name": "resource", + "kind": "INTERFACE", + "name": "ResultResource", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "ResultConnection", + "description": null, + "fields": [ + { + "name": "edges", "description": null, "args": [], "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "UNION", - "name": "ResultResource", + "kind": "OBJECT", + "name": "ResultEdge", "ofType": null } }, @@ -3955,7 +4404,7 @@ "deprecationReason": null }, { - "name": "vendor", + "name": "pageInfo", "description": null, "args": [], "type": { @@ -3963,7 +4412,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "Vendor", + "name": "PageInfo", "ofType": null } }, @@ -3977,48 +4426,47 @@ "possibleTypes": null }, { - "kind": "ENUM", - "name": "ResultResourceTypeEnum", + "kind": "OBJECT", + "name": "ResultEdge", "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ + "fields": [ { - "name": "MarketingAd", + "name": "cursor", "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ObjectId", + "ofType": null + } + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "MarketingCampaign", + "name": "node", "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "Result", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null } ], - "possibleTypes": null - }, - { - "kind": "UNION", - "name": "ResultResource", - "description": null, - "fields": null, "inputFields": null, - "interfaces": null, + "interfaces": [], "enumValues": null, - "possibleTypes": [ - { "kind": "OBJECT", "name": "MarketingAd", "ofType": null }, - { - "kind": "OBJECT", - "name": "MarketingCampaign", - "ofType": null - } - ] + "possibleTypes": null }, { "kind": "OBJECT", - "name": "Vendor", + "name": "Result", "description": null, "fields": [ { @@ -4070,7 +4518,7 @@ "deprecationReason": null }, { - "name": "name", + "name": "date", "description": null, "args": [], "type": { @@ -4078,7 +4526,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "NonEmptyString", + "name": "DateISO", "ofType": null } }, @@ -4086,126 +4534,63 @@ "deprecationReason": null }, { - "name": "marketplace", + "name": "impressions", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "Marketplace", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "products", - "description": null, - "args": [ - { - "name": "first", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "after", - "description": null, - "type": { - "kind": "SCALAR", - "name": "ObjectId", - "ofType": null - }, - "defaultValue": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } } - ], - "type": { - "kind": "OBJECT", - "name": "ProductConnection", - "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "systemStatus", + "name": "results", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "ENUM", - "name": "SystemStatus", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } } }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "AuthPermission", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "READ", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "WRITE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DELETE", - "description": null, - "isDeprecated": false, - "deprecationReason": null }, { - "name": "MANAGE_ENTITLEMENTS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MarketplaceConnection", - "description": null, - "fields": [ - { - "name": "edges", + "name": "type", "description": null, "args": [], "type": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "MarketplaceEdge", + "kind": "ENUM", + "name": "ResultResourceTypeEnum", "ofType": null } }, @@ -4213,59 +4598,36 @@ "deprecationReason": null }, { - "name": "pageInfo", + "name": "resource", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "PageInfo", + "kind": "INTERFACE", + "name": "ResultResource", "ofType": null } }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MarketplaceEdge", - "description": null, - "fields": [ + }, { - "name": "cursor", + "name": "vendor", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "ObjectId", + "kind": "OBJECT", + "name": "Vendor", "ofType": null } }, "isDeprecated": false, "deprecationReason": null - }, - { - "name": "node", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Marketplace", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null } ], "inputFields": null, @@ -4275,107 +4637,25 @@ }, { "kind": "ENUM", - "name": "OrganizationTierEnum", + "name": "ResultResourceTypeEnum", "description": null, "fields": null, "inputFields": null, "interfaces": null, "enumValues": [ { - "name": "Standard", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "Developer", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MediaChannelConnection", - "description": null, - "fields": [ - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MediaChannelEdge", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageInfo", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MediaChannelEdge", - "description": null, - "fields": [ - { - "name": "cursor", + "name": "MarketingAd", "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ObjectId", - "ofType": null - } - }, "isDeprecated": false, "deprecationReason": null }, { - "name": "node", + "name": "MarketingCampaign", "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "MediaChannel", - "ofType": null - }, "isDeprecated": false, "deprecationReason": null } ], - "inputFields": null, - "interfaces": [], - "enumValues": null, "possibleTypes": null }, { diff --git a/index.node.js b/index.node.js index 0663311..84e5dab 100644 --- a/index.node.js +++ b/index.node.js @@ -1 +1 @@ -!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(global,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=10)}([function(t,e){t.exports=require("stream")},function(t,e){t.exports=require("zlib")},function(t,e){t.exports=require("url")},function(t,e){t.exports=require("http")},function(t,e,n){var r=n(8),i=r.default||r,o=function(t,e){return/^\/\//.test(t)&&(t="https:"+t),i.call(this,t,e)};t.exports=e=o,e.fetch=o,e.Headers=r.Headers,e.Request=r.Request,e.Response=r.Response,e.default=o},function(t,e){t.exports=require("https")},function(t,e){var n="Expected a function",r="__lodash_hash_undefined__",i=1/0,o="[object Function]",a="[object GeneratorFunction]",s="[object Symbol]",u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,d=/^\./,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,h="object"==typeof global&&global&&global.Object===Object&&global,m="object"==typeof self&&self&&self.Object===Object&&self,v=h||m||Function("return this")();var g,y=Array.prototype,b=Function.prototype,w=Object.prototype,E=v["__core-js_shared__"],I=(g=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||""))?"Symbol(src)_1."+g:"",C=b.toString,$=w.hasOwnProperty,j=w.toString,T=RegExp("^"+C.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),O=v.Symbol,P=y.splice,_=B(v,"Map"),k=B(Object,"create"),S=O?O.prototype:void 0,A=S?S.toString:void 0;function M(t){var e=-1,n=t?t.length:0;for(this.clear();++e-1},D.prototype.set=function(t,e){var n=this.__data__,r=x(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},N.prototype.clear=function(){this.__data__={hash:new M,map:new(_||D),string:new M}},N.prototype.delete=function(t){return U(this,t).delete(t)},N.prototype.get=function(t){return U(this,t).get(t)},N.prototype.has=function(t){return U(this,t).has(t)},N.prototype.set=function(t,e){return U(this,t).set(t,e),this};var z=q(function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(G(t))return A?A.call(t):"";var e=t+"";return"0"==e&&1/t==-i?"-0":e}(e);var n=[];return d.test(t)&&n.push(""),t.replace(l,function(t,e,r,i){n.push(r?i.replace(p,"$1"):e||t)}),n});function F(t){if("string"==typeof t||G(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}function q(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(n);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a),a};return r.cache=new(q.Cache||N),r}q.Cache=N;var V=Array.isArray;function H(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function G(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&j.call(t)==s}t.exports=function(t,e,n){var r=null==t?void 0:R(t,e);return void 0===r?n:r}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),(r=e.codes||(e.codes={})).OBJECT_DUPLICATE="OBJECT_DUPLICATE",r.OBJECT_NOT_FOUND="OBJECT_NOT_FOUND",r.TOKEN_EXPIRED="TOKEN_EXPIRED",r.TOKEN_MALFORMED="TOKEN_MALFORMED",r.ACCESS_DENIED="ACCESS_DENIED",r.INVALID_CREDENTIALS="INVALID_CREDENTIALS",r.QUERY_DEPTH_EXCEEDED="QUERY_DEPTH_EXCEEDED",r.QUERY_COMPLEXITY_EXCEEDED="QUERY_COMPLEXITY_EXCEEDED",r.QUERY_BREADTH_EXCEEDED="QUERY_BREADTH_EXCEEDED",r.INPUT_LIST_EMPTY="INPUT_LIST_EMPTY",r.INPUT_LIST_MIN="INPUT_LIST_MIN",r.INPUT_LIST_MAX="INPUT_LIST_MAX",r.INPUT_INVALID="INPUT_INVALID",r.UNKNOWN_ERROR="UKNOWN_ERROR";e.isValidCode=function(t){return Object.keys(e.codes).includes(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"Headers",function(){return _}),n.d(e,"Request",function(){return q}),n.d(e,"Response",function(){return R}),n.d(e,"FetchError",function(){return p});var r=n(0),i=n(3),o=n(2),a=n(5),s=n(1);const u=r.Readable,c=Symbol("buffer"),d=Symbol("type");class l{constructor(){this[d]="";const t=arguments[0],e=arguments[1],n=[];let r=0;if(t){const e=t,i=Number(e.length);for(let t=0;t1&&void 0!==arguments[1]?arguments[1]:{},i=n.size;let o=void 0===i?0:i;var a=n.timeout;let s=void 0===a?0:a;null==t?t=null:y(t)?t=Buffer.from(t.toString()):b(t)||Buffer.isBuffer(t)||("[object ArrayBuffer]"===Object.prototype.toString.call(t)?t=Buffer.from(t):ArrayBuffer.isView(t)?t=Buffer.from(t.buffer,t.byteOffset,t.byteLength):t instanceof r||(t=Buffer.from(String(t)))),this[h]={body:t,disturbed:!1,error:null},this.size=o,this.timeout=s,t instanceof r&&t.on("error",function(t){const n="AbortError"===t.name?t:new p(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t);e[h].error=n})}function g(){var t=this;if(this[h].disturbed)return v.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[h].disturbed=!0,this[h].error)return v.Promise.reject(this[h].error);let e=this.body;if(null===e)return v.Promise.resolve(Buffer.alloc(0));if(b(e)&&(e=e.stream()),Buffer.isBuffer(e))return v.Promise.resolve(e);if(!(e instanceof r))return v.Promise.resolve(Buffer.alloc(0));let n=[],i=0,o=!1;return new v.Promise(function(r,a){let s;t.timeout&&(s=setTimeout(function(){o=!0,a(new p(`Response timeout while trying to fetch ${t.url} (over ${t.timeout}ms)`,"body-timeout"))},t.timeout)),e.on("error",function(e){"AbortError"===e.name?(o=!0,a(e)):a(new p(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e))}),e.on("data",function(e){if(!o&&null!==e){if(t.size&&i+e.length>t.size)return o=!0,void a(new p(`content size at ${t.url} over limit: ${t.size}`,"max-size"));i+=e.length,n.push(e)}}),e.on("end",function(){if(!o){clearTimeout(s);try{r(Buffer.concat(n,i))}catch(e){a(new p(`Could not create Buffer from response body for ${t.url}: ${e.message}`,"system",e))}}})})}function y(t){return"object"==typeof t&&"function"==typeof t.append&&"function"==typeof t.delete&&"function"==typeof t.get&&"function"==typeof t.getAll&&"function"==typeof t.has&&"function"==typeof t.set&&("URLSearchParams"===t.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(t)||"function"==typeof t.sort)}function b(t){return"object"==typeof t&&"function"==typeof t.arrayBuffer&&"string"==typeof t.type&&"function"==typeof t.stream&&"function"==typeof t.constructor&&"string"==typeof t.constructor.name&&/^(Blob|File)$/.test(t.constructor.name)&&/^(Blob|File)$/.test(t[Symbol.toStringTag])}function w(t){let e,n,i=t.body;if(t.bodyUsed)throw new Error("cannot clone body after it is used");return i instanceof r&&"function"!=typeof i.getBoundary&&(e=new m,n=new m,i.pipe(e),i.pipe(n),t[h].body=e,i=n),i}function E(t){return null===t?null:"string"==typeof t?"text/plain;charset=UTF-8":y(t)?"application/x-www-form-urlencoded;charset=UTF-8":b(t)?t.type||null:Buffer.isBuffer(t)?null:"[object ArrayBuffer]"===Object.prototype.toString.call(t)?null:ArrayBuffer.isView(t)?null:"function"==typeof t.getBoundary?`multipart/form-data;boundary=${t.getBoundary()}`:t instanceof r?null:"text/plain;charset=UTF-8"}function I(t){const e=t.body;return null===e?0:b(e)?e.size:Buffer.isBuffer(e)?e.length:e&&"function"==typeof e.getLengthSync&&(e._lengthRetrievers&&0==e._lengthRetrievers.length||e.hasKnownLength&&e.hasKnownLength())?e.getLengthSync():null}v.prototype={get body(){return this[h].body},get bodyUsed(){return this[h].disturbed},arrayBuffer(){return g.call(this).then(function(t){return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)})},blob(){let t=this.headers&&this.headers.get("content-type")||"";return g.call(this).then(function(e){return Object.assign(new l([],{type:t.toLowerCase()}),{[c]:e})})},json(){var t=this;return g.call(this).then(function(e){try{return JSON.parse(e.toString())}catch(e){return v.Promise.reject(new p(`invalid json response body at ${t.url} reason: ${e.message}`,"invalid-json"))}})},text(){return g.call(this).then(function(t){return t.toString()})},buffer(){return g.call(this)},textConverted(){var t=this;return g.call(this).then(function(e){return function(t,e){if("function"!=typeof f)throw new Error("The package `encoding` must be installed to use the textConverted() function");const n=e.get("content-type");let r,i,o="utf-8";n&&(r=/charset=([^;]*)/i.exec(n));i=t.slice(0,1024).toString(),!r&&i&&(r=/0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[P]=Object.create(null),t instanceof _){const e=t.raw(),n=Object.keys(e);for(const t of n)for(const n of e[t])this.append(t,n)}else if(null==t);else{if("object"!=typeof t)throw new TypeError("Provided initializer must be an object");{const e=t[Symbol.iterator];if(null!=e){if("function"!=typeof e)throw new TypeError("Header pairs must be iterable");const n=[];for(const e of t){if("object"!=typeof e||"function"!=typeof e[Symbol.iterator])throw new TypeError("Each header pair must be iterable");n.push(Array.from(e))}for(const t of n){if(2!==t.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(t[0],t[1])}}else for(const e of Object.keys(t)){const n=t[e];this.append(e,n)}}}}get(t){j(t=`${t}`);const e=O(this[P],t);return void 0===e?null:this[P][e].join(", ")}forEach(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=k(this),r=0;for(;r1&&void 0!==arguments[1]?arguments[1]:"key+value";return Object.keys(t[P]).sort().map("key"===e?function(t){return t.toLowerCase()}:"value"===e?function(e){return t[P][e].join(", ")}:function(e){return[e.toLowerCase(),t[P][e].join(", ")]})}_.prototype.entries=_.prototype[Symbol.iterator],Object.defineProperty(_.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(_.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const S=Symbol("internal");function A(t,e){const n=Object.create(M);return n[S]={target:t,kind:e,index:0},n}const M=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==M)throw new TypeError("Value of `this` is not a HeadersIterator");var t=this[S];const e=t.target,n=t.kind,r=t.index,i=k(e,n);return r>=i.length?{value:void 0,done:!0}:(this[S].index=r+1,{value:i[r],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function D(t){const e=Object.assign({__proto__:null},t[P]),n=O(t[P],"Host");return void 0!==n&&(e[n]=e[n][0]),e}Object.defineProperty(M,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const N=Symbol("Response internals"),x=i.STATUS_CODES;class R{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};v.call(this,t,e);const n=e.status||200,r=new _(e.headers);if(null!=t&&!r.has("Content-Type")){const e=E(t);e&&r.append("Content-Type",e)}this[N]={url:e.url,status:n,statusText:e.statusText||x[n],headers:r,counter:e.counter}}get url(){return this[N].url||""}get status(){return this[N].status}get ok(){return this[N].status>=200&&this[N].status<300}get redirected(){return this[N].counter>0}get statusText(){return this[N].statusText}get headers(){return this[N].headers}clone(){return new R(w(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}v.mixIn(R.prototype),Object.defineProperties(R.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(R.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const L=Symbol("Request internals"),U=o.parse,B=o.format,z="destroy"in r.Readable.prototype;function F(t){return"object"==typeof t&&"object"==typeof t[L]}class q{constructor(t){let e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};F(t)?e=U(t.url):(e=t&&t.href?U(t.href):U(`${t}`),t={});let r=n.method||t.method||"GET";if(r=r.toUpperCase(),(null!=n.body||F(t)&&null!==t.body)&&("GET"===r||"HEAD"===r))throw new TypeError("Request with GET/HEAD method cannot have body");let i=null!=n.body?n.body:F(t)&&null!==t.body?w(t):null;v.call(this,i,{timeout:n.timeout||t.timeout||0,size:n.size||t.size||0});const o=new _(n.headers||t.headers||{});if(null!=i&&!o.has("Content-Type")){const t=E(i);t&&o.append("Content-Type",t)}let a=F(t)?t.signal:null;if("signal"in n&&(a=n.signal),null!=a&&!function(t){const e=t&&"object"==typeof t&&Object.getPrototypeOf(t);return!(!e||"AbortSignal"!==e.constructor.name)}(a))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[L]={method:r,redirect:n.redirect||t.redirect||"follow",headers:o,parsedURL:e,signal:a},this.follow=void 0!==n.follow?n.follow:void 0!==t.follow?t.follow:20,this.compress=void 0!==n.compress?n.compress:void 0===t.compress||t.compress,this.counter=n.counter||t.counter||0,this.agent=n.agent||t.agent}get method(){return this[L].method}get url(){return B(this[L].parsedURL)}get headers(){return this[L].headers}get redirect(){return this[L].redirect}get signal(){return this[L].signal}clone(){return new q(this)}}function V(t){Error.call(this,t),this.type="aborted",this.message=t,Error.captureStackTrace(this,this.constructor)}v.mixIn(q.prototype),Object.defineProperty(q.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(q.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),V.prototype=Object.create(Error.prototype),V.prototype.constructor=V,V.prototype.name="AbortError";const H=r.PassThrough,G=o.resolve;function Y(t,e){if(!Y.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return v.Promise=Y.Promise,new Y.Promise(function(n,o){const u=new q(t,e),c=function(t){const e=t[L].parsedURL,n=new _(t[L].headers);if(n.has("Accept")||n.set("Accept","*/*"),!e.protocol||!e.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(e.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(t.signal&&t.body instanceof r.Readable&&!z)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let i=null;if(null==t.body&&/^(POST|PUT)$/i.test(t.method)&&(i="0"),null!=t.body){const e=I(t);"number"==typeof e&&(i=String(e))}i&&n.set("Content-Length",i),n.has("User-Agent")||n.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),t.compress&&!n.has("Accept-Encoding")&&n.set("Accept-Encoding","gzip,deflate");let o=t.agent;return"function"==typeof o&&(o=o(e)),n.has("Connection")||o||n.set("Connection","close"),Object.assign({},e,{method:t.method,headers:D(n),agent:o})}(u),d=("https:"===c.protocol?a:i).request,l=u.signal;let f=null;const h=function(){let t=new V("The user aborted a request.");o(t),u.body&&u.body instanceof r.Readable&&u.body.destroy(t),f&&f.body&&f.body.emit("error",t)};if(l&&l.aborted)return void h();const m=function(){h(),y()},v=d(c);let g;function y(){v.abort(),l&&l.removeEventListener("abort",m),clearTimeout(g)}l&&l.addEventListener("abort",m),u.timeout&&v.once("socket",function(t){g=setTimeout(function(){o(new p(`network timeout at: ${u.url}`,"request-timeout")),y()},u.timeout)}),v.on("error",function(t){o(new p(`request to ${u.url} failed, reason: ${t.message}`,"system",t)),y()}),v.on("response",function(t){clearTimeout(g);const e=function(t){const e=new _;for(const n of Object.keys(t))if(!C.test(n))if(Array.isArray(t[n]))for(const r of t[n])$.test(r)||(void 0===e[P][n]?e[P][n]=[r]:e[P][n].push(r));else $.test(t[n])||(e[P][n]=[t[n]]);return e}(t.headers);if(Y.isRedirect(t.statusCode)){const r=e.get("Location"),i=null===r?null:G(u.url,r);switch(u.redirect){case"error":return o(new p(`redirect mode is set to error: ${u.url}`,"no-redirect")),void y();case"manual":if(null!==i)try{e.set("Location",i)}catch(t){o(t)}break;case"follow":if(null===i)break;if(u.counter>=u.follow)return o(new p(`maximum redirect reached at: ${u.url}`,"max-redirect")),void y();const r={headers:new _(u.headers),follow:u.follow,counter:u.counter+1,agent:u.agent,compress:u.compress,method:u.method,body:u.body,signal:u.signal,timeout:u.timeout};return 303!==t.statusCode&&u.body&&null===I(u)?(o(new p("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void y()):(303!==t.statusCode&&(301!==t.statusCode&&302!==t.statusCode||"POST"!==u.method)||(r.method="GET",r.body=void 0,r.headers.delete("content-length")),n(Y(new q(i,r))),void y())}}t.once("end",function(){l&&l.removeEventListener("abort",m)});let r=t.pipe(new H);const i={url:u.url,status:t.statusCode,statusText:t.statusMessage,headers:e,size:u.size,timeout:u.timeout,counter:u.counter},a=e.get("Content-Encoding");if(!u.compress||"HEAD"===u.method||null===a||204===t.statusCode||304===t.statusCode)return f=new R(r,i),void n(f);const c={flush:s.Z_SYNC_FLUSH,finishFlush:s.Z_SYNC_FLUSH};if("gzip"==a||"x-gzip"==a)return r=r.pipe(s.createGunzip(c)),f=new R(r,i),void n(f);if("deflate"!=a&&"x-deflate"!=a){if("br"==a&&"function"==typeof s.createBrotliDecompress)return r=r.pipe(s.createBrotliDecompress()),f=new R(r,i),void n(f);f=new R(r,i),n(f)}else{t.pipe(new H).once("data",function(t){r=8==(15&t[0])?r.pipe(s.createInflate()):r.pipe(s.createInflateRaw()),f=new R(r,i),n(f)})}}),function(t,e){const n=e.body;null===n?t.end():b(n)?n.stream().pipe(t):Buffer.isBuffer(n)?(t.write(n),t.end()):n.pipe(t)}(v,u)})}Y.isRedirect=function(t){return 301===t||302===t||303===t||307===t||308===t},Y.Promise=global.Promise,e.default=Y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";n.r(e);var r,i,o,a,s,u,c,d,l,p,f,h,m,v=n(4),g=n.n(v),y=n(6),b=n.n(y),w=n(7),E=(n(9),function(){return(E=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1},D.prototype.set=function(t,e){var n=this.__data__,r=x(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},N.prototype.clear=function(){this.__data__={hash:new M,map:new(P||D),string:new M}},N.prototype.delete=function(t){return U(this,t).delete(t)},N.prototype.get=function(t){return U(this,t).get(t)},N.prototype.has=function(t){return U(this,t).has(t)},N.prototype.set=function(t,e){return U(this,t).set(t,e),this};var z=q(function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(G(t))return A?A.call(t):"";var e=t+"";return"0"==e&&1/t==-i?"-0":e}(e);var n=[];return d.test(t)&&n.push(""),t.replace(l,function(t,e,r,i){n.push(r?i.replace(p,"$1"):e||t)}),n});function F(t){if("string"==typeof t||G(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}function q(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(n);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a),a};return r.cache=new(q.Cache||N),r}q.Cache=N;var V=Array.isArray;function H(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function G(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&j.call(t)==s}t.exports=function(t,e,n){var r=null==t?void 0:R(t,e);return void 0===r?n:r}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),(r=e.codes||(e.codes={})).OBJECT_DUPLICATE="OBJECT_DUPLICATE",r.OBJECT_NOT_FOUND="OBJECT_NOT_FOUND",r.TOKEN_EXPIRED="TOKEN_EXPIRED",r.TOKEN_MALFORMED="TOKEN_MALFORMED",r.ACCESS_DENIED="ACCESS_DENIED",r.INVALID_CREDENTIALS="INVALID_CREDENTIALS",r.QUERY_DEPTH_EXCEEDED="QUERY_DEPTH_EXCEEDED",r.QUERY_COMPLEXITY_EXCEEDED="QUERY_COMPLEXITY_EXCEEDED",r.QUERY_BREADTH_EXCEEDED="QUERY_BREADTH_EXCEEDED",r.INPUT_LIST_EMPTY="INPUT_LIST_EMPTY",r.INPUT_LIST_MIN="INPUT_LIST_MIN",r.INPUT_LIST_MAX="INPUT_LIST_MAX",r.INPUT_INVALID="INPUT_INVALID",r.UNKNOWN_ERROR="UKNOWN_ERROR";e.isValidCode=function(t){return Object.keys(e.codes).includes(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"Headers",function(){return P}),n.d(e,"Request",function(){return q}),n.d(e,"Response",function(){return R}),n.d(e,"FetchError",function(){return p});var r=n(0),i=n(3),o=n(2),a=n(5),s=n(1);const u=r.Readable,c=Symbol("buffer"),d=Symbol("type");class l{constructor(){this[d]="";const t=arguments[0],e=arguments[1],n=[];let r=0;if(t){const e=t,i=Number(e.length);for(let t=0;t1&&void 0!==arguments[1]?arguments[1]:{},i=n.size;let o=void 0===i?0:i;var a=n.timeout;let s=void 0===a?0:a;null==t?t=null:g(t)?t=Buffer.from(t.toString()):b(t)||Buffer.isBuffer(t)||("[object ArrayBuffer]"===Object.prototype.toString.call(t)?t=Buffer.from(t):ArrayBuffer.isView(t)?t=Buffer.from(t.buffer,t.byteOffset,t.byteLength):t instanceof r||(t=Buffer.from(String(t)))),this[h]={body:t,disturbed:!1,error:null},this.size=o,this.timeout=s,t instanceof r&&t.on("error",function(t){const n="AbortError"===t.name?t:new p(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t);e[h].error=n})}function v(){var t=this;if(this[h].disturbed)return y.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[h].disturbed=!0,this[h].error)return y.Promise.reject(this[h].error);let e=this.body;if(null===e)return y.Promise.resolve(Buffer.alloc(0));if(b(e)&&(e=e.stream()),Buffer.isBuffer(e))return y.Promise.resolve(e);if(!(e instanceof r))return y.Promise.resolve(Buffer.alloc(0));let n=[],i=0,o=!1;return new y.Promise(function(r,a){let s;t.timeout&&(s=setTimeout(function(){o=!0,a(new p(`Response timeout while trying to fetch ${t.url} (over ${t.timeout}ms)`,"body-timeout"))},t.timeout)),e.on("error",function(e){"AbortError"===e.name?(o=!0,a(e)):a(new p(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e))}),e.on("data",function(e){if(!o&&null!==e){if(t.size&&i+e.length>t.size)return o=!0,void a(new p(`content size at ${t.url} over limit: ${t.size}`,"max-size"));i+=e.length,n.push(e)}}),e.on("end",function(){if(!o){clearTimeout(s);try{r(Buffer.concat(n,i))}catch(e){a(new p(`Could not create Buffer from response body for ${t.url}: ${e.message}`,"system",e))}}})})}function g(t){return"object"==typeof t&&"function"==typeof t.append&&"function"==typeof t.delete&&"function"==typeof t.get&&"function"==typeof t.getAll&&"function"==typeof t.has&&"function"==typeof t.set&&("URLSearchParams"===t.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(t)||"function"==typeof t.sort)}function b(t){return"object"==typeof t&&"function"==typeof t.arrayBuffer&&"string"==typeof t.type&&"function"==typeof t.stream&&"function"==typeof t.constructor&&"string"==typeof t.constructor.name&&/^(Blob|File)$/.test(t.constructor.name)&&/^(Blob|File)$/.test(t[Symbol.toStringTag])}function w(t){let e,n,i=t.body;if(t.bodyUsed)throw new Error("cannot clone body after it is used");return i instanceof r&&"function"!=typeof i.getBoundary&&(e=new m,n=new m,i.pipe(e),i.pipe(n),t[h].body=e,i=n),i}function I(t){return null===t?null:"string"==typeof t?"text/plain;charset=UTF-8":g(t)?"application/x-www-form-urlencoded;charset=UTF-8":b(t)?t.type||null:Buffer.isBuffer(t)?null:"[object ArrayBuffer]"===Object.prototype.toString.call(t)?null:ArrayBuffer.isView(t)?null:"function"==typeof t.getBoundary?`multipart/form-data;boundary=${t.getBoundary()}`:t instanceof r?null:"text/plain;charset=UTF-8"}function E(t){const e=t.body;return null===e?0:b(e)?e.size:Buffer.isBuffer(e)?e.length:e&&"function"==typeof e.getLengthSync&&(e._lengthRetrievers&&0==e._lengthRetrievers.length||e.hasKnownLength&&e.hasKnownLength())?e.getLengthSync():null}y.prototype={get body(){return this[h].body},get bodyUsed(){return this[h].disturbed},arrayBuffer(){return v.call(this).then(function(t){return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)})},blob(){let t=this.headers&&this.headers.get("content-type")||"";return v.call(this).then(function(e){return Object.assign(new l([],{type:t.toLowerCase()}),{[c]:e})})},json(){var t=this;return v.call(this).then(function(e){try{return JSON.parse(e.toString())}catch(e){return y.Promise.reject(new p(`invalid json response body at ${t.url} reason: ${e.message}`,"invalid-json"))}})},text(){return v.call(this).then(function(t){return t.toString()})},buffer(){return v.call(this)},textConverted(){var t=this;return v.call(this).then(function(e){return function(t,e){if("function"!=typeof f)throw new Error("The package `encoding` must be installed to use the textConverted() function");const n=e.get("content-type");let r,i,o="utf-8";n&&(r=/charset=([^;]*)/i.exec(n));i=t.slice(0,1024).toString(),!r&&i&&(r=/0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[S]=Object.create(null),t instanceof P){const e=t.raw(),n=Object.keys(e);for(const t of n)for(const n of e[t])this.append(t,n)}else if(null==t);else{if("object"!=typeof t)throw new TypeError("Provided initializer must be an object");{const e=t[Symbol.iterator];if(null!=e){if("function"!=typeof e)throw new TypeError("Header pairs must be iterable");const n=[];for(const e of t){if("object"!=typeof e||"function"!=typeof e[Symbol.iterator])throw new TypeError("Each header pair must be iterable");n.push(Array.from(e))}for(const t of n){if(2!==t.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(t[0],t[1])}}else for(const e of Object.keys(t)){const n=t[e];this.append(e,n)}}}}get(t){j(t=`${t}`);const e=O(this[S],t);return void 0===e?null:this[S][e].join(", ")}forEach(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=_(this),r=0;for(;r1&&void 0!==arguments[1]?arguments[1]:"key+value";return Object.keys(t[S]).sort().map("key"===e?function(t){return t.toLowerCase()}:"value"===e?function(e){return t[S][e].join(", ")}:function(e){return[e.toLowerCase(),t[S][e].join(", ")]})}P.prototype.entries=P.prototype[Symbol.iterator],Object.defineProperty(P.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(P.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const k=Symbol("internal");function A(t,e){const n=Object.create(M);return n[k]={target:t,kind:e,index:0},n}const M=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==M)throw new TypeError("Value of `this` is not a HeadersIterator");var t=this[k];const e=t.target,n=t.kind,r=t.index,i=_(e,n);return r>=i.length?{value:void 0,done:!0}:(this[k].index=r+1,{value:i[r],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function D(t){const e=Object.assign({__proto__:null},t[S]),n=O(t[S],"Host");return void 0!==n&&(e[n]=e[n][0]),e}Object.defineProperty(M,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const N=Symbol("Response internals"),x=i.STATUS_CODES;class R{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};y.call(this,t,e);const n=e.status||200,r=new P(e.headers);if(null!=t&&!r.has("Content-Type")){const e=I(t);e&&r.append("Content-Type",e)}this[N]={url:e.url,status:n,statusText:e.statusText||x[n],headers:r,counter:e.counter}}get url(){return this[N].url||""}get status(){return this[N].status}get ok(){return this[N].status>=200&&this[N].status<300}get redirected(){return this[N].counter>0}get statusText(){return this[N].statusText}get headers(){return this[N].headers}clone(){return new R(w(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}y.mixIn(R.prototype),Object.defineProperties(R.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(R.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const L=Symbol("Request internals"),U=o.parse,B=o.format,z="destroy"in r.Readable.prototype;function F(t){return"object"==typeof t&&"object"==typeof t[L]}class q{constructor(t){let e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};F(t)?e=U(t.url):(e=t&&t.href?U(t.href):U(`${t}`),t={});let r=n.method||t.method||"GET";if(r=r.toUpperCase(),(null!=n.body||F(t)&&null!==t.body)&&("GET"===r||"HEAD"===r))throw new TypeError("Request with GET/HEAD method cannot have body");let i=null!=n.body?n.body:F(t)&&null!==t.body?w(t):null;y.call(this,i,{timeout:n.timeout||t.timeout||0,size:n.size||t.size||0});const o=new P(n.headers||t.headers||{});if(null!=i&&!o.has("Content-Type")){const t=I(i);t&&o.append("Content-Type",t)}let a=F(t)?t.signal:null;if("signal"in n&&(a=n.signal),null!=a&&!function(t){const e=t&&"object"==typeof t&&Object.getPrototypeOf(t);return!(!e||"AbortSignal"!==e.constructor.name)}(a))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[L]={method:r,redirect:n.redirect||t.redirect||"follow",headers:o,parsedURL:e,signal:a},this.follow=void 0!==n.follow?n.follow:void 0!==t.follow?t.follow:20,this.compress=void 0!==n.compress?n.compress:void 0===t.compress||t.compress,this.counter=n.counter||t.counter||0,this.agent=n.agent||t.agent}get method(){return this[L].method}get url(){return B(this[L].parsedURL)}get headers(){return this[L].headers}get redirect(){return this[L].redirect}get signal(){return this[L].signal}clone(){return new q(this)}}function V(t){Error.call(this,t),this.type="aborted",this.message=t,Error.captureStackTrace(this,this.constructor)}y.mixIn(q.prototype),Object.defineProperty(q.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(q.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),V.prototype=Object.create(Error.prototype),V.prototype.constructor=V,V.prototype.name="AbortError";const H=r.PassThrough,G=o.resolve;function Y(t,e){if(!Y.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return y.Promise=Y.Promise,new Y.Promise(function(n,o){const u=new q(t,e),c=function(t){const e=t[L].parsedURL,n=new P(t[L].headers);if(n.has("Accept")||n.set("Accept","*/*"),!e.protocol||!e.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(e.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(t.signal&&t.body instanceof r.Readable&&!z)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let i=null;if(null==t.body&&/^(POST|PUT)$/i.test(t.method)&&(i="0"),null!=t.body){const e=E(t);"number"==typeof e&&(i=String(e))}i&&n.set("Content-Length",i),n.has("User-Agent")||n.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),t.compress&&!n.has("Accept-Encoding")&&n.set("Accept-Encoding","gzip,deflate");let o=t.agent;return"function"==typeof o&&(o=o(e)),n.has("Connection")||o||n.set("Connection","close"),Object.assign({},e,{method:t.method,headers:D(n),agent:o})}(u),d=("https:"===c.protocol?a:i).request,l=u.signal;let f=null;const h=function(){let t=new V("The user aborted a request.");o(t),u.body&&u.body instanceof r.Readable&&u.body.destroy(t),f&&f.body&&f.body.emit("error",t)};if(l&&l.aborted)return void h();const m=function(){h(),g()},y=d(c);let v;function g(){y.abort(),l&&l.removeEventListener("abort",m),clearTimeout(v)}l&&l.addEventListener("abort",m),u.timeout&&y.once("socket",function(t){v=setTimeout(function(){o(new p(`network timeout at: ${u.url}`,"request-timeout")),g()},u.timeout)}),y.on("error",function(t){o(new p(`request to ${u.url} failed, reason: ${t.message}`,"system",t)),g()}),y.on("response",function(t){clearTimeout(v);const e=function(t){const e=new P;for(const n of Object.keys(t))if(!C.test(n))if(Array.isArray(t[n]))for(const r of t[n])$.test(r)||(void 0===e[S][n]?e[S][n]=[r]:e[S][n].push(r));else $.test(t[n])||(e[S][n]=[t[n]]);return e}(t.headers);if(Y.isRedirect(t.statusCode)){const r=e.get("Location"),i=null===r?null:G(u.url,r);switch(u.redirect){case"error":return o(new p(`redirect mode is set to error: ${u.url}`,"no-redirect")),void g();case"manual":if(null!==i)try{e.set("Location",i)}catch(t){o(t)}break;case"follow":if(null===i)break;if(u.counter>=u.follow)return o(new p(`maximum redirect reached at: ${u.url}`,"max-redirect")),void g();const r={headers:new P(u.headers),follow:u.follow,counter:u.counter+1,agent:u.agent,compress:u.compress,method:u.method,body:u.body,signal:u.signal,timeout:u.timeout};return 303!==t.statusCode&&u.body&&null===E(u)?(o(new p("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void g()):(303!==t.statusCode&&(301!==t.statusCode&&302!==t.statusCode||"POST"!==u.method)||(r.method="GET",r.body=void 0,r.headers.delete("content-length")),n(Y(new q(i,r))),void g())}}t.once("end",function(){l&&l.removeEventListener("abort",m)});let r=t.pipe(new H);const i={url:u.url,status:t.statusCode,statusText:t.statusMessage,headers:e,size:u.size,timeout:u.timeout,counter:u.counter},a=e.get("Content-Encoding");if(!u.compress||"HEAD"===u.method||null===a||204===t.statusCode||304===t.statusCode)return f=new R(r,i),void n(f);const c={flush:s.Z_SYNC_FLUSH,finishFlush:s.Z_SYNC_FLUSH};if("gzip"==a||"x-gzip"==a)return r=r.pipe(s.createGunzip(c)),f=new R(r,i),void n(f);if("deflate"!=a&&"x-deflate"!=a){if("br"==a&&"function"==typeof s.createBrotliDecompress)return r=r.pipe(s.createBrotliDecompress()),f=new R(r,i),void n(f);f=new R(r,i),n(f)}else{t.pipe(new H).once("data",function(t){r=8==(15&t[0])?r.pipe(s.createInflate()):r.pipe(s.createInflateRaw()),f=new R(r,i),n(f)})}}),function(t,e){const n=e.body;null===n?t.end():b(n)?n.stream().pipe(t):Buffer.isBuffer(n)?(t.write(n),t.end()):n.pipe(t)}(y,u)})}Y.isRedirect=function(t){return 301===t||302===t||303===t||307===t||308===t},Y.Promise=global.Promise,e.default=Y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";n.r(e);var r,i,o,a,s,u,c,d,l,p,f,h,m,y=n(4),v=n.n(y),g=n(6),b=n.n(g),w=n(7),I=(n(9),function(){return(I=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1};function o(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n.iterable&&(e[Symbol.iterator]=function(){return e}),e}function u(t){this.map={},t instanceof u?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function d(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function c(t){return new Promise(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function p(t){var e=new FileReader,n=c(e);return e.readAsArrayBuffer(t),n}function l(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:n.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:n.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():n.arrayBuffer&&n.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=l(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=l(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var t=d(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var t,e,n,i=d(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=c(e),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),i=0;i-1?i:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function m(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var n=t.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}}),e}function y(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new u(e.headers),this.url=e.url||"",this._initBody(t)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},f.call(v.prototype),f.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},y.error=function(){var t=new y(null,{status:0,statusText:""});return t.type="error",t};var g=[301,302,303,307,308];y.redirect=function(t,e){if(-1===g.indexOf(e))throw new RangeError("Invalid status code");return new y(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function b(t,i){return new Promise(function(r,o){var a=new v(t,i);if(a.signal&&a.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function d(){s.abort()}s.onload=function(){var t,e,n={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new u,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var n=t.split(":"),i=n.shift().trim();if(i){var r=n.join(":").trim();e.append(i,r)}}),e)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new y(i,n))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&n.blob&&(s.responseType="blob"),a.headers.forEach(function(t,e){s.setRequestHeader(e,t)}),a.signal&&(a.signal.addEventListener("abort",d),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",d)}),s.send(void 0===a._bodyInit?null:a._bodyInit)})}b.polyfill=!0,t.fetch||(t.fetch=b,t.Headers=u,t.Request=v,t.Response=y),e.Headers=u,e.Request=v,e.Response=y,e.fetch=b}({})}(n),delete n.fetch.polyfill,(e=n.fetch).default=n.fetch,e.fetch=n.fetch,e.Headers=n.Headers,e.Request=n.Request,e.Response=n.Response,t.exports=e},function(t,e,n){(function(e){var n="Expected a function",i="__lodash_hash_undefined__",r=1/0,o="[object Function]",a="[object GeneratorFunction]",s="[object Symbol]",u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/,c=/^\./,p=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,h="object"==typeof e&&e&&e.Object===Object&&e,v="object"==typeof self&&self&&self.Object===Object&&self,m=h||v||Function("return this")();var y,g=Array.prototype,b=Function.prototype,I=Object.prototype,E=m["__core-js_shared__"],_=(y=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||""))?"Symbol(src)_1."+y:"",C=b.toString,$=I.hasOwnProperty,O=I.toString,w=RegExp("^"+C.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),T=m.Symbol,j=g.splice,P=L(m,"Map"),k=L(Object,"create"),D=T?T.prototype:void 0,A=D?D.toString:void 0;function M(t){var e=-1,n=t?t.length:0;for(this.clear();++e-1},N.prototype.set=function(t,e){var n=this.__data__,i=x(n,t);return i<0?n.push([t,e]):n[i][1]=e,this},S.prototype.clear=function(){this.__data__={hash:new M,map:new(P||N),string:new M}},S.prototype.delete=function(t){return F(this,t).delete(t)},S.prototype.get=function(t){return F(this,t).get(t)},S.prototype.has=function(t){return F(this,t).has(t)},S.prototype.set=function(t,e){return F(this,t).set(t,e),this};var B=V(function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(H(t))return A?A.call(t):"";var e=t+"";return"0"==e&&1/t==-r?"-0":e}(e);var n=[];return c.test(t)&&n.push(""),t.replace(p,function(t,e,i,r){n.push(i?r.replace(l,"$1"):e||t)}),n});function q(t){if("string"==typeof t||H(t))return t;var e=t+"";return"0"==e&&1/t==-r?"-0":e}function V(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(n);var i=function(){var n=arguments,r=e?e.apply(this,n):n[0],o=i.cache;if(o.has(r))return o.get(r);var a=t.apply(this,n);return i.cache=o.set(r,a),a};return i.cache=new(V.Cache||S),i}V.Cache=S;var z=Array.isArray;function G(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function H(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&O.call(t)==s}t.exports=function(t,e,n){var i=null==t?void 0:R(t,e);return void 0===i?n:i}}).call(this,n(3))},function(t,e,n){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),(i=e.codes||(e.codes={})).OBJECT_DUPLICATE="OBJECT_DUPLICATE",i.OBJECT_NOT_FOUND="OBJECT_NOT_FOUND",i.TOKEN_EXPIRED="TOKEN_EXPIRED",i.TOKEN_MALFORMED="TOKEN_MALFORMED",i.ACCESS_DENIED="ACCESS_DENIED",i.INVALID_CREDENTIALS="INVALID_CREDENTIALS",i.QUERY_DEPTH_EXCEEDED="QUERY_DEPTH_EXCEEDED",i.QUERY_COMPLEXITY_EXCEEDED="QUERY_COMPLEXITY_EXCEEDED",i.QUERY_BREADTH_EXCEEDED="QUERY_BREADTH_EXCEEDED",i.INPUT_LIST_EMPTY="INPUT_LIST_EMPTY",i.INPUT_LIST_MIN="INPUT_LIST_MIN",i.INPUT_LIST_MAX="INPUT_LIST_MAX",i.INPUT_INVALID="INPUT_INVALID",i.UNKNOWN_ERROR="UKNOWN_ERROR";e.isValidCode=function(t){return Object.keys(e.codes).includes(t)}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";n.r(e);var i,r,o,a,s,u,d,c,p,l,f,h,v,m=n(0),y=n.n(m),g=n(1),b=n.n(g),I=n(2),E=(n(4),function(){return(E=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]-1};function o(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n.iterable&&(e[Symbol.iterator]=function(){return e}),e}function u(t){this.map={},t instanceof u?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function d(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function c(t){return new Promise(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function p(t){var e=new FileReader,n=c(e);return e.readAsArrayBuffer(t),n}function l(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:n.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:n.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():n.arrayBuffer&&n.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=l(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||i(t))?this._bodyArrayBuffer=l(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var t=d(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var t,e,n,r=d(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=c(e),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function m(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}}),e}function y(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new u(e.headers),this.url=e.url||"",this._initBody(t)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},f.call(v.prototype),f.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},y.error=function(){var t=new y(null,{status:0,statusText:""});return t.type="error",t};var g=[301,302,303,307,308];y.redirect=function(t,e){if(-1===g.indexOf(e))throw new RangeError("Invalid status code");return new y(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function b(t,r){return new Promise(function(i,o){var a=new v(t,r);if(a.signal&&a.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function d(){s.abort()}s.onload=function(){var t,e,n={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new u,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var n=t.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();e.append(r,i)}}),e)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;i(new y(r,n))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&n.blob&&(s.responseType="blob"),a.headers.forEach(function(t,e){s.setRequestHeader(e,t)}),a.signal&&(a.signal.addEventListener("abort",d),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",d)}),s.send(void 0===a._bodyInit?null:a._bodyInit)})}b.polyfill=!0,t.fetch||(t.fetch=b,t.Headers=u,t.Request=v,t.Response=y),e.Headers=u,e.Request=v,e.Response=y,e.fetch=b}({})}(n),delete n.fetch.polyfill,(e=n.fetch).default=n.fetch,e.fetch=n.fetch,e.Headers=n.Headers,e.Request=n.Request,e.Response=n.Response,t.exports=e},function(t,e,n){(function(e){var n="Expected a function",r="__lodash_hash_undefined__",i=1/0,o="[object Function]",a="[object GeneratorFunction]",s="[object Symbol]",u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/,c=/^\./,p=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,h="object"==typeof e&&e&&e.Object===Object&&e,v="object"==typeof self&&self&&self.Object===Object&&self,m=h||v||Function("return this")();var y,g=Array.prototype,b=Function.prototype,I=Object.prototype,E=m["__core-js_shared__"],_=(y=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||""))?"Symbol(src)_1."+y:"",C=b.toString,w=I.hasOwnProperty,$=I.toString,O=RegExp("^"+C.call(w).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),T=m.Symbol,j=g.splice,P=L(m,"Map"),k=L(Object,"create"),S=T?T.prototype:void 0,D=S?S.toString:void 0;function A(t){var e=-1,n=t?t.length:0;for(this.clear();++e-1},M.prototype.set=function(t,e){var n=this.__data__,r=x(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},N.prototype.clear=function(){this.__data__={hash:new A,map:new(P||M),string:new A}},N.prototype.delete=function(t){return F(this,t).delete(t)},N.prototype.get=function(t){return F(this,t).get(t)},N.prototype.has=function(t){return F(this,t).has(t)},N.prototype.set=function(t,e){return F(this,t).set(t,e),this};var B=V(function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(H(t))return D?D.call(t):"";var e=t+"";return"0"==e&&1/t==-i?"-0":e}(e);var n=[];return c.test(t)&&n.push(""),t.replace(p,function(t,e,r,i){n.push(r?i.replace(l,"$1"):e||t)}),n});function q(t){if("string"==typeof t||H(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}function V(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(n);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a),a};return r.cache=new(V.Cache||N),r}V.Cache=N;var z=Array.isArray;function G(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function H(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&$.call(t)==s}t.exports=function(t,e,n){var r=null==t?void 0:R(t,e);return void 0===r?n:r}}).call(this,n(3))},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),(r=e.codes||(e.codes={})).OBJECT_DUPLICATE="OBJECT_DUPLICATE",r.OBJECT_NOT_FOUND="OBJECT_NOT_FOUND",r.TOKEN_EXPIRED="TOKEN_EXPIRED",r.TOKEN_MALFORMED="TOKEN_MALFORMED",r.ACCESS_DENIED="ACCESS_DENIED",r.INVALID_CREDENTIALS="INVALID_CREDENTIALS",r.QUERY_DEPTH_EXCEEDED="QUERY_DEPTH_EXCEEDED",r.QUERY_COMPLEXITY_EXCEEDED="QUERY_COMPLEXITY_EXCEEDED",r.QUERY_BREADTH_EXCEEDED="QUERY_BREADTH_EXCEEDED",r.INPUT_LIST_EMPTY="INPUT_LIST_EMPTY",r.INPUT_LIST_MIN="INPUT_LIST_MIN",r.INPUT_LIST_MAX="INPUT_LIST_MAX",r.INPUT_INVALID="INPUT_INVALID",r.UNKNOWN_ERROR="UKNOWN_ERROR";e.isValidCode=function(t){return Object.keys(e.codes).includes(t)}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";n.r(e);var r,i,o,a,s,u,d,c,p,l,f,h,v,m=n(0),y=n.n(m),g=n(1),b=n.n(g),I=n(2),E=(n(4),function(){return(E=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1] = T | null; -export declare type Omit = Pick>; export declare type RequireFields = { [X in Exclude]?: T[X]; } & { @@ -107,7 +106,7 @@ export declare type Catalog = { systemStatus: SystemStatus; remoteState: Scalars['JSONObject']; dataFeedId?: Maybe; - error?: Maybe; + errors?: Maybe>; mediaChannel: MediaChannel; products?: Maybe; }; @@ -182,7 +181,14 @@ export declare type EntitlementInput = { resourceId: Scalars['ObjectId']; permissions: Array; }; -export declare type EntitlementResource = Marketplace | Organization | MediaChannel; +export declare type EntitlementResource = { + id: Scalars['ObjectId']; + name: Scalars['NonEmptyString']; + systemStatus: SystemStatus; + creationDate: Scalars['DateISO']; + lastChangeDate: Scalars['DateISO']; + errors?: Maybe>; +}; export declare enum EntitlementResourceTypeEnum { Marketplace = "Marketplace", Organization = "Organization", @@ -197,7 +203,7 @@ export declare type EntitlementsFilterInput = { export declare type EntitlementUpdateInput = { permissions: Array; }; -export declare type MarketingAd = { +export declare type MarketingAd = ResultResource & { id: Scalars['ObjectId']; creationDate: Scalars['DateISO']; lastChangeDate: Scalars['DateISO']; @@ -225,7 +231,7 @@ export declare type MarketingAdsFilterInput = { marketingCampaignId?: Maybe; remoteId?: Maybe; }; -export declare type MarketingCampaign = { +export declare type MarketingCampaign = ResultResource & { id: Scalars['ObjectId']; creationDate: Scalars['DateISO']; lastChangeDate: Scalars['DateISO']; @@ -239,6 +245,7 @@ export declare type MarketingCampaign = { creativeSpec: Scalars['JSONObject']; runTimeSpec: Scalars['JSONObject']; systemStatus: SystemStatus; + errors?: Maybe>; }; export declare type MarketingCampaignMarketingAdsArgs = { first?: Maybe; @@ -285,7 +292,7 @@ export declare type MarketingCampaignUpdateInput = { runTimeSpec?: Maybe; status?: Maybe; }; -export declare type Marketplace = { +export declare type Marketplace = EntitlementResource & { id: Scalars['ObjectId']; creationDate: Scalars['DateISO']; lastChangeDate: Scalars['DateISO']; @@ -295,6 +302,7 @@ export declare type Marketplace = { campaignTemplates?: Maybe; vendors?: Maybe; systemStatus: SystemStatus; + errors?: Maybe>; }; export declare type MarketplaceMediaChannelsArgs = { first?: Maybe; @@ -333,7 +341,7 @@ export declare type MarketplacesFilterInput = { export declare type MarketplaceUpdateInput = { name?: Maybe; }; -export declare type MediaChannel = { +export declare type MediaChannel = EntitlementResource & { id: Scalars['ObjectId']; creationDate: Scalars['DateISO']; lastChangeDate: Scalars['DateISO']; @@ -345,7 +353,7 @@ export declare type MediaChannel = { timezone?: Maybe; tokenStatus: TokenStatus; systemStatus: SystemStatus; - error?: Maybe; + errors?: Maybe>; catalogs: CatalogConnection; marketplace: Marketplace; }; @@ -516,7 +524,7 @@ export declare type MutationUpdateVendorArgs = { export declare type MutationDeleteVendorArgs = { id: Scalars['ObjectId']; }; -export declare type Organization = { +export declare type Organization = EntitlementResource & { id: Scalars['ObjectId']; creationDate: Scalars['DateISO']; lastChangeDate: Scalars['DateISO']; @@ -525,7 +533,7 @@ export declare type Organization = { name: Scalars['NonEmptyString']; tier: OrganizationTierEnum; systemStatus: SystemStatus; - error?: Maybe; + errors?: Maybe>; }; export declare type OrganizationUsersArgs = { first?: Maybe; @@ -751,7 +759,12 @@ export declare type ResultEdge = { cursor: Scalars['ObjectId']; node?: Maybe; }; -export declare type ResultResource = MarketingAd | MarketingCampaign; +export declare type ResultResource = { + id: Scalars['ObjectId']; + creationDate: Scalars['DateISO']; + lastChangeDate: Scalars['DateISO']; + vendor: Vendor; +}; export declare enum ResultResourceTypeEnum { MarketingAd = "MarketingAd", MarketingCampaign = "MarketingCampaign" @@ -829,6 +842,7 @@ export declare type Vendor = { marketplace: Marketplace; products?: Maybe; systemStatus: SystemStatus; + errors?: Maybe>; }; export declare type VendorProductsArgs = { first?: Maybe; @@ -894,6 +908,9 @@ export declare type ResolversTypes = { String: ResolverTypeWrapper; Platform: Platform; Marketplace: ResolverTypeWrapper; + EntitlementResource: ResolverTypeWrapper; + SystemStatus: SystemStatus; + JSONObject: ResolverTypeWrapper; Organization: ResolverTypeWrapper; Int: ResolverTypeWrapper; UserConnection: ResolverTypeWrapper; @@ -905,15 +922,16 @@ export declare type ResolversTypes = { Boolean: ResolverTypeWrapper; EntitlementConnection: ResolverTypeWrapper; EntitlementEdge: ResolverTypeWrapper; - Entitlement: ResolverTypeWrapper & { - resource: ResolversTypes['EntitlementResource']; - }>; + Entitlement: ResolverTypeWrapper; EntitlementResourceTypeEnum: EntitlementResourceTypeEnum; - EntitlementResource: ResolversTypes['Marketplace'] | ResolversTypes['Organization'] | ResolversTypes['MediaChannel']; + AuthPermission: AuthPermission; + MarketplaceConnection: ResolverTypeWrapper; + MarketplaceEdge: ResolverTypeWrapper; + OrganizationTierEnum: OrganizationTierEnum; + MediaChannelConnection: ResolverTypeWrapper; + MediaChannelEdge: ResolverTypeWrapper; MediaChannel: ResolverTypeWrapper; - JSONObject: ResolverTypeWrapper; TokenStatus: TokenStatus; - SystemStatus: SystemStatus; CatalogConnection: ResolverTypeWrapper; CatalogEdge: ResolverTypeWrapper; Catalog: ResolverTypeWrapper; @@ -924,24 +942,16 @@ export declare type ResolversTypes = { MarketingCampaignConnection: ResolverTypeWrapper; MarketingCampaignEdge: ResolverTypeWrapper; MarketingCampaign: ResolverTypeWrapper; + ResultResource: ResolverTypeWrapper; + Vendor: ResolverTypeWrapper; MarketingCampaignStatus: MarketingCampaignStatus; MarketingAdConnection: ResolverTypeWrapper; MarketingAdEdge: ResolverTypeWrapper; MarketingAd: ResolverTypeWrapper; ResultConnection: ResolverTypeWrapper; ResultEdge: ResolverTypeWrapper; - Result: ResolverTypeWrapper & { - resource: ResolversTypes['ResultResource']; - }>; + Result: ResolverTypeWrapper; ResultResourceTypeEnum: ResultResourceTypeEnum; - ResultResource: ResolversTypes['MarketingAd'] | ResolversTypes['MarketingCampaign']; - Vendor: ResolverTypeWrapper; - AuthPermission: AuthPermission; - MarketplaceConnection: ResolverTypeWrapper; - MarketplaceEdge: ResolverTypeWrapper; - OrganizationTierEnum: OrganizationTierEnum; - MediaChannelConnection: ResolverTypeWrapper; - MediaChannelEdge: ResolverTypeWrapper; CampaignTemplateConnection: ResolverTypeWrapper; CampaignTemplateEdge: ResolverTypeWrapper; VendorConnection: ResolverTypeWrapper; @@ -997,6 +1007,9 @@ export declare type ResolversParentTypes = { String: Scalars['String']; Platform: Platform; Marketplace: Marketplace; + EntitlementResource: EntitlementResource; + SystemStatus: SystemStatus; + JSONObject: Scalars['JSONObject']; Organization: Organization; Int: Scalars['Int']; UserConnection: UserConnection; @@ -1008,15 +1021,16 @@ export declare type ResolversParentTypes = { Boolean: Scalars['Boolean']; EntitlementConnection: EntitlementConnection; EntitlementEdge: EntitlementEdge; - Entitlement: Omit & { - resource: ResolversTypes['EntitlementResource']; - }; + Entitlement: Entitlement; EntitlementResourceTypeEnum: EntitlementResourceTypeEnum; - EntitlementResource: ResolversTypes['Marketplace'] | ResolversTypes['Organization'] | ResolversTypes['MediaChannel']; + AuthPermission: AuthPermission; + MarketplaceConnection: MarketplaceConnection; + MarketplaceEdge: MarketplaceEdge; + OrganizationTierEnum: OrganizationTierEnum; + MediaChannelConnection: MediaChannelConnection; + MediaChannelEdge: MediaChannelEdge; MediaChannel: MediaChannel; - JSONObject: Scalars['JSONObject']; TokenStatus: TokenStatus; - SystemStatus: SystemStatus; CatalogConnection: CatalogConnection; CatalogEdge: CatalogEdge; Catalog: Catalog; @@ -1027,24 +1041,16 @@ export declare type ResolversParentTypes = { MarketingCampaignConnection: MarketingCampaignConnection; MarketingCampaignEdge: MarketingCampaignEdge; MarketingCampaign: MarketingCampaign; + ResultResource: ResultResource; + Vendor: Vendor; MarketingCampaignStatus: MarketingCampaignStatus; MarketingAdConnection: MarketingAdConnection; MarketingAdEdge: MarketingAdEdge; MarketingAd: MarketingAd; ResultConnection: ResultConnection; ResultEdge: ResultEdge; - Result: Omit & { - resource: ResolversTypes['ResultResource']; - }; + Result: Result; ResultResourceTypeEnum: ResultResourceTypeEnum; - ResultResource: ResolversTypes['MarketingAd'] | ResolversTypes['MarketingCampaign']; - Vendor: Vendor; - AuthPermission: AuthPermission; - MarketplaceConnection: MarketplaceConnection; - MarketplaceEdge: MarketplaceEdge; - OrganizationTierEnum: OrganizationTierEnum; - MediaChannelConnection: MediaChannelConnection; - MediaChannelEdge: MediaChannelEdge; CampaignTemplateConnection: CampaignTemplateConnection; CampaignTemplateEdge: CampaignTemplateEdge; VendorConnection: VendorConnection; @@ -1134,7 +1140,7 @@ export declare type CatalogResolvers; remoteState?: Resolver; dataFeedId?: Resolver, ParentType, ContextType>; - error?: Resolver, ParentType, ContextType>; + errors?: Resolver>, ParentType, ContextType>; mediaChannel?: Resolver; products?: Resolver, ParentType, ContextType, CatalogProductsArgs>; }; @@ -1171,6 +1177,12 @@ export declare type EntitlementEdgeResolvers = { __resolveType: TypeResolveFn<'Marketplace' | 'Organization' | 'MediaChannel', ParentType, ContextType>; + id?: Resolver; + name?: Resolver; + systemStatus?: Resolver; + creationDate?: Resolver; + lastChangeDate?: Resolver; + errors?: Resolver>, ParentType, ContextType>; }; export interface JsonObjectScalarConfig extends GraphQLScalarTypeConfig { name: 'JSONObject'; @@ -1207,6 +1219,7 @@ export declare type MarketingCampaignResolvers; runTimeSpec?: Resolver; systemStatus?: Resolver; + errors?: Resolver>, ParentType, ContextType>; }; export declare type MarketingCampaignConnectionResolvers = { edges?: Resolver>>, ParentType, ContextType>; @@ -1226,6 +1239,7 @@ export declare type MarketplaceResolvers, ParentType, ContextType, MarketplaceCampaignTemplatesArgs>; vendors?: Resolver, ParentType, ContextType, MarketplaceVendorsArgs>; systemStatus?: Resolver; + errors?: Resolver>, ParentType, ContextType>; }; export declare type MarketplaceConnectionResolvers = { edges?: Resolver>>, ParentType, ContextType>; @@ -1247,7 +1261,7 @@ export declare type MediaChannelResolvers, ParentType, ContextType>; tokenStatus?: Resolver; systemStatus?: Resolver; - error?: Resolver, ParentType, ContextType>; + errors?: Resolver>, ParentType, ContextType>; catalogs?: Resolver; marketplace?: Resolver; }; @@ -1305,7 +1319,7 @@ export declare type OrganizationResolvers; tier?: Resolver; systemStatus?: Resolver; - error?: Resolver, ParentType, ContextType>; + errors?: Resolver>, ParentType, ContextType>; }; export declare type OrganizationConnectionResolvers = { edges?: Resolver>>, ParentType, ContextType>; @@ -1388,7 +1402,11 @@ export declare type ResultEdgeResolvers, ParentType, ContextType>; }; export declare type ResultResourceResolvers = { - __resolveType: TypeResolveFn<'MarketingAd' | 'MarketingCampaign', ParentType, ContextType>; + __resolveType: TypeResolveFn<'MarketingCampaign' | 'MarketingAd', ParentType, ContextType>; + id?: Resolver; + creationDate?: Resolver; + lastChangeDate?: Resolver; + vendor?: Resolver; }; export declare type TokenResolvers = { token?: Resolver; @@ -1425,6 +1443,7 @@ export declare type VendorResolvers; products?: Resolver, ParentType, ContextType, VendorProductsArgs>; systemStatus?: Resolver; + errors?: Resolver>, ParentType, ContextType>; }; export declare type VendorConnectionResolvers = { edges?: Resolver>>, ParentType, ContextType>; diff --git a/src/generated/graphql.ts b/src/generated/graphql.ts index b057160..d5ef5ac 100644 --- a/src/generated/graphql.ts +++ b/src/generated/graphql.ts @@ -4,7 +4,6 @@ import { GraphQLScalarTypeConfig, } from 'graphql'; export type Maybe = T | null; -export type Omit = Pick>; export type RequireFields = { [X in Exclude]?: T[X] } & @@ -121,7 +120,7 @@ export type Catalog = { systemStatus: SystemStatus; remoteState: Scalars['JSONObject']; dataFeedId?: Maybe; - error?: Maybe; + errors?: Maybe>; mediaChannel: MediaChannel; products?: Maybe; }; @@ -210,7 +209,14 @@ export type EntitlementInput = { permissions: Array; }; -export type EntitlementResource = Marketplace | Organization | MediaChannel; +export type EntitlementResource = { + id: Scalars['ObjectId']; + name: Scalars['NonEmptyString']; + systemStatus: SystemStatus; + creationDate: Scalars['DateISO']; + lastChangeDate: Scalars['DateISO']; + errors?: Maybe>; +}; export enum EntitlementResourceTypeEnum { Marketplace = 'Marketplace', @@ -229,7 +235,7 @@ export type EntitlementUpdateInput = { permissions: Array; }; -export type MarketingAd = { +export type MarketingAd = ResultResource & { id: Scalars['ObjectId']; creationDate: Scalars['DateISO']; lastChangeDate: Scalars['DateISO']; @@ -262,7 +268,7 @@ export type MarketingAdsFilterInput = { remoteId?: Maybe; }; -export type MarketingCampaign = { +export type MarketingCampaign = ResultResource & { id: Scalars['ObjectId']; creationDate: Scalars['DateISO']; lastChangeDate: Scalars['DateISO']; @@ -276,6 +282,7 @@ export type MarketingCampaign = { creativeSpec: Scalars['JSONObject']; runTimeSpec: Scalars['JSONObject']; systemStatus: SystemStatus; + errors?: Maybe>; }; export type MarketingCampaignMarketingAdsArgs = { @@ -332,7 +339,7 @@ export type MarketingCampaignUpdateInput = { status?: Maybe; }; -export type Marketplace = { +export type Marketplace = EntitlementResource & { id: Scalars['ObjectId']; creationDate: Scalars['DateISO']; lastChangeDate: Scalars['DateISO']; @@ -342,6 +349,7 @@ export type Marketplace = { campaignTemplates?: Maybe; vendors?: Maybe; systemStatus: SystemStatus; + errors?: Maybe>; }; export type MarketplaceMediaChannelsArgs = { @@ -389,7 +397,7 @@ export type MarketplaceUpdateInput = { name?: Maybe; }; -export type MediaChannel = { +export type MediaChannel = EntitlementResource & { id: Scalars['ObjectId']; creationDate: Scalars['DateISO']; lastChangeDate: Scalars['DateISO']; @@ -401,7 +409,7 @@ export type MediaChannel = { timezone?: Maybe; tokenStatus: TokenStatus; systemStatus: SystemStatus; - error?: Maybe; + errors?: Maybe>; catalogs: CatalogConnection; marketplace: Marketplace; }; @@ -610,7 +618,7 @@ export type MutationDeleteVendorArgs = { id: Scalars['ObjectId']; }; -export type Organization = { +export type Organization = EntitlementResource & { id: Scalars['ObjectId']; creationDate: Scalars['DateISO']; lastChangeDate: Scalars['DateISO']; @@ -619,7 +627,7 @@ export type Organization = { name: Scalars['NonEmptyString']; tier: OrganizationTierEnum; systemStatus: SystemStatus; - error?: Maybe; + errors?: Maybe>; }; export type OrganizationUsersArgs = { @@ -890,7 +898,12 @@ export type ResultEdge = { node?: Maybe; }; -export type ResultResource = MarketingAd | MarketingCampaign; +export type ResultResource = { + id: Scalars['ObjectId']; + creationDate: Scalars['DateISO']; + lastChangeDate: Scalars['DateISO']; + vendor: Vendor; +}; export enum ResultResourceTypeEnum { MarketingAd = 'MarketingAd', @@ -981,6 +994,7 @@ export type Vendor = { marketplace: Marketplace; products?: Maybe; systemStatus: SystemStatus; + errors?: Maybe>; }; export type VendorProductsArgs = { @@ -1128,6 +1142,9 @@ export type ResolversTypes = { String: ResolverTypeWrapper; Platform: Platform; Marketplace: ResolverTypeWrapper; + EntitlementResource: ResolverTypeWrapper; + SystemStatus: SystemStatus; + JSONObject: ResolverTypeWrapper; Organization: ResolverTypeWrapper; Int: ResolverTypeWrapper; UserConnection: ResolverTypeWrapper; @@ -1139,20 +1156,16 @@ export type ResolversTypes = { Boolean: ResolverTypeWrapper; EntitlementConnection: ResolverTypeWrapper; EntitlementEdge: ResolverTypeWrapper; - Entitlement: ResolverTypeWrapper< - Omit & { - resource: ResolversTypes['EntitlementResource']; - } - >; + Entitlement: ResolverTypeWrapper; EntitlementResourceTypeEnum: EntitlementResourceTypeEnum; - EntitlementResource: - | ResolversTypes['Marketplace'] - | ResolversTypes['Organization'] - | ResolversTypes['MediaChannel']; + AuthPermission: AuthPermission; + MarketplaceConnection: ResolverTypeWrapper; + MarketplaceEdge: ResolverTypeWrapper; + OrganizationTierEnum: OrganizationTierEnum; + MediaChannelConnection: ResolverTypeWrapper; + MediaChannelEdge: ResolverTypeWrapper; MediaChannel: ResolverTypeWrapper; - JSONObject: ResolverTypeWrapper; TokenStatus: TokenStatus; - SystemStatus: SystemStatus; CatalogConnection: ResolverTypeWrapper; CatalogEdge: ResolverTypeWrapper; Catalog: ResolverTypeWrapper; @@ -1165,28 +1178,16 @@ export type ResolversTypes = { >; MarketingCampaignEdge: ResolverTypeWrapper; MarketingCampaign: ResolverTypeWrapper; + ResultResource: ResolverTypeWrapper; + Vendor: ResolverTypeWrapper; MarketingCampaignStatus: MarketingCampaignStatus; MarketingAdConnection: ResolverTypeWrapper; MarketingAdEdge: ResolverTypeWrapper; MarketingAd: ResolverTypeWrapper; ResultConnection: ResolverTypeWrapper; ResultEdge: ResolverTypeWrapper; - Result: ResolverTypeWrapper< - Omit & { - resource: ResolversTypes['ResultResource']; - } - >; + Result: ResolverTypeWrapper; ResultResourceTypeEnum: ResultResourceTypeEnum; - ResultResource: - | ResolversTypes['MarketingAd'] - | ResolversTypes['MarketingCampaign']; - Vendor: ResolverTypeWrapper; - AuthPermission: AuthPermission; - MarketplaceConnection: ResolverTypeWrapper; - MarketplaceEdge: ResolverTypeWrapper; - OrganizationTierEnum: OrganizationTierEnum; - MediaChannelConnection: ResolverTypeWrapper; - MediaChannelEdge: ResolverTypeWrapper; CampaignTemplateConnection: ResolverTypeWrapper; CampaignTemplateEdge: ResolverTypeWrapper; VendorConnection: ResolverTypeWrapper; @@ -1243,6 +1244,9 @@ export type ResolversParentTypes = { String: Scalars['String']; Platform: Platform; Marketplace: Marketplace; + EntitlementResource: EntitlementResource; + SystemStatus: SystemStatus; + JSONObject: Scalars['JSONObject']; Organization: Organization; Int: Scalars['Int']; UserConnection: UserConnection; @@ -1254,18 +1258,16 @@ export type ResolversParentTypes = { Boolean: Scalars['Boolean']; EntitlementConnection: EntitlementConnection; EntitlementEdge: EntitlementEdge; - Entitlement: Omit & { - resource: ResolversTypes['EntitlementResource']; - }; + Entitlement: Entitlement; EntitlementResourceTypeEnum: EntitlementResourceTypeEnum; - EntitlementResource: - | ResolversTypes['Marketplace'] - | ResolversTypes['Organization'] - | ResolversTypes['MediaChannel']; + AuthPermission: AuthPermission; + MarketplaceConnection: MarketplaceConnection; + MarketplaceEdge: MarketplaceEdge; + OrganizationTierEnum: OrganizationTierEnum; + MediaChannelConnection: MediaChannelConnection; + MediaChannelEdge: MediaChannelEdge; MediaChannel: MediaChannel; - JSONObject: Scalars['JSONObject']; TokenStatus: TokenStatus; - SystemStatus: SystemStatus; CatalogConnection: CatalogConnection; CatalogEdge: CatalogEdge; Catalog: Catalog; @@ -1276,26 +1278,16 @@ export type ResolversParentTypes = { MarketingCampaignConnection: MarketingCampaignConnection; MarketingCampaignEdge: MarketingCampaignEdge; MarketingCampaign: MarketingCampaign; + ResultResource: ResultResource; + Vendor: Vendor; MarketingCampaignStatus: MarketingCampaignStatus; MarketingAdConnection: MarketingAdConnection; MarketingAdEdge: MarketingAdEdge; MarketingAd: MarketingAd; ResultConnection: ResultConnection; ResultEdge: ResultEdge; - Result: Omit & { - resource: ResolversTypes['ResultResource']; - }; + Result: Result; ResultResourceTypeEnum: ResultResourceTypeEnum; - ResultResource: - | ResolversTypes['MarketingAd'] - | ResolversTypes['MarketingCampaign']; - Vendor: Vendor; - AuthPermission: AuthPermission; - MarketplaceConnection: MarketplaceConnection; - MarketplaceEdge: MarketplaceEdge; - OrganizationTierEnum: OrganizationTierEnum; - MediaChannelConnection: MediaChannelConnection; - MediaChannelEdge: MediaChannelEdge; CampaignTemplateConnection: CampaignTemplateConnection; CampaignTemplateEdge: CampaignTemplateEdge; VendorConnection: VendorConnection; @@ -1464,8 +1456,8 @@ export type CatalogResolvers< ParentType, ContextType >; - error?: Resolver< - Maybe, + errors?: Resolver< + Maybe>, ParentType, ContextType >; @@ -1576,6 +1568,24 @@ export type EntitlementResourceResolvers< ParentType, ContextType >; + id?: Resolver; + name?: Resolver; + systemStatus?: Resolver< + ResolversTypes['SystemStatus'], + ParentType, + ContextType + >; + creationDate?: Resolver; + lastChangeDate?: Resolver< + ResolversTypes['DateISO'], + ParentType, + ContextType + >; + errors?: Resolver< + Maybe>, + ParentType, + ContextType + >; }; export interface JsonObjectScalarConfig @@ -1694,6 +1704,11 @@ export type MarketingCampaignResolvers< ParentType, ContextType >; + errors?: Resolver< + Maybe>, + ParentType, + ContextType + >; }; export type MarketingCampaignConnectionResolvers< @@ -1760,6 +1775,11 @@ export type MarketplaceResolvers< ParentType, ContextType >; + errors?: Resolver< + Maybe>, + ParentType, + ContextType + >; }; export type MarketplaceConnectionResolvers< @@ -1829,8 +1849,8 @@ export type MediaChannelResolvers< ParentType, ContextType >; - error?: Resolver< - Maybe, + errors?: Resolver< + Maybe>, ParentType, ContextType >; @@ -2095,8 +2115,8 @@ export type OrganizationResolvers< ParentType, ContextType >; - error?: Resolver< - Maybe, + errors?: Resolver< + Maybe>, ParentType, ContextType >; @@ -2406,10 +2426,18 @@ export type ResultResourceResolvers< ParentType extends ResolversParentTypes['ResultResource'] = ResolversParentTypes['ResultResource'] > = { __resolveType: TypeResolveFn< - 'MarketingAd' | 'MarketingCampaign', + 'MarketingCampaign' | 'MarketingAd', ParentType, ContextType >; + id?: Resolver; + creationDate?: Resolver; + lastChangeDate?: Resolver< + ResolversTypes['DateISO'], + ParentType, + ContextType + >; + vendor?: Resolver; }; export type TokenResolvers< @@ -2511,6 +2539,11 @@ export type VendorResolvers< ParentType, ContextType >; + errors?: Resolver< + Maybe>, + ParentType, + ContextType + >; }; export type VendorConnectionResolvers< diff --git a/src/index.ts b/src/index.ts index e9a9e96..8feccba 100644 --- a/src/index.ts +++ b/src/index.ts @@ -248,6 +248,8 @@ export class Cinnamon { fields: Array = [ OrganizationFields.id, OrganizationFields.name, + OrganizationFields.systemStatus, + OrganizationFields.errors, ], headers: Headers = {}, token?: string, @@ -270,6 +272,8 @@ export class Cinnamon { fields: Array = [ OrganizationFields.id, OrganizationFields.name, + OrganizationFields.systemStatus, + OrganizationFields.errors, ], headers: Headers = {}, token?: string, @@ -299,6 +303,8 @@ export class Cinnamon { fields: Array = [ OrganizationFields.id, OrganizationFields.name, + OrganizationFields.systemStatus, + OrganizationFields.errors, ], headers: Headers = {}, token?: string, @@ -313,6 +319,8 @@ export class Cinnamon { fields: Array = [ OrganizationFields.id, OrganizationFields.name, + OrganizationFields.systemStatus, + OrganizationFields.errors, ], headers: Headers = {}, token?: string, @@ -335,6 +343,8 @@ export class Cinnamon { fields: Array = [ OrganizationFields.id, OrganizationFields.name, + OrganizationFields.systemStatus, + OrganizationFields.errors, ], headers: Headers = {}, token?: string, @@ -360,6 +370,8 @@ export class Cinnamon { fields: Array = [ MarketplaceFields.id, MarketplaceFields.name, + MarketplaceFields.systemStatus, + MarketplaceFields.errors, ], headers: Headers = {}, token?: string, @@ -382,6 +394,8 @@ export class Cinnamon { fields: Array = [ MarketplaceFields.id, MarketplaceFields.name, + MarketplaceFields.systemStatus, + MarketplaceFields.errors, ], headers: Headers = {}, token?: string, @@ -411,6 +425,8 @@ export class Cinnamon { fields: Array = [ MarketplaceFields.id, MarketplaceFields.name, + MarketplaceFields.systemStatus, + MarketplaceFields.errors, ], headers: Headers = {}, token?: string, @@ -425,6 +441,8 @@ export class Cinnamon { fields: Array = [ MarketplaceFields.id, MarketplaceFields.name, + MarketplaceFields.systemStatus, + MarketplaceFields.errors, ], headers: Headers = {}, token?: string, @@ -447,6 +465,8 @@ export class Cinnamon { fields: Array = [ MarketplaceFields.id, MarketplaceFields.name, + MarketplaceFields.systemStatus, + MarketplaceFields.errors, ], headers: Headers = {}, token?: string, @@ -489,6 +509,8 @@ export class Cinnamon { fields: Array = [ MediaChannelFields.id, MediaChannelFields.name, + MediaChannelFields.systemStatus, + MediaChannelFields.errors, ], headers: Headers = {}, token?: string, @@ -511,6 +533,8 @@ export class Cinnamon { fields: Array = [ MediaChannelFields.id, MediaChannelFields.name, + MediaChannelFields.systemStatus, + MediaChannelFields.errors, ], headers: Headers = {}, token?: string, @@ -540,6 +564,8 @@ export class Cinnamon { fields: Array = [ MediaChannelFields.id, MediaChannelFields.name, + MediaChannelFields.systemStatus, + MediaChannelFields.errors, ], headers: Headers = {}, token?: string, @@ -554,6 +580,8 @@ export class Cinnamon { fields: Array = [ MediaChannelFields.id, MediaChannelFields.name, + MediaChannelFields.systemStatus, + MediaChannelFields.errors, ], headers: Headers = {}, token?: string, @@ -575,6 +603,8 @@ export class Cinnamon { fields: Array = [ MediaChannelFields.id, MediaChannelFields.name, + MediaChannelFields.systemStatus, + MediaChannelFields.errors, ], headers: Headers = {}, token?: string, @@ -597,6 +627,8 @@ export class Cinnamon { fields: Array = [ MediaChannelFields.id, MediaChannelFields.name, + MediaChannelFields.systemStatus, + MediaChannelFields.errors, ], headers: Headers = {}, token?: string, @@ -708,6 +740,8 @@ export class Cinnamon { fields: Array = [ VendorFields.id, VendorFields.name, + VendorFields.systemStatus, + VendorFields.errors, ], headers: Headers = {}, token?: string, @@ -730,6 +764,8 @@ export class Cinnamon { fields: Array = [ VendorFields.id, VendorFields.name, + VendorFields.systemStatus, + VendorFields.errors, ], headers: Headers = {}, token?: string, @@ -759,6 +795,8 @@ export class Cinnamon { fields: Array = [ VendorFields.id, VendorFields.name, + VendorFields.systemStatus, + VendorFields.errors, ], headers: Headers = {}, token?: string, @@ -773,6 +811,8 @@ export class Cinnamon { fields: Array = [ VendorFields.id, VendorFields.name, + VendorFields.systemStatus, + VendorFields.errors, ], headers: Headers = {}, token?: string, @@ -795,6 +835,8 @@ export class Cinnamon { fields: Array = [ VendorFields.id, VendorFields.name, + VendorFields.systemStatus, + VendorFields.errors, ], headers: Headers = {}, token?: string, @@ -837,6 +879,9 @@ export class Cinnamon { fields: Array = [ CatalogFields.id, CatalogFields.name, + CatalogFields.remoteId, + CatalogFields.systemStatus, + CatalogFields.errors, ], headers: Headers = {}, token?: string, @@ -859,6 +904,9 @@ export class Cinnamon { fields: Array = [ CatalogFields.id, CatalogFields.name, + CatalogFields.remoteId, + CatalogFields.systemStatus, + CatalogFields.errors, ], headers: Headers = {}, token?: string, @@ -888,6 +936,9 @@ export class Cinnamon { fields: Array = [ CatalogFields.id, CatalogFields.name, + CatalogFields.remoteId, + CatalogFields.systemStatus, + CatalogFields.errors, ], headers: Headers = {}, token?: string, @@ -902,6 +953,9 @@ export class Cinnamon { fields: Array = [ CatalogFields.id, CatalogFields.name, + CatalogFields.remoteId, + CatalogFields.systemStatus, + CatalogFields.errors, ], headers: Headers = {}, token?: string, @@ -923,6 +977,9 @@ export class Cinnamon { fields: Array = [ CatalogFields.id, CatalogFields.name, + CatalogFields.remoteId, + CatalogFields.systemStatus, + CatalogFields.errors, ], headers: Headers = {}, token?: string, @@ -945,6 +1002,9 @@ export class Cinnamon { fields: Array = [ CatalogFields.id, CatalogFields.name, + CatalogFields.remoteId, + CatalogFields.systemStatus, + CatalogFields.errors, ], headers: Headers = {}, token?: string, @@ -987,6 +1047,10 @@ export class Cinnamon { fields: Array = [ ProductFields.id, ProductFields.name, + ProductFields.sku, + ProductFields.systemStatus, + ProductFields.errors, + ProductFields.warnings, ], headers: Headers = {}, token?: string, @@ -1009,6 +1073,10 @@ export class Cinnamon { fields: Array = [ ProductFields.id, ProductFields.name, + ProductFields.sku, + ProductFields.systemStatus, + ProductFields.errors, + ProductFields.warnings, ], headers: Headers = {}, token?: string, @@ -1038,6 +1106,10 @@ export class Cinnamon { fields: Array = [ ProductFields.id, ProductFields.name, + ProductFields.sku, + ProductFields.systemStatus, + ProductFields.errors, + ProductFields.warnings, ], headers: Headers = {}, token?: string, @@ -1052,6 +1124,10 @@ export class Cinnamon { fields: Array = [ ProductFields.id, ProductFields.name, + ProductFields.sku, + ProductFields.systemStatus, + ProductFields.errors, + ProductFields.warnings, ], headers: Headers = {}, token?: string, @@ -1074,6 +1150,10 @@ export class Cinnamon { fields: Array = [ ProductFields.id, ProductFields.name, + ProductFields.sku, + ProductFields.systemStatus, + ProductFields.errors, + ProductFields.warnings, ], headers: Headers = {}, token?: string, @@ -1116,6 +1196,8 @@ export class Cinnamon { fields: Array = [ MarketingCampaignFields.id, MarketingCampaignFields.status, + MarketingCampaignFields.systemStatus, + MarketingCampaignFields.errors, ], headers: Headers = {}, token?: string, @@ -1138,6 +1220,8 @@ export class Cinnamon { fields: Array = [ MarketingCampaignFields.id, MarketingCampaignFields.status, + MarketingCampaignFields.systemStatus, + MarketingCampaignFields.errors, ], headers: Headers = {}, token?: string, @@ -1167,6 +1251,8 @@ export class Cinnamon { fields: Array = [ MarketingCampaignFields.id, MarketingCampaignFields.status, + MarketingCampaignFields.systemStatus, + MarketingCampaignFields.errors, ], headers: Headers = {}, token?: string, @@ -1182,6 +1268,8 @@ export class Cinnamon { fields: Array = [ MarketingCampaignFields.id, MarketingCampaignFields.status, + MarketingCampaignFields.systemStatus, + MarketingCampaignFields.errors, ], headers: Headers = {}, token?: string, @@ -1204,6 +1292,8 @@ export class Cinnamon { fields: Array = [ MarketingCampaignFields.id, MarketingCampaignFields.status, + MarketingCampaignFields.systemStatus, + MarketingCampaignFields.errors, ], headers: Headers = {}, token?: string, @@ -1314,7 +1404,9 @@ export class Cinnamon { id: Scalars['ObjectId'], fields: Array = [ ResultFields.id, + ResultFields.date, ResultFields.results, + ResultFields.impressions, ], headers: Headers = {}, token?: string, @@ -1337,6 +1429,8 @@ export class Cinnamon { fields: Array = [ ResultFields.id, ResultFields.date, + ResultFields.results, + ResultFields.impressions, ], headers: Headers = {}, token?: string, @@ -1366,6 +1460,8 @@ export class Cinnamon { fields: Array = [ ResultFields.id, ResultFields.date, + ResultFields.results, + ResultFields.impressions, ], headers: Headers = {}, token?: string, @@ -1384,6 +1480,7 @@ export class Cinnamon { fields: Array = [ EntitlementFields.id, EntitlementFields.permissions, + EntitlementFields.type, ], headers: Headers = {}, token?: string, @@ -1406,6 +1503,7 @@ export class Cinnamon { fields: Array = [ EntitlementFields.id, EntitlementFields.permissions, + EntitlementFields.type, ], headers: Headers = {}, token?: string, @@ -1435,6 +1533,7 @@ export class Cinnamon { fields: Array = [ EntitlementFields.id, EntitlementFields.permissions, + EntitlementFields.type, ], headers: Headers = {}, token?: string, @@ -1449,6 +1548,7 @@ export class Cinnamon { fields: Array = [ EntitlementFields.id, EntitlementFields.permissions, + EntitlementFields.type, ], headers: Headers = {}, token?: string, @@ -1471,6 +1571,7 @@ export class Cinnamon { fields: Array = [ EntitlementFields.id, EntitlementFields.permissions, + EntitlementFields.type, ], headers: Headers = {}, token?: string,