Skip to content

Commit 07b85ec

Browse files
committed
feat: add method to service
1 parent fdf0f04 commit 07b85ec

File tree

349 files changed

+21790
-21549
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

349 files changed

+21790
-21549
lines changed

docs/examples/avatars/get-browser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Client client = Client()
77

88
Avatars avatars = Avatars(client);
99

10-
UInt8List result = await avatars.getBrowser(
10+
Uint8List result = await avatars.getBrowser(
1111
code: Browser.avantBrowser,
1212
width: 0, // (optional)
1313
height: 0, // (optional)

docs/examples/avatars/get-credit-card.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Client client = Client()
77

88
Avatars avatars = Avatars(client);
99

10-
UInt8List result = await avatars.getCreditCard(
10+
Uint8List result = await avatars.getCreditCard(
1111
code: CreditCard.americanExpress,
1212
width: 0, // (optional)
1313
height: 0, // (optional)

docs/examples/avatars/get-favicon.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ Client client = Client()
77

88
Avatars avatars = Avatars(client);
99

10-
UInt8List result = await avatars.getFavicon(
10+
Uint8List result = await avatars.getFavicon(
1111
url: 'https://example.com',
1212
);

docs/examples/avatars/get-flag.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Client client = Client()
77

88
Avatars avatars = Avatars(client);
99

10-
UInt8List result = await avatars.getFlag(
10+
Uint8List result = await avatars.getFlag(
1111
code: Flag.afghanistan,
1212
width: 0, // (optional)
1313
height: 0, // (optional)

docs/examples/avatars/get-image.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Client client = Client()
77

88
Avatars avatars = Avatars(client);
99

10-
UInt8List result = await avatars.getImage(
10+
Uint8List result = await avatars.getImage(
1111
url: 'https://example.com',
1212
width: 0, // (optional)
1313
height: 0, // (optional)

docs/examples/avatars/get-initials.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Client client = Client()
77

88
Avatars avatars = Avatars(client);
99

10-
UInt8List result = await avatars.getInitials(
10+
Uint8List result = await avatars.getInitials(
1111
name: '<NAME>', // (optional)
1212
width: 0, // (optional)
1313
height: 0, // (optional)

docs/examples/avatars/get-qr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Client client = Client()
77

88
Avatars avatars = Avatars(client);
99

10-
UInt8List result = await avatars.getQR(
10+
Uint8List result = await avatars.getQR(
1111
text: '<TEXT>',
1212
size: 1, // (optional)
1313
margin: 0, // (optional)

docs/examples/avatars/get-screenshot.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ Client client = Client()
77

88
Avatars avatars = Avatars(client);
99

10-
UInt8List result = await avatars.getScreenshot(
10+
Uint8List result = await avatars.getScreenshot(
1111
url: 'https://example.com',
1212
headers: {}, // (optional)
1313
viewportWidth: 1, // (optional)
1414
viewportHeight: 1, // (optional)
1515
scale: 0.1, // (optional)
16-
theme: .light, // (optional)
16+
theme: Theme.light, // (optional)
1717
userAgent: '<USER_AGENT>', // (optional)
1818
fullpage: false, // (optional)
1919
locale: '<LOCALE>', // (optional)
20-
timezone: .africaAbidjan, // (optional)
20+
timezone: Timezone.africaAbidjan, // (optional)
2121
latitude: -90, // (optional)
2222
longitude: -180, // (optional)
2323
accuracy: 0, // (optional)
@@ -27,5 +27,5 @@ UInt8List result = await avatars.getScreenshot(
2727
width: 0, // (optional)
2828
height: 0, // (optional)
2929
quality: -1, // (optional)
30-
output: .jpg, // (optional)
30+
output: Output.jpg, // (optional)
3131
);

docs/examples/functions/create-template-deployment.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Deployment result = await functions.createTemplateDeployment(
1212
repository: '<REPOSITORY>',
1313
owner: '<OWNER>',
1414
rootDirectory: '<ROOT_DIRECTORY>',
15-
version: '<VERSION>',
15+
type: TemplateReferenceType.commit,
16+
reference: '<REFERENCE>',
1617
activate: false, // (optional)
1718
);

docs/examples/functions/create-vcs-deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Functions functions = Functions(client);
99

1010
Deployment result = await functions.createVcsDeployment(
1111
functionId: '<FUNCTION_ID>',
12-
type: VCSDeploymentType.branch,
12+
type: VCSReferenceType.branch,
1313
reference: '<REFERENCE>',
1414
activate: false, // (optional)
1515
);

0 commit comments

Comments
 (0)